Skip to main content

Notifications

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

Filter Second Grid Based on First Grid Value

Posted on by 434

Hi,

I have one form which has two grids. First grid contains Itemgroup. Second grid contains Itemid, Productname,

 ProductSubtype etc. FIrst Grid Datasource is InventItemgroup table and second grid main datasource is InventTable. I need to filter the second grid based on the Itemgroup i have selected on first Grid. Since, there is no relation between Inventtable and Inventitemgroup how to set the range for the execute query in Inventtable. Help me on this.

6558.Screenshot_5F00_2.png

Regards,

Ram

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Filter Second Grid Based on First Grid Value

    Hi,

    You already asked this in another discussion: community.dynamics.com/.../how-to-get-the-active-record-from-a-grid-to-another-grid

    Please go through the replies provided there - we have covered both possible approaches: data source relations (when data source tables are directly related) and x++ filtering (when no direct relation).

  • Suggested answer
    Sergei Minozhenko Profile Picture
    Sergei Minozhenko 23,089 on at
    RE: Filter Second Grid Based on First Grid Value

    Hi Ram,

    What is the purpose of that form? Are you planning only to view it?

    You can use view InventTableExpanded instead of inventTable, but views are read-only by default, otherwise you need to add also InventItemGroupItem to your form and use it as link between InventItemGroup and InventTable.

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