Page 1 of 1

pui.alert

Posted: Wed Jan 21, 2015 9:18 am
by PatriceVincent
Hi Support Team,

Is there a way to pass a parameter to pui.alert :
pui.alert("Process completed successfully") => pui.alert(ZONEPARAM)
where ZONEPARAM is for example 30 CAR

Thanks for your help

Re: pui.alert

Posted: Wed Jan 21, 2015 9:52 am
by Scott Klement
You can bind your 30 CHAR parameter to a hidden widget, such as a hidden textbox or output field.

Then you can retrieve it's value in JavaScript using the get() API. So you could code something like:

Code: Select all

pui.alert( get("Textbox1") );
Good luck

Re: pui.alert

Posted: Wed Jan 21, 2015 10:32 am
by PatriceVincent
Hi Scott,
Yes it works perfect, Thanks (again) !!!