Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

How to create relation between two grids on customized form.

(0) ShareShare
ReportReport
Posted on by 31
how to create relation between two grids on the basis of recid I wanted quotationlines lines against item from serviceOrderLines i wanted to see quotationLInes Against selected Items from ServiceOrderLines grid. 
I created Relation between ServiceRequestLinesTable and ServiceRequestQuotationLines their screenshot is below:
5706.pastedimage1680586926822v2.png
7607.pastedimage1680587100901v3.png
4336.pastedimage1680587156874v4.png
  • Munib Ahmed Profile Picture
    Munib Ahmed 31 on at
    RE: How to create relation between two grids on customized form.

    thanks it solves my problem

  • Mohit Rampal Profile Picture
    Mohit Rampal 12,550 Super User 2024 Season 1 on at
    RE: How to create relation between two grids on customized form.

    In addition to above suggestion, you can also check what's the query generated for the form. Add info(this.query().toString()) in executeQuery method. Based on the query, you can validate if there is valid data or you need to make some changes in your form.

  • Verified answer
    GirishS Profile Picture
    GirishS 27,816 Super User 2024 Season 1 on at
    RE: How to create relation between two grids on customized form.

    Do you have added any other range on the form. Check whether you have added any other range on the form.

    If the record is not shown in the form, then the relation field in child table is not filling in. After adding record check whether that field values is filled in.

    Thanks,

    Girish S.

  • Munib Ahmed Profile Picture
    Munib Ahmed 31 on at
    RE: How to create relation between two grids on customized form.

    Hi Girish,

    Thanks for reply

    I already did that but when i created new record in serviceOrderLines Grid means when i added new item and then added its quotationLInes in service order quotation Lines grid and save that and then when i open the record again the ServiceQuotationLines against items are vanished but they are saving in database.

    Actually I am created ServiceRequest Customized form in which first grid " ServiceRequestLines" are actually arrival items and second Grid its quotations against arrival item.

    i am also attaching the screenshot of form so you can understand below:

    pastedimage1680589130953v1.png

  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,550 Super User 2024 Season 1 on at
    RE: How to create relation between two grids on customized form.

    Hi Munib, Check this article

    community.dynamics.com/.../868133

  • Suggested answer
    GirishS Profile Picture
    GirishS 27,816 Super User 2024 Season 1 on at
    RE: How to create relation between two grids on customized form.

    Hi Munib,

    If you set the join source property on the form, it will work properly. Make ServiceRequesetLineTable as a Parent DataSource and on the property of the ServiceRequesetQuotationLines DataSource set the Join source property to ServiceRequesetLineTable.

    Grid will filter based on that.

    Thanks.

    Girish S.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,883 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,569 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans