Appearance
Result Objects
Page Flow Blocks reference.
Blocks
- Deferred Task Result
- New Result Object
- Result Data
- Result Error
- Result Status
- Set Result Data
- Set Result Error
- Set Result Status
Deferred Task Result
Block name: promiseresult
Provides the resolved value of a deferred task when used inside a promise completion callback.
Output
This block produces an output value of type Any.
Behavior
Returns the internal tvwaPromiseResult value when it is in scope. This value is introduced by the async callback generated by promisethen.
Related Blocks
New Result Object
Block name: result_object
Creates a new result object with status, data, and err fields.
Inputs
| Input | Type | Description | Accepts |
|---|---|---|---|
| status | boolean | The success status for the result object. This is typically provided by a logic_boolean block. | logic_boolean |
| data | object | The result data value to store in the object. | |
| err | string | The error message to store in the object. This is typically provided by a text block, but nullobject can also be used when there is no error. |
Output
This block produces an output value of type Any.
Behavior
Generates a plain JavaScript result object with the fields status, data, and err. Missing inputs default to false, null, and an empty string respectively.
Related Blocks
Result Data
Block name: result_data
Gets the data field from a result object.
Inputs
| Input | Type | Description | Accepts |
|---|---|---|---|
| result | object | The result object to read from. This is typically provided by a result_object block. |
Output
This block produces an output value of type Any.
Behavior
Generates an expression that reads the data field from a result object and normalizes missing results to null.
Related Blocks
Result Error
Block name: result_error
Gets the err field from a result object as text.
Inputs
| Input | Type | Description | Accepts |
|---|---|---|---|
| result | object | The result object to read from. This is typically provided by a result_object block. |
Output
This block produces an output value of type String.
Behavior
Generates an expression that reads the err field from a result object and converts it to text, normalizing missing results to an empty string.
Related Blocks
Result Status
Block name: result_status
Gets the status field from a result object.
Inputs
| Input | Type | Description | Accepts |
|---|---|---|---|
| result | object | The result object to read from. This is typically provided by a result_object block. |
Output
This block produces an output value of type Boolean.
Behavior
Generates an expression that reads the status field from a result object and normalizes missing results to false.
Related Blocks
Set Result Data
Block name: result_data_set
Sets the data field on a result object.
Inputs
| Input | Type | Description | Accepts |
|---|---|---|---|
| result | object | The result object to update. This is typically provided by a result_object block. | |
| data | object | The new data value to store in the result object. |
Output
This block does not produce an output value.
Behavior
Generates code that updates the data field on a result object when the object exists.
Related Blocks
Set Result Error
Block name: result_error_set
Sets the err field on a result object.
Inputs
| Input | Type | Description | Accepts |
|---|---|---|---|
| result | object | The result object to update. This is typically provided by a result_object block. | |
| error | string | The new error message to store in the result object. This is typically provided by a text block. | text |
Output
This block does not produce an output value.
Behavior
Generates code that updates the err field on a result object when the object exists.
Related Blocks
Set Result Status
Block name: result_status_set
Sets the status field on a result object.
Inputs
| Input | Type | Description | Accepts |
|---|---|---|---|
| result | object | The result object to update. This is typically provided by a result_object block. | |
| status | boolean | The new status value. This is typically provided by a logic_boolean block. | logic_boolean |
Output
This block does not produce an output value.
Behavior
Generates code that updates the status field on a result object when the object exists. The stored value is normalized so only an exact true input becomes true.

