I have a project where I will need to add the same code to several hundred reports in NAV. And, I may need to do this in several databases.
I am looking for the best way to automate this process.
The code is very simple: declare a global variable then add 2 or 3 lines of code to the OnInitReport trigger in each report.
I've noticed in NAV2009 that you can export objects in xml format. I suspect that this may be the way to go for this project. However, I am relatively new at working with XML.
My questions are:
1) Are there other approaches that you have used to automate adding the same code to many objects in NAV?
2) I know there are many tools that are available for working with XML data. What tools do you recommend for my project? Also, let me know if you are aware of any books or online documentation that were helpful for you in learning to use these tools.
3) Are there any gotchas that I should look out for in doing this project?
Thanks
Joseph
Joseph Gress
0
Comments
http://dynamicsuser.net/blogs/mark_brum ... usage.aspx
How is my guessing? :?:
Peter
Mark's blog posting about adding code to the FindPrinter function in Codeunit 1 works beautifully for reports.
Now, I want to do the same thing (record when they were last used, etc) for forms and dataports. Unless I'm missing something, the same trick won't work for these objects.
So, I'm back to my original questions:
1) Are there other approaches that you have used to automate adding the same code to many objects in NAV?
2) I know there are many tools that are available for working with XML data. What tools do you recommend for my project? Also, let me know if you are aware of any books or online documentation that were helpful for you in learning to use these tools.
3) Are there any gotchas that I should look out for in doing this project?
Thanks for the suggestion!
By default Navision allows users to use form 0 in the ALL role.
I don't like that.
My advise to customers is to setup security on all objects, not only tables. This way you can also see which objects are really used.
You can start with adding all forms to one ALLFORM role and start stripping slowly.
If an user cries that something does not work, it's fixed in 5 seconds.
RIS Plus, LLC
Thanks again.