Form load & "Modifying records in ..." unrelated tables mess
bhalpin
Member Posts: 309
Hi.
I've had this happen in a couple of very complicated forms that gather a lot of data when opened.
I/the user gets dozens of pop-up messages saying "Modifying records in the XXX table" where XXX are tables not remotelty involved in the current process. Most of them are names of tables that are not even used in the implementation.
Does anyone know if these messages are totally bogus, avoidable, slowing down the 'real' work the form is doing, etc?
Thanks!
(60R2 on SQL)
I've had this happen in a couple of very complicated forms that gather a lot of data when opened.
I/the user gets dozens of pop-up messages saying "Modifying records in the XXX table" where XXX are tables not remotelty involved in the current process. Most of them are names of tables that are not even used in the implementation.
Does anyone know if these messages are totally bogus, avoidable, slowing down the 'real' work the form is doing, etc?
Thanks!
(60R2 on SQL)
0
Answers
-
A general question calls for a general answer:
First rule of developing forms is Keep It Simple! Forms should (not must) be bound to one table and display that data only. Related data should be displayed in separate pop up forms. Avoid at any cost (and I mean it) too complicated forms with too many fields or even more than one subform. Avoid gathering non related data via wild coding with "refreshing" on the OnAfterGetRecord trigger, etc...bhalpin wrote:I've had this happen in a couple of very complicated forms that gather a lot of data when opened.
That's a weird dialog. If modifying records takes so long that it has time to show a dialog then you really have a problem...bhalpin wrote:I/the user gets dozens of pop-up messages saying "Modifying records in the XXX table" where XXX are tables not remotelty involved in the current process.
What do you mean by that?bhalpin wrote:Most of them are names of tables that are not even used in the implementation.0 -
The form is complicated because that was the requirement - it wasn't a choice.First rule of developing forms is Keep It Simple!
The form is *not* (repeat: not) modifying ANY records in the DB. It is collecting data and building temporary records that are displayed in the form.That's a weird dialog. If modifying records takes so long that it has time to show a dialog then you really have a problem...
It means that the table names that come up are tables that have nothing to do with the form, and most are tables that have no data in them.What do you mean by that? (Most of them are names of tables that are not even used in the implementation.)0 -
It would think this is the standard rename dialog. So your code seems to rename something somewhere.rhpnt wrote:Quote:
What do you mean by that? (Most of them are names of tables that are not even used in the implementation.)
It means that the table names that come up are tables that have nothing to do with the form, and most are tables that have no data in them.Frank Dickschat
FD Consulting0 -
We could argue about that but then the thread would go on forever...bhalpin wrote:The form is complicated because that was the requirement - it wasn't a choice.
Forgive me to answer with questions but...
- Did you take a look at the code?
- Did you use the debugger?
...to find out what the form is really doing and where these dialogs come from?0 -
Solved.
At one point in my code I was doing a RENAME on one of the temporary records. With that removed the form loads in 1/10th the time.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions