Forcing delays in Navision C/AL

m.pacana
Member Posts: 75
I currently have function in my code that makes the Navision application not respond and hangs up. But when I place a messagebox for every iteration inside the REPEAT UNTIL of the form, the execution works fine. Due to this, I guess it needs a certain delay on processing to make it work properly.
Does navision has other way to force some delays on the processing, other than using message boxes? :whistle:
Does navision has other way to force some delays on the processing, other than using message boxes? :whistle:
0
Answers
-
Well, you could use the sleep command, which you can see in the online help, but it seems kind of strange that Navision would require that in most circumstances.TecSA Malaysia
Those of you who think you know everything are annoying to those of us who do. -
David Brent0 -
m.pacana wrote:I currently have function in my code that makes the Navision application not respond and hangs up. But when I place a messagebox for every iteration inside the REPEAT UNTIL of the form, the execution works fine. Due to this, I guess it needs a certain delay on processing to make it work properly.
Does navision has other way to force some delays on the processing, other than using message boxes? :whistle:
What kind of function? A Dialog Update?0 -
it is function inside a codeunit. It consists of the REPEAT UNTIL code and the hang ups are encountered inside the looping statement if no message box is invoked inside. 8)0
-
It is strange, because Message boxes are showed at the end of the object run or on some points. Not exactly when you call the Message... :-) Only Confirm will stop the code when called. Messages are showed asynchronously...0
-
Be careful with messagesboxes and confirms inside transactions. Those may cause the database to be locked (not the whole database of course
).
0 -
Messages can lock the transacion only in pre 3.70B versions and only if they are called in Codeunit which is runned in If statement (if cu.run then...). Else messageboxes are not blocking the transaction... (the messagebox is showed after the transaction is commited...)0
-
oh they fixed that? Message boxes are no longer holding up commits?0
-
Yes, exactly, the case when Message blocked the transactions are solved in 3.70B and I assume that in 4.00 too... (may be in 4.00SP1, I do not know, if all correction from 3.70B are in 4.00...)0
-
-
Really? Im learning a lot from this forum
thanks. I guess the SLEEP works fine with my function. Thanks! \:D/
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
- 322 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