Question
Pegasystems Inc.
US
Last activity: 11 Aug 2018 8:54 EDT
Do we have an example of pega.api.ui.actions.launchLocalAction?
Do we have any working example of pega.api.ui.actions.launchLocalAction?
Looking for exact syntax to call this api.
If there is any ootb rule that uses this api, that will also help.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
US
i agree API documentation is not 100% clear (i suggest we include actual examples). In 722, i had to install a HFix (which i forgot the number). Here is one working example. Try this in a non-auto generated section. This will auto launch a Harness on load.
<script>
pega.u.d.attachOnload(function(){
pega.api.ui.actions.launchHarness({harness:"MyHarness",
harnessClass:"SAE-HRServices-Work",
displayMode:pega.api.ui.constants.POP_UP_WINDOW,
tabName: "TAB1",
contextPage: "pyWorkPage",
windowName: "MyWindowTest",
windowWidth: "500",
windowHeight: "500"});
});
</script>
EPAM Systems, Inc.
ES
Hi Chow1,
Thanks for posting on PSC.
pega.api.ui.actions.launchLocalAction
Launch a local action either as a modal dialog, overlay or by replace the current section.
Syntax
var options = {
flowAction: “flowActionName ",
displayMode: pega.api.ui.constants.REPLACE_CURRENT /
pega.api.ui.constants.OVERLAY / pega.api.ui.constants.MODAL_DIALOG ",
event: eventObject,
flowActionClass: "className",
contextPage: "pageName",
skinFormat: "skinFormat",
template: "templateName",
isMobileFullScreen: true / false,
revealEffectName: "animtionName",
closingEffectName: "animtionName",
10
closeOnClickAway: true / false,
centerOverlay: true / false
};
Calling :- pega.api.ui.actions.launchLocalAction(options);
Please review page no 9 of this document:- https://pdn.pega.com/sites/pdn.pega.com/files/JS%20APIs%20Documentation.pdf
Kindly notify, if it helps.
Regards,
Asif
Pegasystems Inc.
US
Can you actually send me a working example of calling the api?
I also want to see how to pass the parameters.
OCBC Bank
SG
Hi,
Refer to below PDN article for syntax and other options to use launchLocalAction
https://docs-previous.pega.com/launchlocalaction-public-js-api-actions
Hope this helps.
-
SaiKishore Yagnamurthy
Pegasystems Inc.
US
Can you actually send me a working example of calling the api?
I also want to see how to pass the parameters.
Sopra Steria Group
FR
Hi,
I agree with Chow1, a simple working example would be nice.
I'm trying to work with pega.api.ui.actions.runDataTransform myself, and the API reference doesn't help much without an example.
Sopra Steria Group
FR
Hi,
The examples provided in the API documentation don't work.
Can you please provide working examples, that can be tested in a Rule-HTML for example ?
If I copy / paste example in an HTML rule, i get errors and it just doesn't work at all.
Accepted Solution
Pegasystems Inc.
US
i agree API documentation is not 100% clear (i suggest we include actual examples). In 722, i had to install a HFix (which i forgot the number). Here is one working example. Try this in a non-auto generated section. This will auto launch a Harness on load.
<script>
pega.u.d.attachOnload(function(){
pega.api.ui.actions.launchHarness({harness:"MyHarness",
harnessClass:"SAE-HRServices-Work",
displayMode:pega.api.ui.constants.POP_UP_WINDOW,
tabName: "TAB1",
contextPage: "pyWorkPage",
windowName: "MyWindowTest",
windowWidth: "500",
windowHeight: "500"});
});
</script>