Page 1 of 1

currentProcedureName() ?

Posted: Sun Jun 26, 2016 1:53 pm
by k2R400
Hello,

Is it possible to retreive the *PROC name from the PDSD with javascript (like the currentFormatNames System's API) ?
I need it in the onload event.

Thank you in advance

Re: currentProcedureName() ?

Posted: Mon Jun 27, 2016 9:29 am
by Glenn
Patrick,

I do not believe we have a JavaScript API to retrieve the current procedure name.

What you could do is place a hidden Dynamic Output Field on your screen that is bound to the variable you have defined for *PROC in your PSDS. You could then use the get() API to retrieve the value in the onload event.

Glenn

Re: currentProcedureName() ?

Posted: Mon Jun 27, 2016 4:23 pm
by k2R400
Thank you Glenn