ClearQuest Tips (1)

zhaozj2021-02-16  56

This time, a mailbox named QL98J1, there are other friends, asked me some questions about ClearQuest. I think some of them, everyone may also encounter. So some of the problems I met, I wrote this highlights. The answer to the question is not necessarily correct, but I think at least give you a thinking, I hope to help others.

I am using the 2002.05.00 version. If it is a 2003 version, I will explain.

Question 1: Set up the right to use some fields, only the relevant personnel can see some fields and fill in, for the ordinary person to make it disseminated, how can I set it?

Answer Tip: A relatively simple method allows others to see the field you set: Set a new group, add a person who wants to see the new field to this group, in Designer, add a Tab, add a Tab Page, put the fields that just want someone to see to this page, the mouse right click on this field, in the property page, have the "User Group Access" option, select the group you want to see to the list Yes. In the process of use, only related group members can see this TAB page, which is indirectly equal to someone else.

Question 2: When visiting the web, you can only see "Restricted Query Not Deferyd".

Solution: Generally, because there is no registration, the web server must be registered for the web server during the use of CQ.

Question 3: How to make some Database not displayed in the list of usage of the client and the web side.

Solution: During use of CQ, you must select Database to enter the client or web side. The content of Database is related to the selected schema repository (s), however, how to make some Database are not displayed in the list.

In Designer, select Database-> Update User Database Properties in the menu ..., select the Logical Database Name that does not require display, click the "Properties" button to enter the configuration page. In the configuration page, select "Production Database" to "Test Database", click "Update", this Database will not appear in the list. If you want to recover in the future, just select "Test Database" to "Production Database".

Question 4: Under Project's Forms, I designed a drop-down list for the project manager. How to automatically display the Field: login_name below User, and Fullname The following record value is displayed in this drop-down list box. The format is: login_name (fullname).

Solution Tip: This is not clear what you have to do, is the login name and full name of all users in the drop-down box, or display a group, or show the current login user?

1 If the current user is displayed, it is relatively simple. Direct login_name = session.getuserloginname, full_name = login_name.fullname, the login_name and full_name mend a string to display it.

2 If you are in the group, you can view the installation directory ClearQuest / Apihelp / index.htm session object, user object, group object, groups object, chapter. My idea is: In the Field's Choice List, use the program to control the content of the list, create a session, use session.getusergroups to get the user group, and then for each User In user group, in the inside Choices.Additem (user), But I tried a morning, I don't know why, I have never been successful, you may wish to look at the things inside the Rational ClearQuest API Reference. If you can solve, it is best to tell me the solution, I also learn to learn. Question 5: For a specific field, force the user must be filled in each time Action.

Solution Tip: In the Permission of the field, control with the following code:

SetfieldValue Field1, "" 'Set the value of the field to empty

Field_Permission = ad_mandatory 'Let the field must

In Behaviors, you can set it to hook in the status of the required required.

转载请注明原文地址:https://www.9cbs.com/read-19053.html

New Post(0)