Skip to main content Skip to complementary content

Setting up a foreign key filter

About this task

You can filter foreign keys based on current record values, or values extracted from the current record or complex expressions.

The following example shows how to set up a foreign key filter based on a specified value of the current record:

Procedure

  1. In the Data Model Entities area, click the foreign key element AgencyFK you have added in Adding a foreign key to link entities.
  2. From the Properties view, click the Relationship tab.
  3. Click the Foreign Key Filter tab.
  4. Click the [+] button to add a line in the table.
  5. Click in the XPath column and then click the ... button to open a dialog box where you can select the XPath on which to set the foreign key filter.
  6. Select Contains from the Operator list.
  7. Click in the Value column and then enter Hollywood between double quotation marks in the field.
  8. If required, add multiple conditions and combine them using various predicates.
  9. Press Ctrl+S to save your changes.

Results

For more information, see Adding a foreign key filter.

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!