Page 1 of 1
Screen Name
Posted: Tue Jul 30, 2019 2:49 pm
by dougmatthews47
Is there a way to detect or get the active genie screen name?
like the pui.skin to get the skin name.
Thanks
Re: Screen Name
Posted: Tue Jul 30, 2019 7:43 pm
by Scott Klement
Genie is capable of displaying our Rich Displays, but is also capable of showing 5250 screens.
In the case of a Rich Display, you can get a list of the record formats on the screen by calling the currentFormatNames() API
https://docs.profoundlogic.com/x/JoA-AQ
In the case of a 5250 screen, Genie doesn't actually have any way to know what the screen is called. The operating system simply tells it what to print, it doesn't tell it which display file or record format is being displayed. However, just as the designer looks for a given "identifier" as a string on the screen, you could look for an identifying string, too. You could either do that with the get() API, or with the detectScreen() API.