Microsoft Dynamics AX Thoughts
I came across a case where I needed to select a field value from different companies in Dynamics AX.
Simply what you have to do is the following (I choose ItemId to be taken from different companies as an example):
- Create a field in your table with an ExtendedDataType than has NO relation, MyNewItemIdEDT in our example
- Create an ItemCompany field, put the extended data type as dataAreaId
- Create a Relation in that table with the following elements (Normal relation elements):
- <<NewTableName>>.MyNewItemId == InventTable.ItemId
- <<NewTableName>>. ItemCompany = InventTable.dataAreaId
By this you would be able to select the ItemId field based on the selected dataareaid without writing any code even.
5 Comments to “Populating Data from Different Companies”
Post comment
Search the site
Dynamics AX 2012 Event
Recent Posts
- Enterprise Portal is Not Working on Dynamics AX 2012 Hyper-V Image
- Dynamics Academy – An Academic Project for Microsoft Dynamics in Saudi Arabia
- Microsoft Dynamics AX 2012 Event in Khubar
- Knowledge Bridge
- Columbus IT
- Fawzi Al-Nahdi and Partners Holding Group
- Dynamics AX 2009 Shows One Line Only in Its Grids
- Talal Abu-Ghazaleh
Tags
Archives
- December 2011 (2)
- November 2011 (3)
- July 2011 (2)
- June 2011 (4)
- May 2011 (3)
- April 2011 (4)
- March 2011 (12)
- February 2011 (2)
- January 2011 (3)
- December 2010 (1)
- November 2010 (1)
- October 2010 (5)
- August 2010 (1)
- July 2010 (3)
- June 2010 (4)
- May 2010 (5)
- April 2010 (1)
- March 2010 (9)
- February 2010 (4)
- January 2010 (4)
- December 2009 (11)
- September 2009 (1)
- August 2009 (1)
- July 2009 (2)
- September 2008 (1)
Random Testimonial
- ~ Mohammad A-Awami, Dynamics AX Specialist at WorleyParsons
"I worked with Amer for WorleyParsons. I found him very cooperative. He is able to help me in a lot of issues that related to ax. His ability to solve the problems is fascinating me. It is so fast and done on the best practice. His ability on business analysis and implantation are done on the best methods." - Read more testimonials »
What's the little bird saying?
- Get a weekly doze of technology with the Microsoft Mondays Webcasts http://t.co/wyQSlYH3. This month showcases SSDT, Azure and SharePoint. 2 weeks ago
- @fawad343 Why not :)... I spent my honeymoon there.. and I would love to get back to it again! :D 3 weeks ago
- @saadalahmed تعليق بسيط... لاشيئ في العالم يسمى اسرائيل... لعلك تعني المغتصبة فلسطين؟ 3 weeks ago
- More updates...
Posting tweet...
Powered by Twitter Tools

February 6, 2011 in
March 20, 2011 at 8:27 am
Hi Amer,
I tried this but it did not work! how a company can check another company’s data?
March 20, 2011 at 9:31 am
Hi Abdullah,
Are you sure that you followed exactly the same steps? I just executed what I have written in my post.. and it did work.
The Result is whenever you selected the “ItemCompany” field, when you go to select the ItemId field… the items shows are the items from the select company (that you selected in ItemCompany).
Still did not show the expected results? If yes, let me please send you the table that I created as an XPO
.
March 22, 2011 at 9:02 am
Hi Amer,
Thanks for replying, here what I did:
I have a new table called “Trips”, this table has a field “TripNo” (already created an extended datatype), I added this field to “InventTransferTable” table, also another field “ItemCompany” (Extended datatype is dataAreaId), and relations for “InventTransferTable” table as follows:
* InventTransferTable. TripNo == Trips.TripNo (even it’s already point from the extended datatype)
* InventTransferTable. ItemCompany == Trips.dataAreaId
When inserting records to “InventTransferTable” table, the “ItemCompany” field is somehow set to the company which I want “TripNo” to be fetched from.
I dragged “TripNo” field to some form from “InventTransferTable” table, it’s keep listing values from the existing company and not the company set in “ItemCompany” field.
Did I miss anything or my case does not match the purpose of your post? If you send me an XPO project, that will be amazing
March 22, 2011 at 9:45 am
Hi Abdullah,
It looks that I have been trying an example and pointing out another example in my post just to give a clearer picture of what I want to say! It is my mistake.
What I had to mention is that the EDT of the “ItemId” field should NOT have any relation (otherwise that realtion will overwrite).
So to run YOUR example properly, you have to create an EDT that DOES NOT point to any table. And assign this new EDT to the “InventTransferTable.TripNo” field.
And to run MY example properly, I should not select the “ItemId” EDT to my field; I should have created a new EDT that does not point to the “InventTable.ItemId” instead.
Apologies for inconvenience! Thank you so much Abdullah for notifying me.
March 22, 2011 at 2:16 pm
Thanks Amer it works