Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Filter Second Grid Based on First Grid Value

(0) ShareShare
ReportReport
Posted on by 454

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
    101,158 Moderator 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
    23,091 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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,099 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans