Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us