Question
TCS
FR
Last activity: 18 Jun 2018 8:10 EDT
Need call a FlowAction From Java Script
Hi All,
Could please help me ..how to call a Flow Action from Java Script.
Thnx
Hari
***Edited by Moderator Marissa to update platform capability tags***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Navy Federal Credit Union
US
I think you have posted another question to invoke flow action from activity. If that helps to proceed, I think you don't need to invoke a flow action from java script. Please let me this. and if you need to still invoke from java script also. please detail the scenario
-
Tom Gossler Kevin O\'Hare Mika Onuki
Pegasystems Inc.
IN
You can try the below approach:
call this pega js function in your js function for calling local flow action
pega.u.d.processAction('<flow action name>', '', '','','',true,event);
Regards,
Vikash
TCS
FR
Hi Vikash,
I tired the below below function but no Luck
pega.u.d.processAction('<flow action name>', '', '','','',true,event);
Thnx,
Hari
-
Pratik Agarwal Venkatesh Patnana
Pegasystems Inc.
IN
In Js you can use the below syntax to run flowaction:
For Pre - preFlowAction$FlowActionName : which runs the flow action before the section gets loaded.
For Post - postFlowAction$FlowActionName: runs the flow action after the section is loaded.
Ex.
function preFlowAction$CollectEmployeeDetails(flowClass) {
In Js you can use the below syntax to run flowaction:
For Pre - preFlowAction$FlowActionName : which runs the flow action before the section gets loaded.
For Post - postFlowAction$FlowActionName: runs the flow action after the section is loaded.
Ex.
function preFlowAction$CollectEmployeeDetails(flowClass) {
/* business logic goes here*/
}
function postFlowAction$CollectEmployeeDetails(flowClass) {
/* business logic goes here*/
}
TCS
FR
Hi Sai,
Yes, I only posed quest (i.e Need a call a Flow Action From Activity ) as my requirement is to call a flow action from script ...here am able to call a Activity from JS file ..but not able to call a Flow action.
If you have any alternative ..please provide ..Thnx in advance..!!!
Thnx
Hari
Aaseya IT Services Pvt Ltd
SA
Try the below code . var options ={<br /> flowAction: “flowActionName ",<br /> displayMode: pega.api.ui.constants.REPLACE_CURRENT / pega.api.ui.constants.OVERLAY / pega.api.ui.constants.MODAL_DIALOG",<br /> event: eventObject,<br /> flowActionClass:
Try the below code . var options ={<br /> flowAction: “flowActionName ",<br /> displayMode: pega.api.ui.constants.REPLACE_CURRENT / pega.api.ui.constants.OVERLAY / pega.api.ui.constants.MODAL_DIALOG",<br /> event: eventObject,<br /> flowActionClass:"className",<br /> contextPage:"pageName",<br /> skinFormat:"skinFormat",<br /> template:"templateName",<br /> isMobileFullScreen:true/false,<br /> revealEffectName:"animtionName",<br /> closingEffectName:"animtionName",<br /> closeOnClickAway:true/false,<br /> centerOverlay:true/false<br />};
-
Kevin Cotter John Sullivan