Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

How to show fields of InventTable inside line grid of PurchTable form?

(0) ShareShare
ReportReport
Posted on by 153
Hi experts,
I am trying to show few custom fields of InvenTable into line grid of PurchTable form but I unable to do that as InventTable is not used as a data source in that form. Can anyone please let me know how can I do that without using display methods. 
I will really grateful for your suggestions. 
Thank you,
 
  • Martin Dráb Profile Picture
    225,155 Moderator on at
    How to show fields of InventTable inside line grid of PurchTable form?
    It sounds like your code in validateWrite() and write() isn't correct, but I can't comment on your code unless you show it to us.
  • Arif Hussain Profile Picture
    153 on at
    How to show fields of InventTable inside line grid of PurchTable form?
     
    I have tried your suggestion but when I add a new line in purchLine and save the record, it shows the validation of two fields of InventTable which are Product and Item to be filled in. These fields are mandatory at table level and I have override the validateWrite and write at datasource level. 
     
    What to do with this validation? I cannot override at table level methods as it will get affected everywhere then. 
     
    Please let me know. 
     
    Thank you,
  • Suggested answer
    Layan Jwei Profile Picture
    4,102 Moderator on at
    How to show fields of InventTable inside line grid of PurchTable form?
    Hi Arif,
     
    As Martin said, you need to create an extension of PurchTable form and add InventTable as a  datasource in the form and join them together.
    Then you'll be able to drag and drop fields from InventTable and make them appear in the form grid 
     
    Thanks
    Layan Jweihan
  • Suggested answer
    Martin Dráb Profile Picture
    225,155 Moderator on at
    How to show fields of InventTable inside line grid of PurchTable form?
    If you don't want to use display method, you must add a datasource by yourself - in an extension. It needs to be joined to PurchLine, and you'll need to override validateWrite() and write() to prevent saving of InventTable when saving PurchLine.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,860 Test role Public

#2
Ludwig Reinhard Profile Picture

Ludwig Reinhard Microsoft Employee

#3
Martin Dráb Profile Picture

Martin Dráb 225,155 Moderator

Leaderboard

Product updates

Dynamics 365 release plans