Question


AAA
RU
Last activity: 20 Feb 2019 23:52 EST
Сoncatenate values
Hello! Need a help, friends :)
On the first section we have two properties: pyFirstName and pyLastName. On the next section I want to show only one property - pyFullName, which has concatenated values of previous properties.
How could it be solve?
***Edited by Moderator Marissa to update platform capability tags****


Pegasystems Inc.
FR
Hello,
Those properties are text type. You can just have something like .pyFirstName + " " + .pyLastName


AAA
RU
Maybe I am doing something wrong...


Coforge DPA
GB
Hi
You should not give the expression on presentation tab.
Either use a declare exp for Full Name or concatenate using a data transform before screen loads.
Then use that property in your section.
Regards
Bhavya


AAA
RU
Could you show me how concatenate using a data transform, please? :))


Hoverstate
SV
Hey,
Is "Patient" your page ? If that's the case then it should be "Patient.pyFirstName", without the dot before the page name. Can you show the full expression that you wrote on that text box?
Also, can you add what you have on the Pages & Classes for that rule you're modifying?
- Luis Fernando Orellana


AAA
RU
Hi!
Yes, "Patient" is my page
Full expression: .Patient.pyFirstName + " " + .Patient.pyLastName
It is empty on Pages & Classes
If I understand rightly, I should concatenate values using a data transform
But I do not know how))
Accepted Solution


Hoverstate
SV
Hey.
So to do that using a Data Transform, you can do the following on a DT Rule: (Check Attachment)
Action: Set
Target: Patient.pyName (The property where you wanna store the name concatenation)
Source: Patient.pyFirstName + " " + Patient.pyLastName
Now, on your Text Input field you only have to reference the property where you mapped the combination in the property field. (Patient.pyName)
After this, you have 2 ways to call this Data Transform when showing a Harness/Section:
1) If you're using an action set, you can specify the DataTransform rule to be used there before loading the Harness OR when you click the text area, this depends on how you're calling your section. (Check Attachment)
2) If the Section you wanna show is called from a Flow Action, you can specify a DataTransform in the Pre-Processing field, in the Action Tab. (Check Attachment)


AAA
RU
Exellent!
Thank you a lot, dear friend! :)))