DriveWorks Pro 16: 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.

DriveWorks Tech Tips Portal

Carousel Control

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

View all Tech Tips

Frame Control

The Frame control displays a box in which any user form, within the project, can be displayed, which can be used to create tabs which display different forms when clicked.

View all Tech Tips

Macro Button Selection

Works as a color picker. Select an item and assign it a color by using Macro Buttons to drive a value.

View all Tech Tips

DriveWorks Tech Tips Portal is available to DriveWorks Pro customers with an active subscription and support contract.

Tech Tips provide cut down projects that highlight specific functionality for faster and more effective learning.

To access the portal:

  1. Go to https://hub.driveworks.co.uk/tech-tips/
  2. Login with your DriveWorks Pro account credentials, if asked
  3. Click the Visit Tech Tips Portal button for access

The portal provides a search facility, start typing the name of the Tech Tip (as indicated above) to display the Tip you require.

Table of Contents