on ‎2018 Sep 12 9:43 AM
I have 2 fields - firstname and last name and I need to get these 2 fields concatinated and get in single field in the impex export script.
Request clarification before answering.
You can use a velocityTranslator :
INSERT_UPDATE YOUR_MODEL;@concatField1AndField2[translator=de.hybris.platform.impex.jalo.translators.VelocityTranslator, expr='$item.field1 $item.field2']
Hope this will help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you elaborate it using some example that one can execute in hAC and validate? e.g. the following export script:
INSERT_UPDATE Product;@concatField1AndField2[translator=de.hybris.platform.impex.jalo.translators.VelocityTranslator, expr='$Product.ean $Product.approvalStatus']
will export something like:
# @concatField1AndField2
$Product.ean $Product.approvalStatus
$Product.ean $Product.approvalStatus
All the value rows will be filled with $Product.ean $Product.approvalStatus instead of the actual value of ean and approvalStatus
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.