Modeling - Event logic
Note - These testing guidelines assume the user is skilled in the use of, at a minimum, the following:
- Modeled form with Multiple Tables and Event Logic
Scenario 1: Modeling - Validate "Event" logic added in forms containing multiple tables
Specific Setup:
- Have a modeled form [FormA] that contains a primary table [TableA] and a second table[TableB],
- Have two fields defined in each table, for this example a "Date" field [FieldA] and a "Multi-Select" dictionary field [FieldB], that is set to be initially 'Disabled', exist in each table
- Have a modeled form that contains [TableA] in the first section of the form and [TableB] in the second section
- In each section, set [FieldA] with following event logic:
- 'Type of Event' set to 'Result of Input with Value Checking'
- 'Compare with for Event' set to 'Other Tabled Column'
- 'Table Column for Comparison' set to 'Data_Entry_Date' (Note: this is always the (current date) at the time of new row data entry)
- 'Comparison Value to Trigger Event' set to 'Less Than'
- 'Required' set to [FieldB]
Steps
- Open "Form Definition" and select [FormA]
- Click the first section of the form
- Click the "Object Def" tab
- Select [FieldA]
- Click to the "Event Definition" section
- Select the event created in the set up
- Validate the field and field values selected for the event defined in the set up, are all populated as expected
- Click the second section of the form
- Click the "Object Def" tab
- Select [FieldA]
- Click to the "Event Definition" section
- Select the event created in the set up
- Validate the field and field values selected for event defined in the set up, are all populated as expected
- Close the form
- Open [FormA]
- Click to "Add" a new row
- Click to the first section of the form
- Validate [FieldB] is not required, as expected
- Enter a date in [FieldA] that is greater than or equal to today's date
- Validate [FieldB] is still not required
- Enter a date in [FieldA] that is less than today's date
- Validate [FieldB] is now required, as expected
- Click to the first section of the form
- Validate [FieldB] is not required, as expected
- Enter a date in [FieldA] that is greater than or equal to today's date
- Validate [FieldB] is still not required
- Enter a date in [FieldA] that is less than today's date
- Validate [FieldB] is now required, as expected
|
Topics
• Modeling
• NX
|