Matt Malyschko Posted October 19, 2012 Posted October 19, 2012 I have a field in a portal that I wish to filter by, let's call it Time. Time may be 8am, 9am, etc. I have created a field called FilterTime, which contains values: 8am, 9am, etc. etc. and displayed it as a checkbox set across the top of the portal. Obviously, I want the records in the portal to display when they match the selected filters. I have the filter set up to filter records as shown: If ( IsEmpty(FilterValues(Items::Time; Protocols::FilterTime)) = False; 1; 0) This works fine. However, I also want an 'all' field in the filter, which will display all the times. Evidently, the filtervalues does not return anything because there is no 'All' time in the list of items. Please help?! :D
comment Posted October 19, 2012 Posted October 19, 2012 However, I also want an 'all' field in the filter, which will display all the times. Did you mean an 'all' value? If so, try = not IsEmpty ( FilterValues ( Items::Time ; Protocols::FilterTime ) ) or Protocols::FilterTime = "All" Or you could use = not IsEmpty ( FilterValues ( Items::Time ; Protocols::FilterTime ) ) or IsEmpty ( Protocols::FilterTime ) which will apply the filter only if a value is checked - otherwise all related records will be shown.
Matt Malyschko Posted October 21, 2012 Author Posted October 21, 2012 Did you mean an 'all' value? If so, try = not IsEmpty ( FilterValues ( Items::Time ; Protocols::FilterTime ) ) or Protocols::FilterTime = "All" Or you could use = not IsEmpty ( FilterValues ( Items::Time ; Protocols::FilterTime ) ) or IsEmpty ( Protocols::FilterTime ) which will apply the filter only if a value is checked - otherwise all related records will be shown. Thanks!
Recommended Posts
This topic is 4415 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now