Skip to main content Skip to complementary content

Creating a filter using a validation rule

Use a ValidateGroup function to filter out rows containing an invalid element.

In this example, create a filter to display only the employee in the Denver location.

Procedure

  1. Select the row (0:*) element from the Input (XML) table and open the Validate tab.
  2. From the Functions tab, select ValidateGroup and place it in the Validate tab.
  3. Double-click on ValidateGroup.
    1. Enter TEST in the Message field.
    2. Enter a number, for example, 11.
  4. In the Data section, place the input element that you want to validate. In this example, use Location.
    Example of the Location input element.
  5. Select Location from the Input (XML) table and open the Validate tab.
  6. Insert a validation function that returns a Boolean. In this example, select the Contains function from the Functions palette.
  7. Double-click Contains and enter Denver.
  8. Place the Location element from the Input (XML) table in the Input Value section.
    Placement of Location element.
  9. Select the row (0:*) element from the Output (XML) tab.
  10. In the SimpleLoop, add the IsValid function in Filter section.
    Loop tab.
  11. Click Test Run to display the employee in Denver.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!