> Defining Transaction Prompts

Transaction prompts define where and in what order the data collection module populates information in Datastream 7i. You can validate incoming data at the field level, as well as at conditional navigation between prompts.

Referring to the data collection plan created earlier, determine what data to enter (Fixed, Computed, or Calculated), in what sequence it should be gathered, and how to group data for processing to APIs. Define data prompts for each barcode transaction type.

For equipment audits, create scanner prompts with the Interface type A (Equipment Audits) and L (Equipment Audit Lines).

Define the directory for the scanner prompts on the Installation codes form (BNINST).

Follow these steps to define transaction prompts.

  1. Choose one of the following options:

  1. Archive column—Click to select the column where Datastream 7i archives transaction data.

  2. Interface type—Click to select one of the following APIs:

  1. Group sequence—Enter the sequence in which to group data collection transactions.

  2. Upload column—Click to select the interface column into which to load the data.

  3. Action code—Click to select the action that the selected interface performs on this data.

  4. Prompt sequence—Enter the chronological order in which this prompt occurs. The maximum number of digits is five. Do not skip sequence numbers.

  5. SQL code—Click to select the SQL code that defines a list of values for this prompt.

  6. Minimum size—Enter the minimum number of characters required for the data to enter at the prompt. The maximum number of digits is five. Enter nothing or 0 to make this prompt optional.

  7. Maximum size—Enter the maximum number of characters required for the data to enter at the prompt. The maximum number of digits is five. The value you enter must be greater than or equal to Minimum size.

  8. Duplicate previous value—Select to allow the value from the previous record to be duplicated (by pressing the F1 key on the barcode scanner).

  9. Pattern match—Enter the pattern matching to be performed by the scanner. Pattern characters can include the following values:

For example, if you enter S## for the slot prompt, Datastream 7i accepts a response that begins with S and is followed by two numbers. You can also combine patterns using the comma (or condition: S##, F##) or the colon (through condition: F##:S##). The maximum number of digits is 45.

  1. If data is—Enter branch conditions, as necessary. Branch conditions include the following values:

  Datastream suggests that you prompt the user once and then use a calculated field for each subsequent time.

  1. Pattern—Enter the pattern of the data collected. You can enter only one pattern.

  2. Go to—Enter the prompt to display if the result of If data is and Pattern is true.

  3. Validate file—Enter the filename of an ASCII text file against which to validate entries. The filename must be in DOS format. For example, you can enter a file containing a list of authorized employee codes. When you enter an employee code, the reader accesses the file and validates the scanned code against the employee list.

  4. LOV attached—Select to make the list of values defined by SQL Code available. If you do not select this field, Datastream 7i still validates data against SQL Code, but the list of values is not available.

  5. Not available—Select to ensure data entered is not in the list of values.

  6. Override—Select to allow users to enter nonvalid data if Not available is unselected or to enter valid data if Not available is selected.

  7. Next prompt—Enter the next prompt to display on the barcode scanner. The maximum number of digits is five.

  8. Click Validate. Datastream 7i validates all transactions for proper syntax, for correct prompt sequence starts, and for gaps in sequences, etc.

If Datastream 7i encounters a problem, it displays an error message. Correct the problem, and then revalidate.

  1. Choose File | Save from the menu bar. Datastream 7i saves the information to the database.