poIPost AddResult

Adds a result definition with the given label.

Syntax

post_handle AddResult label context

Application

HyperView Tcl Modify

Description

This command, valid only in Upfront Data Loading Mode, adds a result definition with the given label. It also returns the ID of the created result definition.

Inputs

label
The result definition label.
context
A string indicating the context of the result ID (scalar, tensor, vector, iso).

Example

To add a new scalar result with label R1:

hwi OpenStack
hwi GetSessionHandle sess
sess GetProjectHandle proj
proj GetPageHandle page [proj GetActivePage]
page GetWindowHandle win [page GetActiveWindow]
win GetClientHandle client
client AddResult R1 scalar
hwi CloseStack

Errors

Returns 0 if there was an error adding the result and sets an error condition on the session handle. See session_handle GetError.

Related Topics

See the Upfront Data Loader APIs topic for additional information regarding the various Tcl/Tk commands that have been added for this workflow.