Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Portal Filtering (unable to find answer)

Featured Replies

I have found solutions on filtering portals by date ranges or by single words, but nothing for filtering both.

 

I would like to know if a portal can be filtered by both? If not then my issue below is moot.

 

I have a filter in place that will filter by date range:

 

Test::Test_Date ≥ Globals::g_Test_Start_Date  and  Test::Test_Date ≤ Globals::g_Test_End_Date
 
This works fine.
 
Here is where my problem starts; when I try to filter by date range and  by a couple of drop-downs using globals:
 
or Test::Test_Type = Globals::Test_Type   or   Test::Test_Time = Globals::Test_Time   or  Test::Test_Location = Globals::Test_Location
 
If I select a date range and two drop-downs (Test Type=Math and Test Location= B Hall)  it will filter showing more than I want. It seems to show all the date ranges containing all math tests (no matter which hall) within that range and all tests in B Hall for that range (no matter the test type).
 
I have tried all the operators available but nothing seems to fix the problem.
 
 
 
Thanks,
 
Michelle
 
 

Hi Michelle,

 

Portal filtering requires only that the result is true (or 1) and when using several OR, they must all be included with the date range.  So you could write it as:

Test::Test_Date ≥ Globals::g_Test_Start_Date  and  Test::Test_Date ≤ Globals::g_Test_End_Date
AND
Test::Test_Type = Globals::Test_Type  
OR
... repeating for the other two -

OR a single test such as:

Test::Test_Date ≥ Globals::g_Test_Start_Date  and  Test::Test_Date ≤ Globals::g_Test_End_Date
AND
(
Test::Test_Type = Globals::Test_Type   or   Test::Test_Time = Globals::Test_Time   or  Test::Test_Location = Globals::Test_Location
)

This second calc, by wrapping with parentheses, tests both sides of the AND and both must be true ... the date range AND any true result from within the parentheses from the three OR tests.

 

If I have missed your need please let us know.   :)

  • Author

Thank you so much LaRetta!

 

Your solution above (wrapping with parentheses) fixed my issue and I have completed the filtering. I am heading out to enjoy what is left of the weekend with the hubby and kids.

 

Thank you again for taking the time to assist.

 

Michelle

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.