cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
daniuosagi
Frequent Visitor

Allow Dataverse views selection on canvas app

I want to enable the users to select which view they want to see for my gallery.  To filter for a specific view, I know that we can simply filter the gallery by Filter( Leads, 'Leads (Views)'.'Active Leads' ).  To enable selection, I inserted a drop down box with Choices ('Leads (Views)') to provide the users all Lead views available to choose from.  However, I can't find a way to pass the drop down value back to the filter and make the filter work.  I tried something like:

- Filter( Leads, 'Leads (Views)'.(LeadViewsDropDown.Selected.Value) )

- Filter( Leads, LeadViewsDropDown.Selected )

But none of above work.  I thought of using a Switch to do that, but that'd be complicated and hardcoded and if we add or delete any views we'll have to edit the Switch again.  Anyone knows a way that we can apply the selected view from dropdown toward the Filter of the gallery?

 

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
daniuosagi
Frequent Visitor

Sorry solved it myself.  Below works:

Filter( Leads, LeadViewsDropDown.Selected.Value )

View solution in original post

2 REPLIES 2
daniuosagi
Frequent Visitor

Sorry solved it myself.  Below works:

Filter( Leads, LeadViewsDropDown.Selected.Value )

Hi @daniuosagi :

Thanks for your feedback.It will be helpful to others.

Best Regards,

Bof

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (3,710)