Question

3
Replies
472
Views
Close popover
Satyanarayana Murthy P (Murthy.1303)
Capgemini

Capgemini
CA
Murthy.1303 Member since 2015 12 posts
Capgemini
Posted: June 13, 2019
Last activity: June 13, 2019
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 Experience
Moderation Team has archived post