The TRACE_OPT command configures special options for traceability columns.
To enable or disable one or more of these options, the TRACE_OPT command(s) must be executed before the template reaches the traceability columns being configured.
When a new data entry session is opened (for example: Quick Start, Template, Planned Session, or Stored Session), all of these options are returned to their default settings.
Syntax
TRACE_OPT option_number, trace_id, setting_number
Valid options for the option_number, trace_id, and setting_number parameters are as follows:
option |
explanation |
Setting/description |
0 |
Reset all |
Trace_id and setting_number should both be 0. |
Enable or disable the traceability priority list for one traceability column or for all traceability columns. |
This command enables or disables the traceability priority list for data entry. The trace_id and setting_number parameters determine which traceability lists use the priority list and which use the full list. Trace_id must be one of the following:
Setting_number must be one of the following:
For example:
Note: During data entry, if the user has rights to change to the full traceability list, the last option displayed on the traceability priority list will be Show full traceability list. Clicking this option will display the full traceability list.
For example:
|
|
2 |
Configure a traceability column to automatically display the predefined list. |
This command will override the Show ... list automatically setting on step 4 of the Template Wizard. This is useful if you want to display the list automatically in some cases (e.g., when running in PDA mode) but not in others. Trace_id must be:
Setting_number must be one of the following:
|
Configure a traceability column so the value must come from a predefined list. |
This command will override the Must come from a predefined list setting on step 4 of the Template Wizard. Trace_id must be:
Setting_number must be one of the following:
|
|
Configure a traceability column to require entry of a value. |
This command will override the Require entry when using this template setting on step 4 of the Template Wizard. Trace_id must be:
Setting_number must be one of the following:
|
|
Configure a traceability column to display a list of values from a string array. |
Instead of displaying the full traceability list or the traceability priority list for traceability field n, you can use this command to display a list of values from MySArr "Trace_n". If enabled, this command will display the values from consecutive indexes in the MySArr, starting with index 1 and incrementing by 1 until the first empty index is found. These values will be displayed in order by index. See the example code below. Trace_id must be:
Setting_number must be one of the following:
|
Examples
TRACE_OPT 1, 6, 1
Turns on the traceability priority list function, and configures traceability field 6 to display the traceability priority list instead of the full traceability list.
TRACE_OPT 1, 0, 0
Configures all traceability fields to display the full traceability list instead of the traceability priority list.
TRACE_OPT 3, 2, 1
Configures traceability field 2 to force the user to select the value from a predefined list.
MySArr "Trace_3", 1 = "LATCH 14729" :
MySArr "Trace_3", 2 = "LATCH 15136" :
MySArr "Trace_3", 3 = "NO LATCH" :
TRACE_OPT 5, 3, 1
Configures traceability field 3 to display the list of values in MySArr "Trace_3" instead of the full traceability list or the traceability priority list.