Question
3
Replies
472
Views
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>
Hi ,
check for any console errors , and if there are no errors then check with the function ,(keep the debugger here)
function launchLocalAction: function(a) {
debugger;
if (a && a instanceof Object) {.....
the defination you can find in pega_ui_harness_defered js.