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 178
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
    Martin Dráb 231,307 Most Valuable Professional 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
    Arif Hussain 178 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
    Layan Jwei 7,711 Super User 2025 Season 1 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
    Martin Dráb 231,307 Most Valuable Professional 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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans