Currently it seems that the GPS block only supports OR logic for displaying devices.
I am trying to get this block (or one identical to it) to use AND logic to display devices.
I am trying to restrict the devices that show up on the block only to the devices that are “owned by a specific user experience group” which I am trying to do using a device tag which matches that of the logged in user.
The devices I am trying to show in this example are ones that match both criteria:
device_type tag === machine
AND
owned_by tag === logged in user’s experience group (which is passed as a context variable).
Is there a simpler way to do this that I am missing?
Is there a way to change the logic from match either of the entered criteria to match all of the criteria?
Currently, the GPS History block is set to be only an OR statement, but I will create a feature request for this. I will also play around with the Handlebar helpers and see if I can find a way to limit further, and will also look for another way to accomplish this if that should fail.
Thanks for your response, Julia.
It seems that the Device List Block, GPS History Block and the Data Table Block all use slightly different “filtering” methods… some uniformity in filtering capabilities might be helpful to your users.
Ex:
IMHO the most elegant solution seems to be the way that the Data Tables Block handles gathering the information with a “Query” to select the data which gives the user the most control over the data to display: