Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Showing Views based on Condition

(0) ShareShare
ReportReport
Posted on by 30

Dear All,

I have one requirement which I need to show views based on some condition. For example, I have 2 tables: Apps and Users which are related. I have defined Subgrid for User Table in Apps Form. I have Category field in Apps Table. If the Category = Claim (Apps Table), I need to only show Claim Users View in Subgrid, etc.

Is it possible to define this?

Any suggestion would be appreciated.

  • Suggested answer
    XM-22040801-0 Profile Picture
    XM-22040801-0 11 on at
    RE: Showing Views based on Condition

    Hi,

    You can switch the view of a sub-grid to the one you want when a field changes its value (category). You will need to create all possible views.

    However, the views that can be switched to must all be made available in the view selector: The user can still change the view manually if he wants.

    To do this you can use setCurrentView (See https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/grids/viewselector/setcurrentview).

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,401 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans