Support Article
Reference HTML Deprecated 7.1.7 -Flow Action
SA-6062
Summary
ActionAutoSubmit functionality is not working when used in HTML tab of the flow action.
Error Messages
Auto submit functionality is not working, So user need to submit the flow action even the auto submit is included.
Steps to Reproduce
* Go to flow action HTML tab.
* Select Reference HTML in UI type.
* Add ActionAutoSubmit as the HTML reference
Root Cause
The root cause of this problem is a defect in Pegasystems’ code/rules.
The content of ActionAutoSubmit:
<SCRIPT>
<%
String strMessages = tools.getPrimaryPage().getMessagesAll();
if(strMessages.length() == 0)
{
tools.appendString("if(window.name != null && typeof(window.name) != \"undefined\" && window.name == \"actionIFrame\" ){");
tools.appendString("pega.util.Event.addListener(window,\"load\",doSubmit);");
tools.appendString("}else{");
/*BUG-168564: Updated doSubmit to call after loading all files. */
tools.appendString("pega.u.d.attachOnload(doSubmit);}");
}
%>
</SCRIPT>
The doSubmit() simple never gets called because it is attached to an event that has already occurred.
Resolution
This issue is resolved through the following local change:
Please do a save as on ActionAutoSubmit and create a new ActionAutoSubmitLocal (Any name) and have the following code in it. Make sure your search again flow action references the ActionAutoSubmitLocal in the HTML tab
<SCRIPT>
<%
String strMessages = tools.getPrimaryPage().getMessagesAll();
if(strMessages.length() == 0)
{
tools.appendString("doSubmit();");
}
%>
</SCRIPT>
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.