New MetaData Virtual Tables in NAV 2016
In NAV 2016 there are four new metadata virtual tables were introduced and those are
- Table MetaData ((2000000136) <li>Codeunit MetaData ((2000000137) <li>Page MetaData (2000000138) <li>Report MetaData ((2000000139)
All these tables are read-only and has all the metadata information about the respective objects. The information which you can access in previous version by looking at the properties (Shift + F4) of the object, now you can access all that information from these tables.</p> <p>For ex: If you select any table and select properties of the table (Shift +F4) you will see the below information</p> <p></p>
Since virtual tables cannot be accessed directly from the object designer I created a new page with source table as Table MetaData , and when I ran the page and checked the information in that table about Payment Terms Object, I can see all the above information from the table except the CaptionML and Description, which I believe is very useful.
If you ever want to access properties of an object, you can just create a variable of that subtype and access all the information. Ex: If you ever want to know what is the CardPageID of a page or if InsertAllowed on the page, then you can access it using code.
Same is true for codeunits, pages and Reports. Please leave your comments, feedback or any suggestions you have for me to improve me my blog and also if you have any questions, feel free to post.. Microsoft Thanks for adding these tables.
Leave a comment