Issue regarding auto launch of OOTB modal dialog when user logs into portal
I want to automatically launch a PRPC modal dialog when user logs into the portal. Below are the analysis I made to implement the same.
I checked OOTB logic present when we are launching modal using action item ‘Local Action’. I found that OOTB activity – ‘ProcessAction’ being called in background while launching local action. So I created a wrapper activity, noted down all the parameters that are being sent to ‘ProcessAction’ while launching local action, and set the same in the wrapper activity before calling ‘ProcessAction’. My plan is to invoke this wrapper activity from any pre-loading activity while launching the portal, so that the modal gets automatically invoked after logging in. But while executing the above wrapper activity, I found that despite all parameters being passed correctly, and every step of ‘ProcessAction’ getting well executed, modal dialog is not being launched. Below are the list of parameters being passed to 'ProcessAction'.
Values of above parameters passed are exactly the same as when called from action item ‘Local Action’.
Can someone please suggest me what I am missing or any extra stuff I may need to do to achieve the task, or if there is any alternate way to achieve the same.
***Updated by moderator: Lochan to update Categories***
Thanks for your reply. I traced and checked that the activity is getting fired as expected, and I can see the flow action section and template stream rules in tracer, however, modal dialog is not getting displayed. The only difference I can see in tracer is that I can see an extra activity pzRunActionWrapper getting executed. Attached are the screenshots for the configuration we are trying to achieve (calling ProcessAction from a wrapper activity by setting all the parameters).
Also we tried alternate approach for the same by launching the modal dialog using below script from a non-auto generated section embedded in portal header, but unable to launch the same.
I was able to achieve the above using below mentioned script. However, still having one issue - We have our own 'modal format' mentioned in application skin rule, instead of using 'Standard' default modal format, we want to use the modal format mentioned in skin rule. Can someone please help us on this, which parameter we need to pass.