Page 1 of 1

Getting the Program name from JavaScript

Posted: Fri Nov 12, 2021 12:12 pm
by RichDotsonMTD
Is there an API that will return the name of the program that displayed the current UI? I am able to get the record format [currentRecordFormat()] and current user [currentUser()] from within javascript but I haven't found an API to retrieve the program name.

I am writing a function to retrieve a JSON list of widgets to hide/disable when the UI is loaded. This list is based on the User/Program/DisplayFormat and I am trying to avoid hardcoding those parameters so that I can use this function on any screen that we develop.

Thanks,
-Rich

Re: Getting the Program name from JavaScript

Posted: Fri Nov 12, 2021 4:49 pm
by Scott Klement
The easiest thing I can think of would be to bind a hidden output field to the display and put the program name in it. Then, you could retrieve it when needed.