Page 1 of 1
Is there a way to retrieve the call stack from javascript?
Posted: Wed Jul 29, 2015 12:38 pm
by jpmurtha
Dealertrack is implementing logic in the pui.onload and pui.onsubmit functions in custom.js. Is there a way to know whether the current screen is either genie or our application?
Re: Is there a way to retrieve the call stack from javascript?
Posted: Fri Jul 31, 2015 5:40 pm
by Scott Klement
The pui.onload and pui.onsubmit functions are not called from 5250 screens, they are only called from Rich Display screens.
Is that what you are asking?
Also, parameters are passed to your pui.onload() function indicating the name of the display file, library, record format, etc. So if you need to distinguish between your application and other Rich Displays, you could potentially do that by checking those parameters.