Increase the line number

aberkal
Member Posts: 8
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;

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;

-1
Best Answer
-
I found the problem. This comment sheet was not subpage, it was list. I created new subpage, it was solved0
Answers
-
Why do you write new line in code? What if your user wants to add a comment line in front or in betweem of existing ones?
Remove all of the code from the subpage and use the AutoSplitKey property instead.Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-032 -
Slawek_Guzek wrote: »Why do you write new line in code? What if your user wants to add a comment line in front or in betweem of existing ones?
Remove all of the code from the subpage and use the AutoSplitKey property instead.
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?0 -
I found the problem. This comment sheet was not subpage, it was list. I created new subpage, it was solved0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions