Hi ,
I am new to AX 2012 . I am having one Form and there i have 2 Grid controls. In First grid i have Item Group. In the second grid i have fields like ItemNo, and Product name. If i select one Item Group in first grid , the second grid should be populated with the ItemNo and Product Name which is assigned with that Item Group. Help me on this.
Regards,
Ram.
Hi Ram,
Please note, that for inventitemgroupitem table SaveDataPerComapny property is set to No and you need add range by current company from X++ for field inventitemgroupitem.ItemDataAreaId.
Hi Nikolaos,
Here is my form screenshot. The Inventitemgroupitem has duplicate records , I have joined the Inventtable with Inventitemgroupitem table with inner join
Regards,
Ram
Can you share a screenshot?
Could you please also describe as much details about your form as possible. Do you now have three data sources?
Hi Nikolaos,
It worked but there are duplicate records. I have joined Inventtable with inventitemgroupitem link type inner join.
Regards,
Ram
You need to join it with InventItemGroupItem - there is no relation between InventTable and InventItemGroup.
Hi Nikolaos,
I Joined the Inventtable with the Inventitemgroup table as you have said but it doesnt work.
Regards,
Ram
If it's a data source on the same form, just join it to the second data source. Exactly the same logic than with the first two data sources.
Hi Nikolaos,
If i have to set the range in Invent Table how to set the querybuildrangevalue in Invent Table because there is no Itemgroupid field in InventTable.
Regards,
Ram
Hi Nikolaos,
I tried what you have said, It works .
Thanks & Regards,
Ram
Ahh, so your data sources are InventItemGroup and InventItemGroupItem! I thought that they are InventItemGroup and InventTable.
In this case you don't need any x++ code to achieve the filtering.
Just set JoinSource of InventItemGroupItem data source to point in InventItemGroup data source, and try to set Link type to Delayed. Does it work?
Whenever you have two tables that are directly related to each other, you don't need any x++ development to handle the filtering.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156