Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
Version: Available from runtime version 1.0.
Specifies matching fields in two data items that are linked by the DataItemLinkReference property. Set DataItemLink on the child data item. The referenced data item can be its parent or another ancestor.
Applies to
- Report data items
Remarks
Use the following syntax:
<Field>=field(<ReferenceField>)
| Placeholder | Description |
|---|---|
<Field> |
A field from the child data item. |
<ReferenceField> |
A field from the parent or ancestor data item identified by the DataItemLinkReference property. |
To link more than one pair of fields, separate the links with commas.
The DataItemLink property sets a filter on the child data item. The filter selects records that have the same field values in the referenced and child data items.
For example, a Customer parent data item and a Sales Header child data item both contain a customer number. Set DataItemLinkReference on the child data item to the Customer data item. Then set DataItemLink on the child data item as follows:
DataItemLink = "Sell-to Customer No." = field("No.");
This filter selects sales headers for the current customer. You can create the same filter in the OnPreDataItem trigger of the child data item:
SetRange("Sell-to Customer No.", Customer."No.");
Related information
OnPreDataItem trigger
DataItemLinkReference property
DataItemLink property for queries