poIPost GetResultLoadProgress

Gets the load progress as a percentage (from 0-100) for the given result.

Syntax

post_handle GetResultLoadProgress id context

Application

HyperView Tcl Query

Description

This command, valid only in Upfront Data Loading Mode, returns the load progress as a percentage (from 0-100) for the given result definition ID. Returns a value (0-100) indicating the load progress, or -1 if an error has occurred.

Inputs

id
The result definition ID.
context
A string indicating the context of the result to get the load progress for (scalar, tensor, vector, iso).

Example

To get the current result progress of the scalar definition with ID 5:

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

Errors

Returns -1 if an error has occurred and sets 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.