Skip to main content
Version: 9.0.2

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

ParameterTypeDescription
key1 stringOne or more string arguments containing the variable to resolve.

Returns

TypeDescription
objectAn 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);