Question
How to display a Local action in modal dialog depends on a condition.
How to display a Local action in modal dialog depends on a condition.
First event is Run Activity to run some logic and getting one property(.CheckModal) value.
Second event is Local Action in modal dialog.(e.g.: When CheckModal="Yes")
Third event is Finish Assignment.
Note: Depends on the property value in first event, modal dialog in event 2 should occur. If the Event1 sets CheckModal property value to "No" then instead of Modal dialog(Second event), Finish Assignment(third event) should happen.
Using pega PRPC version is 7.1.8.
***ModEdit: Included Topic| Vidyaranjan***
Hi Raviteja,
1) Include .CheckModal as hidden property in the section.
2) Write a JS function which will get the value of this hidden proeprty and if local action is not required call
pega.control.actionSequencer.clearQueue();
This will clear next action in the queue and Local action will not be called.
Call this Function in Run script action . In clude this Run script action in between Calling Activity and Launching Local Action in modal dialog