I have a list setup that records a series of defaults for each user, this allows them to customize the behavior of my application to their liking. One of these settings specifies which building they reside in so they only have to see records of a few different lists that apply to their building.
Using a pre-filter I'm trying to make a list only display records that match the specified building in the defaults. Here's the data that needs to be compared:
List 1 Field: CENTER
List 2 Defaults Field: MY_CENTER
List 2 User Identifier: USER
Both fields use radio buttons and use the same numbers.
Here's my pre-filter
Field: CENTER
Condition: EQUALS (I've also tried IN)
Value: SELECT my_center FROM user_defaults WHERE user = '{$my->id}'
Type: QUERY
Apply to: Super User while testing
Even though the super user account I'm using for testing has a default building set when I browse to the page where this pre-filter is applied no records are displayed despite confirming there being records that match that building number.
I could sure use your help! I can't seem to figure out why this shouldn't be working.
Using a pre-filter I'm trying to make a list only display records that match the specified building in the defaults. Here's the data that needs to be compared:
List 1 Field: CENTER
List 2 Defaults Field: MY_CENTER
List 2 User Identifier: USER
Both fields use radio buttons and use the same numbers.
Here's my pre-filter
Field: CENTER
Condition: EQUALS (I've also tried IN)
Value: SELECT my_center FROM user_defaults WHERE user = '{$my->id}'
Type: QUERY
Apply to: Super User while testing
Even though the super user account I'm using for testing has a default building set when I browse to the page where this pre-filter is applied no records are displayed despite confirming there being records that match that building number.
I could sure use your help! I can't seem to figure out why this shouldn't be working.