View Global Scope
scenario
—the first scenario on the shelf.scenario.entities
—an object containing a map of all model entities. For example:scenario.entities.MyScalar
,scenario.entities.MyArray
andscenario.entities.MySet
.scenario.parameters
—a function to access model parameters. For examplescenario.parameters('MyParam')
.scenario.props
—an object containing scenario properties. For example,scenario.props.name
andscenario.props.id
. Refer to the JavaScript API documentation for further information - https://www.fico.com/fico-xpress-optimization/docs/latest/insight5/javascript_api/ScenarioProperties.html.scenario.summaryData
—an object containing scenario summary data. For example,scenario.summaryData.hasResultData
andscenario.summaryData.modelStatus
. For more information, see the JavaScript API documentation.scenarios
—the array of scenarios on the shelf, in the same order as they are displayed on the shelf. This array is used to access entities from scenarios other than the first scenario. For example,scenarios[1].MyArray
,scenarios[1].props.name
, andscenarios[1].summaryData.hasResultData
.vars
—a map of all of the registered dynamic variables. For example,vars.MyVariable
. See Using Dynamic Variables for more on dynamic variables.user
—an object containing information about the currently logged-in user. It contains the propertiesfirstName
,lastName
,userName
andauthorities
, which returns an array of authority names as strings.You can also call the functionhasAuthority()
, passing an authority name as a string. For example, to loop over the authorities, use:
To check for a particular authority, use:<vdl-column vdl-repeat="=auth in user.authorities" vdl-text="=auth"> </vdl-column>
<span vdl-if="=user.hasAuthority('PROJECT_DELETE')"> Can delete app </span>
Note: For more on why this authority is named PROJECT_DELETE see the section A Word About Terminology.
© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.