Initializing help system before first use

Accessing Scenario Summary Data

Scenario summary data is used to access information on the last model execution for the scenario.
The scenario.summaryData global is pre-populated with the scenario summary data, which include:
  • getExecutionTime —The time taken to last execute or load this scenario.
  • getLastExecutionDate —The date this scenario was last loaded or executed.
  • getModelStatus —The status of the Insight model.
  • hasResultData —Indicates whether this scenario has result data.
  • getNumberOfSolutions —The number of solutions found while executing this scenario.
  • getObjective —The Objective value for this scenario.
  • getProblemStatus —The enumerated value for Problem Status of this scenario.
For more, refer to the ScenarioSummaryData section of the JavaScript API documentation.

Accessing the Scenario Summary data

Scenario summary data can be accessed by the following methods:

Code editor

<vdl version="4.7">
    <vdl-page>
        <vdl-section vdl-if="=scenario.summaryData.hasResultData">
            <vdl-row>
                <vdl-column>
                    <span vdl-text="=scenario.summaryData.numberOfSolutions"></span>
                </vdl-column>
            </vdl-row>
        </vdl-section>
    </vdl-page>
</vdl> 

View Designer

Accessing Scenario summary data with the View Designer

© 2001-2020 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.