Page 1 of 1

taking the content of two labels in mapping and inserting them into another label

Posted: Sat Jun 18, 2016 5:07 pm
by Terry Gilliver

I want to take the contents of a firstname and lastname label and insert it as the header text of a collapsible component. The collapsible component is a container for a database service. The mapping should help clarify:

Image

Can you give me an idea how this can be done?

Basically I want the text property of client_header to contain firstname_label text value + space + lastname_label text value


taking the content of two labels in mapping and inserting them into another label

Posted: Sat Jun 18, 2016 5:30 pm
by Terry Gilliver

I figured it out, I mapped the first name to the client_header text and added custom js as follows:

codevar firstname = value;
var lastname = element.parent().find("[name=lastname_label]").text();
return firstname + " " + lastname;/code


taking the content of two labels in mapping and inserting them into another label

Posted: Tue Jun 21, 2016 9:44 am
by Serhii Kulibaba

Hello Terry,

Thank you for update! Glad it works now!