0
How to query a table using a dynamic combo box value?
I have the code below, i want to return the email address where the the full name of the staff is the one assigned to the ticket.
let i := 'Assigned To';
email(select Staff where 'Full Name' = i)
The code above returning null values, where am i going wrong?
6 replies
-
Hi there:
May I suggest you try:
let i := 'Assigned To'; first((select Staff where 'Full Name' = i).email)
In Ninox you put the field you want at the end of the select.
In Ninox, when you do a select it always returns an array (even if it is one record), so you need to tell Ninox what you want to do with the array. That is why we need the first command on line 2.
I hope this helps.
-
Fred I thought so too but surprisingly it doesn't work. I spent quite a while trying variants before I found this
let i := 'Assigned To'; first((select Staff where Id = number(i)).Email)
and
record(Staff,number('Assigned To')).Email
Regards John
Content aside
- Status Answered
- 2 yrs agoLast active
- 6Replies
- 184Views
-
3
Following