Lookup first name and last name in datalist
Confluence User - 29 Apr, 2020
Hi
I have a form with a select box looking up the user options binder to get the users so a user can be selected in the form. I have it displaying by name. This is then stored as usernames.
When displaying a datalist I cant figure out how to get that column to display as a first name and last name and not the username.
I have tried making a JDBC sql with an inner join to the dir_user table which keeps coming up with an error in the logs "duplicate id"
I have tried a hidden field using a nested has such as
#user.{form.formname.completed_by}.firstName# #user.{form.formname.completed_by}.lastName#
but this saves as the hash code above and doesnt look it up.
Any ideas? I'm sure its simple but I'm missing something and have searched everywhere.
Thanks
datalists;user