I’m working in AX 2009 using a duplicate of the InventOnhandItem form, which has more than 90% of my needs for a particular project.
When this form is opened and the user clicks the “Advanced Filter/Sort” button, then right-clicks on the “On-hand inventory” table (the InventSum) and chooses n:1 > Items (Item number). If this is Added to the range with “Items” listed under Table, and “Item group” listed under Field, then the user can narrow down the criteria field with an item group of say “Finished Goods”, which will display only finished goods items in the grid.
I have been tasked with adding a filter pane to the form, so that the user will be presented with the choice of selecting from one of the item groups available. I added a Group control to the form and placed a StringEdit control in this group. I set its ExtendedDataType to “ItemGroupId”, so that the above choices show up in the control.
I followed the suggestions found in an article titled “How to: Add a Filter to a List Page”, which I based my code on. However, after modifying the code, it still doesn’t give me the same functionality as the “Advanced Filter/Sort”. I need to know how to duplicate its functionality, including the ability to select a “Many-to-One” n:1 to add the above stated capability of Items, Item group, etc.
Can someone suggest how to duplicate the abilities of the “Advanced Filter/Sort”? Thank you in advance.