Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4415 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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.

Posted

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!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.