SIEBEL常用USER PROPERTY介绍
日期 03/20/2012 作者 Coco_lia 版本 1.0 备注
Siebel_DR1_常用User Property介绍 Coco_lia 1 / 22
目录
目录 .................................................................................................................................................. 2 User Property .................................................................................................................................... 3
1. Applet User Properties .......................................................................................................... 3
1.1 CanInvokeMethod: MethodName .............................................................................. 3 1.2 Aspect User Property .................................................................................................. 4 1.3 Drilldown Visibility ...................................................................................................... 4 1.4 Hide List Column / Control .......................................................................................... 4 1.5 Others .......................................................................................................................... 4 2. Application User Properties .................................................................................................. 5 3. Business Component User Properties ................................................................................... 5
3.1 Field Read Only Field ................................................................................................... 5 3.2 BC Read Only Field ...................................................................................................... 6 3.3 State Model ................................................................................................................. 7 3.4 On Field Update Set n ................................................................................................. 8 3.5 On Field Update Invoke n ............................................................................................ 9 3.6 Deep Copy / Deep Delete n ......................................................................................... 9 3.7 Sequence field ........................................................................................................... 10 3.8 Sequence use max..................................................................................................... 10 3.9 Manager List Mode ................................................................................................... 11 4. Control User Properties ....................................................................................................... 12
4.1 View ........................................................................................................................... 12 4.2 Popup ........................................................................................................................ 12 5. Field User Properties ........................................................................................................... 13
5.1 Required .................................................................................................................... 13 5.2 Read Only .................................................................................................................. 14
附录1 Aspect User Property .......................................................................................................... 15
功能......................................................................................................................................... 15 使用方法 ................................................................................................................................. 15
1) Class选择 ................................................................................................................ 15 2) 在Applet层建立Default Aspect ........................................................................... 16 3) 在BC层建立Aspect Default Value ........................................................................ 17 4) 编译 ......................................................................................................................... 17 适用范围及注意点 ................................................................................................................. 18 附录2 Sequence Field .................................................................................................................... 18
功能......................................................................................................................................... 18 使用方法 ................................................................................................................................. 19
1) Detail BC .................................................................................................................. 19 2) 新建Sequence BC ................................................................................................... 20 3) 编译 ......................................................................................................................... 21 适用范围及注意要点 ............................................................................................................. 21 附录3 参考文档 ............................................................................................................................ 22
Siebel_DR1_常用User Property介绍 Coco_lia 2 / 22
User Property
? User Property作为Application、Applet、BC等的子属性,用以实现(或辅助实
现)某一特定的功能或者方法。
? 其适用范围非常普遍,最常用于以下几个对象:Applet/BC/Control/Field/List
column等。
? 针对某一类型的User Property,某一特定的BC上可以有多个,如:On Field
Update Invoke / On Field Update Set / Deep Copy / Deep Delete等。同一个类型的User Property若存在多个,其后用n区分即可,如 Deep Copy 1, Deep Copy 2,等等。
? 但是,序列n须遵循以下规则: ? ? ?
数字最好为连续的;
如果不连续,则两个数字之间的空挡不得大于9; 不得超过两位数,即n < 100。
以下,按照文档的指引,综合个人理解、及实际项目实践,一一罗列出各种User Property的功能、适用范围、及具体使用方法。未详细提及的部分,将会在日后的运用过程中逐渐更新、补充。
1.Applet User Properties 1.1CanInvokeMethod: MethodName
1.1.1 功能
CanInvokeMethod: MethodName,多用于对按钮的触发控制,如Copy Record、New Record,以及一些客户化的其他功能。
较为简单的按钮触发功能可以通过此User Property实现;某些较为复杂的逻辑需要通过代码中的“PreCanInvokeMethod”来代替实现。
1.1.2 使用方法
【Name】:CanInvokeMethod: MethodName(如Copy Record、New Record) 【Value】:Value or expression that returns TRUE or FALSE 当值、或条件表达式返回为真时,该方法(按钮)被触发。
Siebel_DR1_常用User Property介绍 Coco_lia 3 / 22
E.g.在某Applet上需要取消“新建”功能,用客户化的“批量添加分部”功能代替,并在批量添加分部后,需要对某一行记录进行复制,通过“复制记录”功能进行辅助,运用到如下3个User Property:
1.1.3 适用范围及注意要点
【Class】CSSFrame, CSSFrameList, and their subclasses
1.2 Aspect User Property
详见附录1
1.3 Drilldown Visibility
该功能已经逐渐被Drilldown Object下的Visibility Type属性代替,不再通过在Applet层写User Property的方法来实现。
1.4 Hide List Column / Control
待补充
1.5 Others
Appelt层可用的User Property还有如下多个类别,但使用较少,这里仅作列举:
? ? ? ? ? ? ? ? ? ? ?
ApplicationContextType Contact Relationship Type DataSourceBuscompName DefaultFocus User Properties Default Applet Method Disable Buscomp Hierarchy DisableDataLossWarning DisableNewRecord DocumentContextType
eGanttChart Busy Free Time Applet User Properties EnableStandardMethods
Siebel_DR1_常用User Property介绍 Coco_lia 4 / 22
? ? ? ? ? ? ? ? ? ? FINS Query Mode Disabled Method n High Interactivity Enabled Named Method n (Applet) NoDataHide Parent Id Field
Political Analysis Field Show Required n Visibility Type
WebGotoPlayerErrorPage WebGotoView
2.ApplicationUser Properties
? (在8.0版本之前需要在.cfg文件中进行某些参数设置,从8.0之后通过在
Application上写User Property的方式可代替实现相应功能; ? 常见的User Property有如下两类:
ClientBusinessServicen PDQDisabledViewn
3.Business ComponentUser Properties 3.1 Field Read Only Field
3.1.1 功能
通过BC上某一个字段,来控制该BC上另一个字段的只读状态;
3.1.2 使用方法
【Name】Field Read Only Field:Field Name
【Value】须为某一字段,且该字段的值返回为布尔值;
当该字段的值返回为真时,指定的字段只读;否则,为不只读;
Siebel_DR1_常用User Property介绍 Coco_lia 5 / 22