When you create a subject based on some Progress business logic, the subject wizard makes a call to the business logic on the AppServer to retrieve the temp-table. If your business logic takes some time to complete, this can make creating and editing a subject time consuming.
To prevent this, inmydata provides a server-side dynamic function that will indicate whether the call is being made from the setup screens, or is a genuine request for data. The syntax of the call is as follows;
The function returns a string value of TRUE if the call is made from the setup screens, or FALSE if the call is a genuine request for data.
As an example, if your business logic returns a temp-table with the name ttSalesData, it would be good practice to have the following code at the very start of your function;
EMPTY TEMP-TABLE ttSalesData.
IF DYNAMIC-FUNCTION("DataPA_Property_Value","ReadFunctions_SetupCall") = "TRUE"
THEN RETURN TEMP-TABLE ttSalesData:HANDLE.