加入收藏 | 设为首页 | Life家族 | SCMLife | RMLife | PMLife | SQALife | TESTLife | 企业VIP专区 | 中文化荣誉殿堂
 
发新话题
打印

[已解决] checkbox如何设定web dependent( 此文章被查看:637次,被回复:2篇!! )

checkbox如何设定web dependent

偶建了一个checkbox形式的field,设定如果该框被选定,那么另外一个field为必填项。
要令这个设定在web端起作用要设定checkbox的web dependent,可是checkbox的属性界面没有这一项阿,咋办咋办??


问题已经解决 [打开主题]
本主题的最佳答案为 [ 2 楼].



© 本文为 kafei_douSCMLife 共同所有,未经同意,请勿转载 ©如该文侵犯了您的版权,请联系管理员

TOP

此问题已经经过验证,如果是一个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

[ 本帖最后由 yunshan 于 2007-12-13 19:09 编辑 ]


最佳答案
该回答被楼主/管理员列为正解!



© 本文为 yunshanSCMLife 共同所有,未经同意,请勿转载 ©如该文侵犯了您的版权,请联系管理员

TOP

了解~
多谢多谢:)



© 本文为 kafei_douSCMLife 共同所有,未经同意,请勿转载 ©如该文侵犯了您的版权,请联系管理员

TOP

发新话题