Disallow creating new records in child applet based on certain condition on parent business component

Example:
Parent Business Component : Service Request
Child Business Component : Action
Applet : Activity List Applet

Goto Applet-> Activity List Applet-> Applet User Prop-> Create new user propery as below
Name : CanInvokeMethod: NewRecord
Value : [Calc Disable New] (Calcualted field should be in child business component - Action)

Goto Business Component-> Action-> Create Calcualted field as below
Name: Calc Disable New
Calcualted : TRUE
Force Active: TRUE
Immediate Post Changes: TRUE

Calculate Value: IIf(ParentBCName () = "Service Request",IIf(ParentFieldValue ("Sub-Status") = LookupValue("SR_SUB_STATUS", "Follow Up"), "N", "Y"),"Y")
(For Example, Field is taken with the value "Follow Up", you can choose any condition)

*from TIP of the Day by Anil S Kumar, IBM

Comments

Popular posts from this blog

Creating SearchSpecs in Siebel

To make the MVG Field/Applet Read only based on the particular field value in the Parent BC

Siebel 8.1 weird WF validation error