is there any simple way to get a text containing primary key field names and values for a current record?
(e.g. TESTFIELD function displays such a message so you always know which record in a table has caused an error)
is there any simple way to get a text containing primary key field names and values for a current record?
(e.g. TESTFIELD function displays such a message so you always know which record in a table has caused an error)
In short, to inform user which row caused an error.
( Like I said, TESTFIELD is the example: I do not have to know what are the key fields of a table, NAV will display it to user automatically)
Answers
What do you want to do?
( Like I said, TESTFIELD is the example: I do not have to know what are the key fields of a table, NAV will display it to user automatically)
Customer.FIELDERROR("No.", 'is not valid');
This error message appears:
No. is not valid in Customer No.='NEW 3500'
Regards
GETPOSITION (Record)
Use this function to return a string that contains the primary key of the current record.
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Thank you all!
Regards,
Amer