Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

How to add field from different data source in form grid

(0) ShareShare
ReportReport
Posted on by 171
Hi Team,
 
I have extend the ProdJournalTransBOM form.
 
In ProdTable i have added one Test new field.
 
Test field i have added in ProdJournalTransBOM form grid and set the data source property ProdTable 
 
Production control -> PickingList
 
I can see there is no data in Test field.
 
Please let me know how to achieve this.
 
 
  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 230,934 Most Valuable Professional on at
    How to add field from different data source in form grid
    The data source of gridOverviewDetails is ProdJournalTable, which isn't joined with ProdTable data source, therefore it's not gonna work. You'll need to add an extra data source for ProdTable and join it with ProdJournalTable. Or you could use a display methods, but joins are more efficient.
     
    Don't forget to override write() and validateWrite() of the new data source to prevent saving.
  • CU21091228-0 Profile Picture
    CU21091228-0 171 on at
    How to add field from different data source in form grid
    Hi Martin,
     
    I have added in gridOverviewDetails.
     
    If i add ctrlLines grid Test field is not display in Production control -> PickingList
  • Martin Dráb Profile Picture
    Martin Dráb 230,934 Most Valuable Professional on at
    How to add field from different data source in form grid
    There are several grids in ProdJournalTransBOM form. Which one did you add the field to?
     
    ProdTable data source is joined with ProdJournalBOM, so it should work for ctrlLines grid (which has ProdJournalBOM as the data source), but not the other grids.
     
    Also, do you have data in your new field?

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…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,934 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans