Question

3
Replies
413
Views
Murthy.1303 Member since 2015 12 posts
Capgemini
Posted: 1 year ago
Last activity: 1 year 4 months ago
Closed

When the function is run and the pega.api.ui.actions.launchLocalAction(options); is executed nothing happens

Hi Guys,

I am trying to launch localAction using similar approach. Ignore the fact that localAction is configured on button click. It is just to test the function.

When the function is run and the pega.api.ui.actions.launchLocalAction(options); is executed nothing happens. I have console logs in place to see that function itself is getting fired.

Please advise.

<button onclick="myFunction()">Click me</button>
<script>
function myFunction() {
  var e = window.event;
  var options ={
    flowAction: "<SectionName>",
    displayMode: "pega.api.ui.constants.MODAL_DIALOG",
    event: e,
    flowActionClass:"<Class>"
  };
  
  pega.api.ui.actions.launchLocalAction(options);
  
}
</script>
User Interface
Moderation Team has archived post
Share this page LinkedIn