Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

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

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

Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

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

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

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

Hello Terry,

Thank you for update! Glad it works now!

Return to “Issues”