I created a two new tables header & line, Line no is getting incremented in Classic client i converted the form to pages, When i open in RTC line no is always zero, i am not able to insert the second line in RTC.
The header table and the line table have a tablerelation, where the line table has the same primary key fields as the header, plus an integer field for the line number. This table relation must be present as the form link between the header form and the lines subform. The subform will automatically populate the linked fields with the values from the header, and the Autosplpitkey property then populates the line number automatically when the record is inserted into the database.
Hi ramkumart
Did you find a solution for this?
I have the same problem. It works perfectly in a classic version (done it hundred times before ), but not in the RTC. "Line No." is still 0 when leaving the line??
On the form, you probably pre-defined the key in use. When doing data entry, the key on the form has to be the primary key of the table. This means that the tableview property should be set to blank.
Comments
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Does it end if an integer?
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
RIS Plus, LLC
Did you find a solution for this?
I have the same problem. It works perfectly in a classic version (done it hundred times before ), but not in the RTC. "Line No." is still 0 when leaving the line??
Best regards
JJ
I solved it by changing the subform's PageType from 'List' to 'ListPart'.
Best regards,
Erwin
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book