Hello,
On table 263 - Intrastat Jnl. Line, I added a field in the TableExt :
field(8008001; LineType; Option)
{
Caption = 'Lige Type';
DataClassification = ToBeClassified;
OptionCaption = 'Item, Resource';
OptionMembers = Item, Resource;
}
And I've modified the field 20 - 'Item No.' :
modify("Item No.")
{
TableRelation =
if (LineType = const(Item)) Item
else
if (LineType = const(Resource)) Resource;
}
My prupose is : when a user on the page 311 Intrastat Journal adds a new entry, depending on if he choses Item or Resource in the field "Line type", the lookup they will see when they click on the field "Item No." will show items or resources.
The problem is : it doesn't work with this code. When I choose the option Resource, I only see items in the "Item No." Lookup on page 311.
What can I do to make it work please ?