Personalized Community is here!
Quickly customize your community to find the content you seek.
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
So i have my own custom table & form, kinda our own custom system thats not related to AX transaction.
as AX already provide me for master item data on Inventtable, i dont want to create another item data & use relation to Inventtable for my custom table.
now, on my form with my custom table as grid datasource, i can insert/update/delete data on it & with relation i can lookup into Inventtable when selecting an item.
The issue, i cant display PartNumber & Partname that are part of Inventtable into the grid. if i put Inventtable on datasource, use link, & disable allow create/delete/edit, i cant add new line to my custom table.
if possible i want to avoid using display method as it kill filter function (ctrl+G).
is there some work around for me to show PartNumber & PartName as data view only while i can still insert/update/delete the data on the main datasource (my custom table)
Join InventTable data source to your main data source. Add the fields that you need and make them read-only. Then override write() and validateWrite() methods on InventTable data source. Remove super() from write() (which will prevent saving) and from validateWrite(), and let validateWrite() always return true (you don't need to validate it and you probably don't want saving to fail because of problem in InventTable).
You can see this technique used with InventDim data source in SalesTable from, for example.
By the way, because your question is clearly about development, I've changed the category from Other to Development / Customization / SDK.
Business Applications communities