Metadata service
The metadata service allows external consumers to obtain information about the AOT objects within Microsoft Dynamics AX, such as tables, queries, forms, and so on. When we take a look at the operations available on the service, we can see the following two types of operations:
Operations that return a list of object names, such as the
GetQueryNames
operation which returns a list of query names available in the systemOperations that return metadata of one particular object to the consumer, such as the
GetTableMetaData
operation which takes a list of table names and returns all of the metadata information available for these tablesNote
You can find detailed class diagrams on MSDN describing the metadata classes at http://msdn.microsoft.com/en-us/library/gg845212.
Filling the combobox
Let's start by taking a look at the code that is executed when the form loads.
To fill the combobox, we need to use the GetQueryNames
operation on the metadata service and filter the results to show...