Function used in Navision 2009 & Later Error List?

postsaurav
Member Posts: 708
Hi all,
I was thinking to create a function which will work just like the compilation process in Navision 2009 and Later.
I mean to say that i want to process multiple objects at a time.
If particular condition (run time error in object) met it should be inserted a record in a table.
And after the process it should display results in one go.
Now this function should be similar to the compilation process in Navision 2009 & later. This process compile selected objects and if error found it creates an entry in error list table. After process completes it shows the list.
Can anyone please tell me what would be that function that complies objects and create an entry if error found.
Because when i am trying that i doesn't go ahead if an form have run time error. Its because Form doesn't return anything in case of error.
Thanks in advance
Saurav Dhyani
I was thinking to create a function which will work just like the compilation process in Navision 2009 and Later.
I mean to say that i want to process multiple objects at a time.
If particular condition (run time error in object) met it should be inserted a record in a table.
And after the process it should display results in one go.
Now this function should be similar to the compilation process in Navision 2009 & later. This process compile selected objects and if error found it creates an entry in error list table. After process completes it shows the list.
Can anyone please tell me what would be that function that complies objects and create an entry if error found.
Because when i am trying that i doesn't go ahead if an form have run time error. Its because Form doesn't return anything in case of error.
Thanks in advance
Saurav Dhyani
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page
0
Answers
-
If i understand you correctly you want to call multiple functions and even if they fail, you want to move on, right?
This can be done by putting them in codeunits, if you run a codeunit (just the codeunit's onrun trigger, not a specific function) and demand its return value, it will not throw a runtime error, it will just return false, you can catch the error message with GETLASTERRORTEXT. Read more about this here:
http://msdn.microsoft.com/en-us/library/dd301214.aspx0
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