Queue set current field

Command group Flag affected Reversible Execute on client Platform(s)
Events NO NO NO All

Syntax

Queue set current field {field-name}

Description

This command queues a "set current field" event in the specified field, that is, it simulates a user-generated click or tab to the specified field. In enter data mode, the contents of the field is selected. The command does not generate an evClick. However it will produce proper evBefore and evAfter events during Enter data.

The field name parameter must be the name of a window field, not the name of the method associated with the field or the data name ($fieldname, not $dataname).

Queue set current field returns an error if the field cannot be found. You can turn off this error by setting the option "reportQueueCommandFieldNotFoundErrors" to false, located in the "defaults" section of config.json.

Example

# field method to jump to another field within the same window instance
On evAfter
  Queue set current field {myField}