cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
EriSto
Helper II
Helper II

Filter gallery by search and check box

Hi all,

 

On the "Dashboard" of my app, I have a gallery that shows all of my reports (Share Point entries), which I am now filtering based on certain Sharepoint data fields in the "search box".

 

I am planning on adding a "check box" to my SharePoit list to specify that the report has been processed and is no longer an open project.


Is there a way to add a "check box filter input" that plays into the gallery filter, so that in addition to filtering by the search bar, I can also check off "only active reports", and then only get a list of reports that do not have "checked checkbox"

1 ACCEPTED SOLUTION

Accepted Solutions

I'd think comparing that column value against the value of the Checkbox (true/false) would be your best bet

 

 

SortByColumns(
   Filter(MYLIST,
          (
             StartsWith( Searchcriteria1, TextSearchBox1.Text )
                ||
             StartsWith( Searchcriteria2, TextSearchBox1.Text )
          )
             &&
          Processedreport = CheckBoxName.Value
   ),
   "Created",
   If(SortDescending1, Ascending, Descending )
)

 

and if it won't compare the actual true/false value to your column (ie if your column is text) then just replace that line with Processedreport = Text(CheckBoxName.Value)

 

Could you try that out and let me know how you get on?

 

Thanks!

Sancho

@iAm_ManCat


Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


View solution in original post

3 REPLIES 3
iAm_ManCat
Super User II
Super User II

I would add a true/false column to your sharepoint list and then have the checkbox patch that value back to the sharepoint list for that item, that way when you filter you can just use ProcessedReport=true

@iAm_ManCat


Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


Thank you @iAm_ManCat , I'll try that out. May I ask how I can link that into my search criteria? I'll put a checkbox on my dashboard, and then I'll need to link that into the filter so that if the checkbox is selected, only the reports with "Processedreport=true" in the sharepoint list are displayted.  I'm not usre how to build that into the filter though..

 

Here is an example of what my filter looks like now.

 

SortByColumns(Filter(MYLIST, StartsWith( Searchcriteria1, TextSearchBox1.Text ) || StartsWith( Searchcriteria12 TextSearchBox1.Text ) ), "Created", If(SortDescending1, Ascending, Descending ))

 

Thanks again

I'd think comparing that column value against the value of the Checkbox (true/false) would be your best bet

 

 

SortByColumns(
   Filter(MYLIST,
          (
             StartsWith( Searchcriteria1, TextSearchBox1.Text )
                ||
             StartsWith( Searchcriteria2, TextSearchBox1.Text )
          )
             &&
          Processedreport = CheckBoxName.Value
   ),
   "Created",
   If(SortDescending1, Ascending, Descending )
)

 

and if it won't compare the actual true/false value to your column (ie if your column is text) then just replace that line with Processedreport = Text(CheckBoxName.Value)

 

Could you try that out and let me know how you get on?

 

Thanks!

Sancho

@iAm_ManCat


Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (19,791)