Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Filter and Return a subset of records in a sub grid other than using JS

Posted on by 702

Ok there is a requirement to show all other opportunities on the Opportunity form which have the same Account as the current one.

I know in CRM2013 this can be done using form JS to rewrite the view in side the sub grid on the fly with any desired filters...

I also know that I can achieve this easily with an embedded canvas app on the form.

Other than the above, I just wonder if in the latest version v9 and above - there is another way to do this.

Initially I thought the "Lookup" configuration on the editable sub grid control might be my answer, but after had a look of that, it isn't.

It is used to control any lookup field that is part of the sub grid view as suppose to filter on the given view.

Can someone confirm this please?

Cheers

Xun

  • shennu Profile Picture
    shennu 702 on at
    RE: Filter and Return a subset of records in a sub grid other than using JS

    I like this simply solution. many thanks

  • shennu Profile Picture
    shennu 702 on at
    RE: Filter and Return a subset of records in a sub grid other than using JS

    thanks Andrew. I must say that I didn't know the js wouldn't work with the unified interface... and thanks for sharing your js solution on this matter anyways.

    cheers

  • Verified answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Filter and Return a subset of records in a sub grid other than using JS

    Hello ,

    You can  achieve this using quick view form. Create a quick view form in Account entity. Include Opportunities subgrid inside quick view form. Once you created quick view form come back to Opportunities form and include the Account quick view form in the Opportunities form.

    pastedimage1599406806846v2.png

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Filter and Return a subset of records in a sub grid other than using JS

    Hello Xun,

    You can set the filter on the fly using JavaScript - dotnetdust.blogspot.com/.../setting-sub-grid-filterxml-in-unified.html

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans