Screen Name

Use this board to ask questions or have discussions with other Genie users.
Post Reply
dougmatthews47
Profound User
Posts: 35
Joined: Fri Jan 12, 2018 10:53 am
First Name: Doug
Last Name: Matthews
Company Name: Maverick Transportation
Contact:

Screen Name

Post 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
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: Screen Name

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

Who is online

Users browsing this forum: No registered users and 4 guests