poIPost AddResult

Adds a result definition with the given label.

Syntax

post_handle AddResult label context notify

Application

HyperView Tcl Modify

Description

This command, valid only in HyperView - MultiCore profile, 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).
notify
Set to 'true' to trigger an event to update the browser, otherwise 'false'. The default value is true.

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 true
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 HyperView - MultiCore APIs topic for additional information regarding the various Tcl/Tk commands that have been added for this workflow.