IBM Support

Behavior changes for choice list hook in Rational ClearQuest Web 7.1

Question & Answer


How is a choice list hook triggered in IBM Rational ClearQuest Web 7.1?


A record form is not refreshed when a choice list hook is executed in version 7.1, while a record form is refreshed in version 7.0.


In Rational ClearQuest version 7.1, the Web client has been completely rewritten using Web 2.0 technologies which provides enhanced experiences over the Rational ClearQuest Web version 7.0.

In order to improve performance in version 7.1, the choice list hook is not triggered until you click the choice list widget on a record form as "on demand", the record form is not refreshed at this time.

This new design can avoid some potential performance issues if you have many choice list hooks and many list of options for fields in a record form, the load speed would be very slow.

As results of these changes, if a field choice list hook has SetFieldValue API, it may not be executed desired timing and also a field value is not refreshed in a record form.
Below is the sample choice list hook:

Sub userlist_ChoiceList(fieldname, choices)


SetFieldValue fieldname, "UserA"

End sub

It is not recommend to use the SetFieldValue API in the field choice list hook. The choice list hook should be only used to provide a list of options for a field as it is described in the Topic ' Creating choice lists for fields ' in the ClearQuest information center help. It is advised to use the SetFieldValue API in the other hooks, for example a field Initialize hook, a value_changed hook, a button hook.

[{"Product":{"code":"SSSH5A","label":"Rational ClearQuest"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Web Client (7.1)","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.1;7.1.1;7.1.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018