Skip to main content
insightsoftware Documentation insightsoftware Documentation
{%article.title%}
Published:
Was this article helpful?
0 out of 0 found this helpful

GetAppConfig

Use this function to retrieve an app property value from a simple XML element in the .lvapp file, then return the value as a string. This function is specific to Longview Apps. Currently, retrieving nested elements such as <kars> is not supported.

Note: You cannot use the GetAppConfig function when running in batch mode.

Copy

Syntax

GetAppConfig ("NameOfProperty")        

where:

  • NameOfProperty is the name of the property whose value you wish to retrieve. This value is not case-sensitive. You can also retrieve the name of the App by setting this parameter to "name".
Copy

Syntax example

Create Variable sValue as STRING
Set Variable sValue = GetAppConfig("description")
Show Message "The app description is $sValue$"        

Published:

GetAppConfig

Use this function to retrieve an app property value from a simple XML element in the .lvapp file, then return the value as a string. This function is specific to Longview Apps. Currently, retrieving nested elements such as <kars> is not supported.

Note: You cannot use the GetAppConfig function when running in batch mode.

Copy

Syntax

GetAppConfig ("NameOfProperty")        

where:

  • NameOfProperty is the name of the property whose value you wish to retrieve. This value is not case-sensitive. You can also retrieve the name of the App by setting this parameter to "name".
Copy

Syntax example

Create Variable sValue as STRING
Set Variable sValue = GetAppConfig("description")
Show Message "The app description is $sValue$"        

For an optimal Community experience, Please view on Desktop