I am facing a problem which I am unable to solve. I will narrate the scenario......
Page 1 (based on Table 1) runs Page 2 (table 2). A function is written in the Page 2 to call a codeunit function with variable of Table 2. The values of Table 1 and 2 are modified in the codeunit.
Problem: Table 1 is getting updated based on values in Table 2 but Table 2 does not.
The code works perfectly in Classic client with SQL server Windows authentication but in RTC it seems to fail. There are no fancy dialog or other features in the code which might create problem in RTC. I had put some messages after the modify command to return the values which shows the updated values but after posting old values are retained.
Is there some document I can refer or I have to put the whole code here for the experts to analyse.
0
Answers
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
We are using RTC so Client monitor would not be of any help. I extracted NAV code in c# and ran the debugger in visual studio. The values are getting modified and remains as it is till the last line of code is executed but mysteriously getting replaced after posting.
To make it worse if we try to post the same record again it updates the values.
http://ssdynamics.co.in
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
http://ssdynamics.co.in
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thanks to all for their valuable inputs. The problem has been rectified. The cause of problem is as follow:
Form 1 was calling 2 by way of following code: In the process Field 5 was getting updated/modified and as soon as we commented the setrange of the field, the functionality started working. It was working fine with uncommented code in classic client but somehow giving problem in RTC.
http://ssdynamics.co.in