cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
msmith Helper V
Helper V

FilterString from Buttons

I have multiple buttons lined up to display as a menu. Next to them on the same screen is a list I want filtered by these buttons. How can I pass a filterstring to filter that gallery?

 

Filtering is based off a multi value that includes Not Started, In Progress, Completed

 

Button example = UpdateContext(Filter(',SharePointListName>',Mechanic_x0020_Status.Value="Not Started"))

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: FilterString from Buttons

Try

 

Filter('<List Name>',Mechanic_x0020_Status.Value=statvar)

 

If that fails try to see

 

Filter('<List Name>',Mechanic_x0020_Status.Value="In Progress")

View solution in original post

3 REPLIES 3
Super User
Super User

Re: FilterString from Buttons

I take it you list is filtered on a data source. I would put some text into variable on the button on select like set(myvar,"started")

 

Use this variable in your list filter

msmith Helper V
Helper V

Re: FilterString from Buttons

Sorry, I am still a bit lost. Based on your suggestion I set the button to: Set(statvar,"In Progress") for one of five buttons. 

 

The gallery items is set to: Filter('<List Name>',Mechanic_x0020_Status.Value='{statvar}')

 

 

Highlighted
Super User
Super User

Re: FilterString from Buttons

Try

 

Filter('<List Name>',Mechanic_x0020_Status.Value=statvar)

 

If that fails try to see

 

Filter('<List Name>',Mechanic_x0020_Status.Value="In Progress")

View solution in original post

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (6,706)