GetStatus
You can use this function to obtain the status of various server features, such as eliminations, journal entries, schedules, and so on.
These features are specified as either TRUE (activated) or FALSE (deactivated) in the Server configuration file (lvsrvr.cfg). When the server is started, it consults this file and switches these features on or off accordingly.
This function is useful when you want to perform an action in Longview but do not know whether you have access to that particular functionality.
When you connect to the Longview database, the status of these features is automatically stored. When the GetStatus function is called with a feature name, the status of the feature is returned to a variable. The status returned can be one of two possible values:
Value | Description |
---|---|
0 |
FALSE. The feature is deactivated on the server. |
1 |
TRUE. The feature is activated on the server. |
When you disconnect from the Longview database, the status of the features is cleared, until the next time you connect to the database.
Syntax:
GETSTATUS ("ServerOptionName")
where:
-
ServerOptionName can be one of the following, enclosed in double quotation marks:
ServerOptionName value Corresponding configuration parameter name in the lvsrvr.cfg JE
USE_JOURNAL_ENTRIES
ELIM
DO_ELIMINATIONS
MODELRULES
USE_MODEL
QUERYRULES
USE_QUERY_RULES
ROLLUPRULES
USE_ROLLUP_RULES
NDD
ACCOUNTING_NDD
PAC
ACCOUNTING_PAC
REC
ACCOUNTING_REC
YTD
ACCOUNTING_YTD
TRN
ACCOUNTING_TRN
Syntax example:
GETSTATUS ("MODELRULES")