Passing parameter to universal/PUIMAPP call

Use this board to ask questions or have discussions with other Universal Displays users.
kjfarison
New User
Posts: 6
Joined: Thu Oct 29, 2015 5:18 pm
First Name: Kevin
Last Name: Farison
Company Name: WinWholesale
Contact:

Passing parameter to universal/PUIMAPP call

Post 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});
kjfarison
New User
Posts: 6
Joined: Thu Oct 29, 2015 5:18 pm
First Name: Kevin
Last Name: Farison
Company Name: WinWholesale
Contact:

Re: Passing parameter to universal/PUIMAPP call

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest