Code Execution Difference between Classic Client and RTC

ssingla
Member Posts: 2,973
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.
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.
CA Sandeep Singla
http://ssdynamics.co.in
http://ssdynamics.co.in
0
Answers
-
Try to look at client monitor or SQL Profiler to look "under the hood". Check that all is as you want. Do not forget about the Delayed inserts feature.0
-
kine wrote:Try to look at client monitor or SQL Profiler to look "under the hood". Check that all is as you want. Do not forget about the Delayed inserts feature.
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.CA Sandeep Singla
http://ssdynamics.co.in0 -
Sounds to me like it's a refresh issue?0
-
ara3n wrote:Sounds to me like it's a refresh issue?CA Sandeep Singla
http://ssdynamics.co.in0 -
Still, I recommend to use SQL Profiler to see if the record is really updated and than reverted, or there is another error preventing the update. Sometime it could be problem of permissions like permission to SHOWPLAN .0
-
kine wrote:Still, I recommend to use SQL Profiler to see if the record is really updated and than reverted, or there is another error preventing the update. Sometime it could be problem of permissions like permission to SHOWPLAN .
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:table2.reset; Filtergroup:=2; . . . table2.setrange(Field5,table2.Field5::Option1); Filtergroup:=0;
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.CA Sandeep Singla
http://ssdynamics.co.in0
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