web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Metadata Filter in bas...
Power Pages
Answered

Metadata Filter in basic Form subgrid OR filter list by ID ?

(0) ShareShare
ReportReport
Posted on by 74

Hi,

 

Scenario: I have list of records that when I view details it opens in a new page where a list of related records show up. This can be done by having a form subgrid.

Problem: When it's a form subgrid there is no option to add metadata filter to search those records.

 

Is it possible to:

     - Add metadata filter to the form subgrid?

     - Filter a normal List by that record ID used by the form, since this List has a metadata filter option?

 

Any other alternatives?

Categories:
  • Verified answer
    oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    Hi

    • Subgrid option is probably the easiest, but adding a filter would have to be a custom JS, and you would have to avoid paging as well. It would probably not be a great UX
    • If you need the filter, you can add multiple Lists to a page, but then you will have the issue with the pre-filter.. I never tried with multiple lists, but I wrote an article on pre-filtering a List that could be a starting point for you: http://oliverrodrigues365.com/2021/03/02/power-apps-portals-loading-large-data-in-entity-lists/

     

  • T1ago Profile Picture
    74 on at

    Hi @OliverRodrigues thanks,

    Been doing some tests and I managed to open the list and apply the new metadata filter when possible. However it will sometimes cause it to show incorrect records on the list, since it first loads all and then filters.

     

    From your link it could be possible to fix this problem by loading an impossible filter, and then apply one that retrieves records, but I load my page from a list clicking on "View Details" where it sends the ID to filter said list. I can't seem to add the ?mf=0=firstvalue when entering the page like that. Which is quite different from the link that passes the parameters.

     

    I'll keep trying to find a way, or if anyone has some suggestions.

  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    hi Tiago

    can you give more details on how you open the page? is the "view details" a button from another list/subgrid? have you tried applying a JS that would manipulate the link?

  • T1ago Profile Picture
    74 on at

    @OliverRodrigues ,


    @OliverRodrigues wrote:

    hi Tiago

    can you give more details on how you open the page? is the "view details" a button from another list/subgrid? have you tried applying a JS that would manipulate the link?


    That is exactly it, view details from a list.

    What I ended up doing is when the page is opened I find the parameters in the url (like you show on your post), that will be ID from the list and if it doesn't contain "mf" parameter I do a "window.location.replace()" and add the "mf" so it loads correctly.

     

    Only small issue with this, is it refreshes the page, but it's the best so far, and it fixes the problem.

     

    I don't know how you can edit the "view details" link via js. I tried adding the parameter before the id but it replaces the symbols and won't work:

    T1ago_1-1652182256660.png



  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    I see.. I have another article that manipulates a list details via JS

    It might help you: Power Apps Portals – Entity List: Making the entire row clickable – Oliver Rodrigues (oliverrodrigues365.com)

    What I am doing in this article is making the entire row clickable, but you can probably use part of it to your needs 

  • T1ago Profile Picture
    74 on at

    @OliverRodrigues ,

    I managed to adapt what you provided in you post, and it's much better now that it doesn't refresh the page.

    Thanks for your help!

     

    I'll mark your other reply as the solution since it can filter server side.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 18 Super User 2026 Season 2

#1
Mohsin Ali Profile Picture

Mohsin Ali 18

#3
CU08101843-0 Profile Picture

CU08101843-0 4

Last 30 days Overall leaderboard