Hello,
I created an interaction log entry page. This page has interaction log entry comment line. I thought, interaction log entries and comments complete on single page.
when I write new comment line, comment line no always get zero. I wrote comment sheet page but didnt work.
OnInit()
Inter.RESET;
Inter.SETRANGE("Entry No.", "Entry No.");
IF Inter.FINDLAST THEN
Inter."Line No." := Inter."Line No." + 10000
ELSE
Inter."Line No." := 10000;
Answers
Remove all of the code from the subpage and use the AutoSplitKey property instead.
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Thanks for answer.
I wrote because I didnt know AutoSplitKey property. I tried but nothing has changed. The first value always get zero. Is it interesting?