Thursday, May 9, 2024

Pega JS functions

Pega close modal dialog of Tabel layout

 "pega.u.d.activeGrid.submitModal"

javascript:event

============================

Auto submit flowaction

--------------------

<pega:include name="AutoSubmit" type="Rule-Obj-HTML"/>

Below is the AutoSubmit HTML rule

<SCRIPT>

var doActionAutoSubmit = function(){

    doSubmit();

  pega.u.d.detachOnload(doActionAutoSubmit);  

}

  

<%

String strMessages = tools.getPrimaryPage().getMessagesAll();

if(strMessages.length() == 0)

{

tools.appendString("pega.u.d.attachOnload(doActionAutoSubmit, false);");

}

%>

</SCRIPT>



=====================================


<Script> function ABCRefresh() { var section = pega.u.d.getSectionByName('SectionName', ''); var theHandle = window.setInterval(function(){pega.u.d.reloadSection(section, 'ActivityName', '', false, false, '-1', false);},120000); } pega.u.d.attachOnload(ABCRefresh, false); </Script>


==============================================

<button onclick="myFunction()" type="button">Click me</button> <script> function myFunction() { var e = window.event; var options = { name: "TestDT", event: e }; pega.api.ui.actions.runDataTransform(options); } </script>




No comments:

Post a Comment