Question

Capgemini
CA
Last activity: 13 Jun 2019 23:51 EDT
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>