Home Search

DriveWorks Pro 22
Drive Control Value

Send Feedback

Drive Control Value

The Drive Control Value will drive a value into a Form Control in the Specification.

This task is often used to set values in Controls or clear values in Controls. This task is useful when re-using Form Controls multiple times.

Properties

Property NameDescription
Control NameThe name of the Form Control to drive the Control Value into.
Control ValueThe value to drive into the Control Name.
Use local value formatTRUE to drive the control value to the control using the local value format. For example, dates will be converted to the local format.
TitleChanges the Title (not the name) of the task.

Control Types

The following Controls can be driven with this task:

  • Check Box
  • Combo Box
  • Date Picker
  • List Box
  • Numeric Text Box
  • Option Button
  • Slider
  • Spin Button
  • Text Box
  • Measurement Text Box
  • Option Group

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.

For Control Type: Numeric Text Box

PropertyExample RuleExample ResultMeaning
Control Name"Volume"VolumeThe name of the control must be within quotes or result as a string. No spaces in Control names.
Control ValueLengthReturn*WidthReturn*DepthReturn (100*100*100)1,000,000Use the rule builder to build the rule that will result in the value to drive into the control

For Control Type: Check Box

PropertyExample RuleExample ResultMeaning
Control Name"DocumentsRequired"DocumentsRequiredThe name of the control must be within quotes or result as a string. No spaces in Control names.
Control ValueDWVariableDocumentsCheckFALSEFor a Check Box the Control Value must be either TRUE or FALSE.

For Control Type: Date Picker

PropertyExample RuleExample ResultMeaning
Control Name"ShippingDate"ShippingDateThe name of the control must be within quotes or result as a string. No spaces in Control names.
Control Value"06/26/2000"26/06/200026/06/2000 will be driven into the Date Picker Control.
Use local value format=TRUETRUEDate will be converted into the local format. This means that the value will drive into the Control.
The date format can also be set within the Date Picker Control Properties under 'Date Format'.

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

  • Control value driven succesfully.

Success with Warnings

  • N/A

Failed (one of the following occurred)

  • Control not found.
  • Control cannot be driven.
  • General error - see Specification report for more information.