Home Search

DriveWorks Pro 22
Drive Constant Value

Send Feedback

Drive Constant Value

The Drive Constant Value task will drive a value into a Constant in the Specification.

Properties

Property NameDescription
Constant NameThe name of the Constant to drive (including the DWConstant prefix).
Constant ValueThe value to drive into the Constant.
TitleChanges the Title (not the name) of the task.

Example

When this task is added the properties are static by default.
See How To: Change A Static Property To A Dynamic Property to enable rules to be built on these properties.

Property NameExample ruleExample resultMeaning
Constant NameDWConstantMyConstantDWConstantMyConstantThe name of the Constant to which you want to drive the new Value into.
Constant ValueIF(MyControlReturn = TRUE, ValueA, ValueB)ValueAValueA will be driven into the Constant if the control MyControl returns a TRUE value. Otherwise ValueB will be driven into the Constant

The Drive Constant Value task is used to dynamically update values that Constants have. This is an actionable change, therefore you can base events on the changing of the Constant so that they happen at a specific time. For example, upon clicking a macro that runs the Drive Constant Value task you can trigger other elements of UI to be displayed.

Using the Task in a Specification Macro

This task has different types of Outputs. For more information about Outputs see Specification Macros Task Node.

Outputs are only available within Specification Macros. Currently Outputs are not available for Specification Flow.

Status Outputs

This task supports Status Outputs. These can be used to perform different actions depending on what the status outcome of the task is. For more information see Status Outputs in the Task Node Outputs section of Specification Macros Task Node.

The status output navigation is as follows:

Success

  • Constant value driven succesfully.

Success with Warnings

  • N/A

Failed

  • Constant not found.

Additional Resources

MyDriveWorks - Tech Tips

Carousel Control

DriveWorks can be used to create dynamic Controls; this example uses Macro Buttons to create a Carousel Control.

Frame Control

The Frame Control displays a box in which any user Form, within the Project, can be shown. This can be used to create tabs displaying different Forms when clicked.

Macro Buttons

See how a Macro Button's argument and click position can be used as an input. This examples demonstrates a color picker.