Page 1 of 1

Passing parameter to universal/PUIMAPP call

Posted: Thu Nov 12, 2015 5:40 pm
by kjfarison
Is there a way to pass a parameter to a program that is set up in PROFOUNDUI/PUIMAPP file? Below is sample code in the "pui.shutdown" javascript function but my RPG program does not "see" the parameter.

I have a parameter set up in the universal display file but, at the time of this code execution, the display file is not loaded on the browser.

Thanks.

Ajax call code:

ajax({url:"/profoundui/universal/KEVIN",
params:{p1:"B00909A8"},
method:"post",
async:true});

Re: Passing parameter to universal/PUIMAPP call

Posted: Thu Nov 12, 2015 6:00 pm
by kjfarison
I got this to work with help from Support. I was not using the proper parameter name in the call. Here is the correct code.

ajax({url:"/profoundui/universal/KEVIN",
params:{DeviceId:"B00909A8"},
method:"post",
async:true});

As soon as the record format was read in the RPG program, the parameter that I bound to the RPG variable in the Universal Display file contained the data I was looking for.