Siebel配置Lab
(五)配置MVG
一、创建BC之间的Link
创建MVG之前,必须先创建BC: TR LAB Vehicle Info和Contact两个BC之间的Link:
1、在左侧Object Explorer面板上点击Link。 2、右键新建一条记录,内容如下:
Name Project Parent Business Component Child Business Component Inter Table Inter Parent Column Inter Child Column Primary ID Field Cascade Delete TR LAB Vehicle Info/Contact TR Lab Vehicle TR LAB Vehicle Info Contact S_ASSET_CON ASSET_ID CONTACT_ID Primary Contact Id None 二、创建MVG
1、在菜单栏里选择File—New Object,选择MVG,然后点击OK; 2、选择project为TR Lab Vehicle, 选择Master BC为TR LAB Vehicle Info,点击Next;
3、Detail BC选为Contact,Multi Value Link名字取为Contact,点击Next;
4、选定之前新建的Link,点击Next;
5、Primary ID Field选择Primary Contact Id,设置Use Primary Join的值为True, 点击Next;
21
Siebel配置Lab
6、什么都不选,点击Next;
7、Filed选择Full Name No Space, 名字取为Primary Contact Name,点击Next; 8、点击Finish完成.
9、查询BC:TR LAB Vehicle Info,点击Multi Value Field,可以看到那一栏有了一条记录:Primary Contact Name,表示创建成功,点击Field,看到多了Primary Contact Name这条记录,将这条记录对应的Link Specification值设为True,同时将Primary Contact Id的Link Specification值也设为True。
三、在TR Lab Vehicle Info Form Applet上添加新建的“联系人”字段
1、 在左侧Object Explorer面板上点击Applet,选择TR LAB
Vehicle Info Form Applet。
2、 点击Control,然后在右侧面板上右键新建一条记录,内容如下:
Name 联系人 Caption-String Override 联系人 Field Primary Contact Name 3、 点击TR Lab Vehicle Info Form Applet,右键点击Edit Web
Layout, 把左侧Controls/Columns面板上的Primary Employee Name拖到右面面板上,并且排列好。 4、 点击左上方的保存按钮,关闭页面编辑窗口。
5、 因为系统里已经有建好的对应的MVG Applet,在此我们不再重
复建了,直接在联系人这个字段的对应的MVG Applet属性那
22
Siebel配置Lab
填上:Auto Opportunity Contact Mvg Applet, Run Time的值设为True。
6、 编译Project,至此MVG的所有配置工作完成。
(六)配置State Model
1、 在
Object Explorer选择Business Component,查询BC: TR LAB
Vehicle Transaction,把这个BC的Class类型改为CSSBCBase.
2、 左侧
Object Explorer选择Business Component User Prop,右侧面板
上右键添加一条新记录,内容如下:
Name State Model 3、 编译
Value Y BC: TR LAB Vehicle Transaction, 打开客户端。
4、 点击场地图->管理-应用程序(A)->状态模型。 5、 点击新建按钮,新建一条记录,内容如下 名称 TR Vehicle Trans Status 业务组件 字段 TR LAB Vehicle Transaction 交易状态 6、 点击屏幕下方的“状态”View Tab,点击新建按钮,新建内容如下: 状态名称 未开始 进行中 已结束 缺省 是 否 否 限制转换 是 是 是 说明 未开始 进行中 已结束 7、 点击屏幕下方的“转变”View Tab,点击新建按钮,新建内容如下: 从何状态 未开始 进行中 到何状态 进行中 已结束 公共 是 是 规则字段 买主 交易子状态 规则运算符 IS NOT NULL <> 规则值 \价格讨论中\8、 关闭客户端,重新打开客户端,然后看运行结果。
23
Siebel配置Lab
(七)配置Access Control
Access Control分为以下几种形式:Personal access control、Position access control、Organization access control、All access control、Access-group access control.
下面我们以Position access control为例配置Access Control:
一、首先建立一个关于Position的MVG
同样的创建MVG之前,必须先创建BC: TR LAB Vehicle Info和Position两个BC之间的Link:
1、在左侧Object Explorer面板上点击Link。 2、右键新建一条记录,内容如下:
Name Project Parent Business Component Child Business Component Inter Table Inter Parent Column Inter Child Column Primary ID Field Cascade Delete 二、创建
TR LAB Vehicle Info/Position TR Lab Vehicle TR LAB Vehicle Info Position S_ASSET_POSTN ASSET_ID POSITION_ID Primary Position Id None MVG
1、在菜单栏里选择File—New Object,选择MVG,然后点击OK; 2、选择project为TR Lab Vehicle, 选择Master BC为TR LAB Vehicle Info,点击Next;
3、Detail BC选为Position,Multi Value Link名字取为Position,
24
Siebel配置Lab
点击Next;
4、选定之前新建的Link,点击Next;
5、Primary ID Field选择Primary Position Id,设置Use Primary Join的值为True, 点击Next; 6、什么都不选,点击Next;
7、Filed选择Active Login Name, 名字取为Sales Rep,点击Next; 8、点击Finish完成.
9、查询BC:TR LAB Vehicle Info,点击Multi Value Field,可以看到那一栏有了一条记录:Sales Rep,表示创建成功。
三、创建以Position为例的Access Control
1、 打开Tools, 查询BC:TR LAB Vehicle Info, 点击BusComp
View Mode, 新建一条记录, 对应的值如下:
Name Sales Rep Owner Type Position Visibility MVField Sales Rep Visibility MVLink Position 2、 在Object Explorer选择View,查询TR LAB Vehicle Info View,
然后在对应的Visibility Applet属性那填写TR LAB Vehicle Info List Applet,对应Visibility Applet Type 填为Sales Rep。 3、 点击TR LAB Vehicle Info View,右键选择Copy Record,新
Copy的View取名为TR Lab Vehicle Info Manager View,然后在对应的Visibility Applet属性那填写TR LAB Vehicle Info List Applet,对应Visibility Applet Type 填为Manager。
4、 点击TR Lab Vehicle Info View,右键选择Copy Record,新Copy
25