Is there a way to retrieve the call stack from javascript?

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
jpmurtha
New User
Posts: 17
Joined: Thu Mar 12, 2015 6:33 pm
First Name: Jim
Last Name: Murtha
Company Name: Dealertrack
Contact:

Is there a way to retrieve the call stack from javascript?

Post 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?
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Is there a way to retrieve the call stack from javascript?

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

Who is online

Users browsing this forum: No registered users and 6 guests