checkbox如何设定web dependent

 偶建了一个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

http://www.itpub.net/thread-911009-1-5.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值