Question

10
Replies
6257
Views
RanjithkumarC Member since 2013 19 posts
AIG
Posted: April 19, 2016
Last activity: May 2, 2016
Closed
Solved

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 =

{

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); 

}

User Interface
Moderation Team has archived post
Share this page LinkedIn