Question
AIG
US
Last activity: 2 May 2016 13:27 EDT
How to access the Local variable /Param set in the activity back in the MLR JS text file
Functionality: sleect filters on screen.Click button to find from external tables on how many results exist and display in confirm box to proceed to create the PDF by sending the results:
How to access the Local variable /Param set in the activity back in the MLR JS text file.
I have the local action called from button.The Button runs a script in the JS file.
The script calls the activity and activity sets the local variable and send the variable back to the UI using show property .
This Show property XML doesnt work in Fire fox..
What are the options available ?How to send the param back to UI
Sample code tried .
function GenerateBulkPdf()
{
var retValue;
var oSafeURL = new SafeURL();
var Noofweeks,StartDate;
var FinalURL;
PreURL="pyActivity=Chartis-Global-OneClaim-Work-MLR.PreBulkPdf";
FinalURL="pyActivity=Chartis-Global-OneClaim-Work-MLR.GenerateBulkPdf";
Noofweeks=document.getElementById("NoOfWeeks").value;
StartDate=document.getElementById("CreateDateFrom").value;
oSafeURL.put("pyActivity","Chartis-Global-OneClaim-Work-MLR.ProcessBulkPDF");
oSafeURL.put("StartDate",StartDate);
if (Noofweeks==""){
doFormSubmit(FinalURL) ;
return;
}
if (StartDate==""){
doFormSubmit(FinalURL) ;
return;
}
/*doFormSubmit(PreURL);*/
var callback =
{
Functionality: sleect filters on screen.Click button to find from external tables on how many results exist and display in confirm box to proceed to create the PDF by sending the results:
How to access the Local variable /Param set in the activity back in the MLR JS text file.
I have the local action called from button.The Button runs a script in the JS file.
The script calls the activity and activity sets the local variable and send the variable back to the UI using show property .
This Show property XML doesnt work in Fire fox..
What are the options available ?How to send the param back to UI
Sample code tried .
function GenerateBulkPdf()
{
var retValue;
var oSafeURL = new SafeURL();
var Noofweeks,StartDate;
var FinalURL;
PreURL="pyActivity=Chartis-Global-OneClaim-Work-MLR.PreBulkPdf";
FinalURL="pyActivity=Chartis-Global-OneClaim-Work-MLR.GenerateBulkPdf";
Noofweeks=document.getElementById("NoOfWeeks").value;
StartDate=document.getElementById("CreateDateFrom").value;
oSafeURL.put("pyActivity","Chartis-Global-OneClaim-Work-MLR.ProcessBulkPDF");
oSafeURL.put("StartDate",StartDate);
if (Noofweeks==""){
doFormSubmit(FinalURL) ;
return;
}
if (StartDate==""){
doFormSubmit(FinalURL) ;
return;
}
/*doFormSubmit(PreURL);*/
var callback =
{
success : function(oResponse)
{alert("Sucess call...");
var Count= document.getElementById("BulkPDFResultsPage.pxResultCount");
alert(Count);
},
failure : function(oResponse){alert(" Failed."); }
};
pega.util.Connect.asyncRequest('POST',oSafeURL.toURL(),callback);
}