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
Getting the Program name from JavaScript
-
- Profound User
- Posts: 30
- Joined: Mon Jun 22, 2020 1:48 pm
- First Name: Rich
- Last Name: Dotson
- Company Name: MTD Products
- State / Province: Ohio
- Country: United States
- Contact:
-
- 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: Getting the Program name from JavaScript
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.
Who is online
Users browsing this forum: No registered users and 2 guests