cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Combine two attributes into one column

saikary
Newcomer
0 Likes
230

Hi,

I have an arraylist that exports the name and id. Below code exports the Name and ID of a product.

attrList.add(ClassAttributeAssignmentModel.ATTRIBUTEVALUES + "(name[lang=en])[collection-delimiter=|]" + getShimanoExportService().setColumnName("Name"));


attrList.add(ClassAttributeAssignmentModel.ATTRIBUTEVALUES + "(code)[collection-delimiter=|]" + getShimanoExportService().setColumnName("ID"));

I wanted to create a new column (Output) that combines the two attribute (name and id) and export them into one column. Eg.

Name: Dog

ID: 1234

Output: Dog [1234]

Accepted Solutions (0)

Answers (0)