Retrieves data from the Newlook control as a JSON formatted string.
This method currently only applies to the Smartframe Newlook Control.
Introduced in Version 11.0.2
object.GetJSONValue(expression[, maxDepth])
The GetJSONValue method syntax has these parameters:
Part |
Description |
expression |
(string) An expression that specifies the Newlook object to return (i.e. "App.FunctionKeys"). |
maxDepth |
(integer, optional) A value which specifies the maximum depth of JSON tree to retrieve (default: 10). |
This method is an alternative to the GetValue method. It can be used to retrieve nested collections in a single call. JSON also explicitly supports null, therefore if the value you are requesting is not initialized (for example "App.MasterForm"), this method will return null instead of generating a runtime error.
The GetJSONValue method returns a string in JSON format:
{
property1: "text",
property2: false,
property3: [ "one", 2, 3.00 ]
}
The following JavaScript example uses the GetJSONValue method to return the current screen's function keys:
var keys = newlook1.GetJSONValue("App.ActiveForm.FunctionKeys");
Smartframe Newlook Control API
Customizing Smartframetemplates
© 2004-2021 looksoftware. All rights reserved.