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
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
Comments