Problem with function fields glidefunction:concat.

Nimeku
Tera Contributor

Hi,

I created a new field in which I want to pupulate some other fields (three fields). I am using functions fields glidefunction:concat. I wanted to concat the fields number, assigned_to and requested_by. But the fields requested_by and assigned_to aren't showing up correctly. Instead of names I am seeing random numbers and letters.

What am I doing wrong?

 

1 ACCEPTED SOLUTION

sachin_namjoshi
Kilo Patron
Kilo Patron

Just do a business rule that in the script sets

 

current.u_field_four = current.number+ ', ' + current.assigned_to.getDisplayValue() + ', ' current.requested_by.getDisplayValue();

 

Regards,

Sachin

View solution in original post

2 REPLIES 2

sachin_namjoshi
Kilo Patron
Kilo Patron

Just do a business rule that in the script sets

 

current.u_field_four = current.number+ ', ' + current.assigned_to.getDisplayValue() + ', ' current.requested_by.getDisplayValue();

 

Regards,

Sachin

Manish Vinayak1
Tera Guru

Hi,

 

I assume it might be returning the sys_ids of the fields as they are reference fields. Please try the following line in your glidefunction:concat call:

 

glidefunction:concat(number, "|", requested_by.name, "|", assigned_to.name)

 

Appending ".name" to those field names will ensure you are getting the "name" attribute from the requested_by and assigned_to fields, not the sys_id.

 

Hope this helps!

 

Kind regards,

Manish