Tech Tip: Utilize multiple custom key values in filter query
PRODUCT: 4D for iOS | VERSION: 19 | PLATFORM: Mac
Published On: January 10, 2022
When developing a 4D for iOS or 4D for Android application, you can filter the data that is shown to the user according to a filter query. In the filter query, you can use one or more custom key values that begin with “:”, such as “:patientEmail”. To use multiple custom key values, define them as key-value pairs in the userInfo object of the response object for the On Mobile App Authentication method. For example:
$response.userInfo:=New object(“patient1Email”; $email1; “patient2Email”; $email2) |
Defining the above object will allow utilization of “:patient1Email” and “:patient2Email” as custom key values in the filter query of the mobile app. For example:
patient.email = :patient1Email | patient.email = :patient2Email
The above filter query would filter for data that matches $email1 or $email2.