Add Fields To Grids

Return To AX Content

I have had to add fields to a grid that uses activelink and I couldn't just drop a field and make it work.
What I did to bypass the issue, was:
1. I added a method in the main table, the one that has no other table linked to it. The method calls the field from the required table.
2. I went into the Data Source of the "main" table in the form, and if it didn't have an init() function I added it and I called the method something like this:
tablewithmethod_ds.cacheAddMethod(tableMethodStr(tablewithmethod, method));
3. I created a field in the Grid and in the properties of the field i added the following:
a) DataSource:tablewithmethod
b) DataMethod:method
4. That's it!

Return To AX Content