sb.resolveDataKey
sb.resolveDataKey(key1 [, key2, ...])
This function allows JS scripts to resolve Storyboard context variables to a fully qualified name based on the current execution context.
Parameters
| Parameter | Type | Description |
|---|---|---|
key1 | string | One or more string arguments containing the variable to resolve. |
Returns
| Type | Description |
|---|---|
object | An object containing the arguments provided on input as keys with the values being the resolved data value. |
Example
// Resolve the application my_var to a fully qualified name
var varname = "${app:my_var}";
var dv = sb.resolveDataKey(varname);
print("Full path for ${app:my_var} is " + dv.varname);