Applying User Picker to Report Sections

Hi All, 

I'm trying to add a User Picker filter that applies to 4 different sections of a report, all of which are backed by different DSE's or Views. It was suggested to me to use the a!pickerFieldUsers field to do this, so in my Dashboard I added this filter:

 

            a!columnLayout(
              contents: {
                a!pickerFieldUsers(
                  label: "Study Monitor",
                  instructions: "Type any study monitor name",
                  labelPosition: "ABOVE",
                  value: local!studymonitor,
                  saveInto: local!studymonitor
                )
              }
            ),

Then for the first Bar Chart I'm trying to apply the filter to, I added the Rule Input of "selectedStudyMonitors" and wanted to compare this value that's fed in from the Filter selections to the "studyMonitor" field of the view that's backing this Chart like this: 

if(
                isNull(
                  ri!selectedStudyMonitors
                ),
                {},
                a!queryFilter(
                  field: "studyMonitor",
                  operator: "includes",
                  value: ri!selectedStudyMonitors
                  
                )
              )

But I'm getting this error below; I originally tried "=" but it didn't like that operator either. I checked that the data values being returned in both interfaces are the User Names, so something like "first.last" or "monitor.one" etc -- they should match/be able to be compared using either = or includes, right? 

Thanks for any help!

  Discussion posts and replies are publicly visible

Parents
  • Hi Sarah.K
    Can you check the rule input "selectedStudyMonitors" it might be array type. If yes can you remove it and check the filter condition. Let us know if that resolved your issue.
    I think know that includes operator might returns the Multiple rows as well, if your requirement is to get multiple rows as well the you can use that.
    Eg:
    In your data you have three rows like below
    9-116, flat number 405
    9-116, flat number 104
    9-116, flat number 105
    9-116, flat number 406

    applying query filter with include operator for value "flat number" will return all of the above rows.
Reply
  • Hi Sarah.K
    Can you check the rule input "selectedStudyMonitors" it might be array type. If yes can you remove it and check the filter condition. Let us know if that resolved your issue.
    I think know that includes operator might returns the Multiple rows as well, if your requirement is to get multiple rows as well the you can use that.
    Eg:
    In your data you have three rows like below
    9-116, flat number 405
    9-116, flat number 104
    9-116, flat number 105
    9-116, flat number 406

    applying query filter with include operator for value "flat number" will return all of the above rows.
Children
No Data