I am trying to use PEGA Java Script APIS like LaunchHarness, LaunchLocalAction.My requirement is to launch a modal Dialog Whenever a user login. User can be developer , user, Manager etc. I tried using normal JS to click a button on a section to launch local action in harness and used the script in UserWorkForm. It is working fine.But i can not add a button for Developer portal harness as it is final rule. So i am trying the new approach using LaunchLocalAction JS API from UserWorkForm. But it is not getting executed.
Is it your requirement to present the modal over any initial screen or present the modal as the first thing the user sees? I'm asking because you could customise the login screen-sequence to present the popup or use that same screen and then continue to whatever portal the user is logging in.
Requirement is to present the modal as first thing to the user based on a condition. To explain it more, requirement is to show terms and conditions to a user when it login first time and then on its acceptance , we will redirect it to the portal. So to show these terms and conditions, I am trying to use a pop up modal based on when rule using userworkform or any script.
This login screen sequence approach, Can you please help me with this? where and how to configure it?
This approach won't work for us. As in our case , it is not for guest users. It is for all the pega operators. I will elaborate my requirement here.
We want to show a screen (it can be harness or section) to every pega operator when they login first.Operator ID with access group is already exists for these operators with assigned access groups.After entering userid/password, screen will be displayed with accept or reject button. On selection of Accept, operator will be directed to their assigned application and access group. In case of reject,logoff the session.Once user Accept it, we are storing it in a property so next time this screen won't come up.
As i explained in my original post, we tried to achieve this requirement using JS to click a button that is in a section in each harness. On click of button, pop up will come up.This approach is working fine except for PEGA developer portal as all rules are final and we can not add a button in harness of Developer portal.
That's why we moved to new approach of using PEGA JS API to launch a local action without button. But that API is not working.
Could you please help with JS API or some other approach if applicable here.
The login screen is for all operators and seems to me the right place for including the popup to either confirm the login or stay in the login screen. Looks like an easy implementation using the login screen.
Where are you planning to store it anyway? I presume in the Operator ID record, or in a separate table. All you have to do is include the RuleSet where you have defined this functionality in the Unauthenticated AG that you create as part of the application if you are using it from the application or as production ruleset if it's only used at login time.