Information Card Stack
An Information Card Stack object is a specialized type of Card Stack object used to display information on the relationship between the inputs given by the user to an application and the solution. The figure below, taken from the Tubular Reactor app, shows a portion of a running application in which an information card stack is used together with information on the expected computation time.
The corresponding form objects are shown below:
The figure below shows the Settings window where a string variable solutionState is used as the source.
There are similarities with a Card Stack object, but for the Information Cards, each card has an icon and text. In the figure above, the string variable values nosolution, inputchanged, and solutionexists control which information card is shown.
In this example, the information card stack is accompanied by a data display object where a model tree information node for the Expected Computation Time is used as the source. The figure below shows its Settings window.
Note that information nodes in the model tree are only shown when working with the Application Builder. They are made available in the Source section in the Settings window for form objects, when applicable.
You can also find information nodes with Last Computation Time under each study. The information node Last Computation, found directly under the Model node, will correspond to the computation time for the last computed study.
Information nodes can be used as a source for input field objects, text objects, and data display objects. For input field objects and text objects, in order for the information nodes to be accessible, the Editable checkbox has to be cleared.
The Expected Computation Time take its data from the root node of the application tree, as shown below.
If the computation time is predominantly spent in a method, such as when the same study is called repeatedly, then you can manually measure the computation time by using the built-in methods timeStamp and setLastComputationTime. For more information, see Date and Time Methods.