偶建了一个checkbox形式的field,设定如果该框被选定,那么另外一个field为必填项。
要令这个设定在web端起作用要设定checkbox的web dependent,可是checkbox的属性界面没有这一项阿,咋办咋办??
此问题已经经过验证,如果是一个CheckBox控件对应的Hook操作了另外一个字段,只有在执行完当前Action的Commit操作后,才会执行该Hook,而不是立即就能够看到效果,请注意下面引用的红色字体部分。
Problem
This technote provides clarification as to which hook typesare supported by the IBM® Rational® ClearQuest® Web, versions 2003.06.13 andlater.
Cause
The following statement in the New ClearQuest WebAdministrators Guide (cq_web_admin.pdf, page 43) is incorrect: "Context-menu hooks and field hooks (for example, value change, validationhooks) are not supported in the ClearQuest Web application."
Solution
Field hooks are indeed supported by the ClearQuest Web. A documentation defecthas been created to correct this statement.
The following table shows what hooks are supported with the ClearQuest Web:
Type of Field Hook Description
Value Changed
(SetFieldValue) Are executed when the value of the given field changes.
SetFieldValue - set the value of a different field or fields when theValue Change hook of the given field is executed.
The fields to be set must be declared as Web Dependent Fields in the Propertiesof the Form Control for the field with the Value Changed hook.
The fields with the following controls are set to theirnew values immediately when Value Changed hook is executed.
Combo-Box
Drop-Down Combo-Box
Drop-Down List Box
List Box
Text Box
The fields with the following controls are set to their new values onlyafter Commit when the Value Changed hooks are executed.
Check Box
List View
Option Button
Value Changed (Field Requiredness) ClearQuest 2003.06.13 (SR3) and ClearQuest 2003.06.14 (SR4)
SetFieldRequirednessForCurrentAction- Sets the Requiredness (such as Mandatory or Optional) of a different field orfields when the Value Changed hook of the given field is executed. The field ismade editable (which all Mandatory fields must be) only after Commitwhen the Value Changed hook is executed.
ClearQuest2003.06.15 release (SR5) added real-time support for the Value Changed hookwhich sets field requiredness (as Mandatory, Read-only, or Optional) when thefield control is a drop-down combo-box or a drop-down list box.
Choice List Sets the choices associated with a given field.
When a field's own choice list is determined by another field, that other fieldmust list the target field as its web dependant field.
The control types for Choice List Hook fields are: Combo-Box, Drop-DownCombo-Box and Drop-Down List Box.
Default Value Are executed when the when a record is created.
Permission Is fired only when performing an action, not executedwhen the field value changes.
Validation Not supported in real time. Only when you save theform.
Other Hooks Description
Record Script Record Script alias actions are displayed in aDrop-Down list below the Utilities button while the record is beingviewed.
Can be associated with Button form controls as the Click Hook specified on theExtended tab of the Properties for the control.
Global Script Supported on the Web.
Action Access Control, Initialization, Validation, Commit andNotification.
REF:http://www-1.ibm.com/support/docview.wss?uid=swg21196657
checkbox如何设定web dependent
最新推荐文章于 2024-11-10 21:20:41 发布