Problem refreshing form with sql view

zutzu
Member Posts: 86
I have a sql view.
And a linked table. This table views the info of the sql view.
I create a form that shows the table (with the info of the sql view).
This form is not editable.
The problem is: i have filters in this form (user can intro, for example, vendor). When filter applies, many times show correct information and many times show incorrect information (all registers less one).
And if a click with the cursor on the information, sometimes appear or diseppear one register.
Any idea?
And a linked table. This table views the info of the sql view.
I create a form that shows the table (with the info of the sql view).
This form is not editable.
The problem is: i have filters in this form (user can intro, for example, vendor). When filter applies, many times show correct information and many times show incorrect information (all registers less one).
And if a click with the cursor on the information, sometimes appear or diseppear one register.
Any idea?
0
Comments
-
The form is showing some "snapshot" of the view. When you are moving with the cursor inside the table, it will "refresh" the selected lines - some will be "removed", some are new etc... if you wish to refresh whole form, you need to use CurrForm.UPDATE to refresh the form. But still, this behavior is common for NAV and working in same way for common tables...0
-
kine wrote:But still, this behavior is common for NAV and working in same way for common tables...
No, the behaviour is different.
Detailed example:
I introduce vendor X and the result is 5 registers:
The form shows 5 registers (OK).
But if i refresh, form shows only 4 registers.
If i refresh another time, form shows 5 registers.
If you continue refreshing, toy get, 4, 5, 4, 5...
The problem is that the first time form shows information, may show information OK or bad (5 or 4 registers).
And i can´t tell the user: "If the information is bad, refresh".0 -
Than there must be some code behind that... try to enable debugger and go through the code which is called when updating the form...0
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