I have created a table, with a complex table relation in a field:
field(1; InvoiceNo; Code[20])
{
Caption = 'InvoiceNo';
DataClassification = ToBeClassified;
TableRelation =
if ("Document Type" = const(Invoice)) "Sales Invoice Header"."No."
else
if ("Document Type" = const("Credit Memo")) "Sales Cr.Memo Header"."No.";
}
Then I created a read only List Page, with all elements of this table. The relation is working correctly, but when I click or double click the InvoiceNo field, It doesn't open the Posted Sales Invoice Card or the Posted Cr. memo Card.
I can only open the page using the link in the lookup
any ideas on how to enable opening on a click or double click?