Setting up a foreign key filter - Cloud - 8.0

Talend Data Fabric Studio User Guide

Version
Cloud
8.0
Language
English (United States)
EnrichDitaval
Data Fabric
Product
Talend Data Fabric
Module
Talend Studio
Content
Design and Development

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.