Develop > Tailoring > Data management > Data validation > Look-up processing > Create a validity lookup option in Format Control

Create a validity lookup option in Format Control

Access the Format Control record for the form in which you want to invoke validity table processing. If a record does not already exist, you must create one. For information on how to access and use Format Control, see the related topics.

  1. Click Tailoring > Format Control.
  2. Type a Name and then click Search.

    Service Manager opens a list of Format Control records.

  3. Click the record you want to update to open it.
  4. Click More or the More Actions icon and choose Additional Options, or click Addl Options in the form.
  5. Enter the following field values:

    FieldValue
    Condition for Optiontrue
    OptionValidity Lookup
    ApplicationApplication validate.fields
    Error MessageThe original record is displayed.

    Note: This is the recommended message. If this field is left blank, you will receive an unfriendly error message when you return to the data record.
    Reset on Returntrue


  6. Enter the applicable parameters for validate.fields in the Name and Value fields using the information from the following table:

    FieldValue
    namecursor.field.name()
    second.file$file
    cond.inputval("true", 4)

    Note: The data passed to the Boolean parameter must be a type 4 (hence the VAL() statement for the Value). As an alternative, a $variable could be defined in the initialization expressions (for example $flag=true) and then passed to the subroutine.


  7. Click Add to add a new Format Control record.
  8. Click Save to save your updates.

Related concepts

Data validation
Format Control processes
Format Control
Accessing Format Control
Using expressions in Format Control
Displayoptions

Related tasks

Display value summary details
Display range summary details
Create validity table definitionsAdd field-level definitions
Add value definitions
Add range definitions
Validate the validity definitions
Delete an entire validity record
Delete a single value or range definition
Delete value or range definitions from a table
Print a detailed report of an entire validity record
Validate fields during record processing
Call validate.fields from Format Control

Related references

Validity validation rules