Reputation: 1369
Has anyone every tried to programmatically create Data Definition Groups?
Basically, create the group, then add the tables to it.
Tried doing this just by exploring the tables behind the AX form and it didn't seem to want to play nicely.
Upvotes: 0
Views: 490
Reputation: 11564
Creating a data definition group programmatically isn't terribly difficult, but when you say that, it makes me think that you want to do this to systematically do "something" with tables.
If that's the case, then you shouldn't worry about the definition groups, because that's more of a user-interface that uses the SysDataImport
and SysDataExport
classes, which you should just use directly through code.
Here is an example I blogged about not too long ago that shows how to import/export your MorphX settings. You can see where I add the Import/Export tables and do the work.
http://alexondax.blogspot.com/2015/06/how-to-exportimport-your-morphx-vcs.html
Upvotes: 0