ChildBucket_KeyValueById
| Description | A generic key value placeholder that gets a dynamic value of key value by identifier, dynamic value means Xpath value. Can be used for individual values inside of the ChildBucketTable. |
| Placeholder type | Text |
| Entity | Placeholder should work with KeyValue records |
| Context | Context supported: _language and _country |
| Function variables | Xpath: xpath partern to get value of KeyValue example: concat(@value, '-', ' $') |
| Data Query | EntityManager.getEntityKeyValuesByIdentifier |
| Data Mapping | com.priint.accpack.childbuckettable..datamapping.KeyValueDataMapping.keyValueToString |
| Data Processing | com.priint.pubserver.plugins.dataprocessing.htmlToPlainText : remove all html tags Or com.priint.pubserver.comet.bridge.dataprocessing.htmlToTaggedText : convert html tag to tagged text |
How to Add This Placeholder to the Child Bucket Table
-
Set the
placeholderId="537688584"attribute on the<keyValue>element. -
Set a function variable as a child element of
<keyValue>.a. Using a simple XPath expression:
<keyValue entityIdentifier="sku_attribute" key="Minimum working temperature" cellValue="@value" placeholderId="537688584">
<functionVariables>
<variable name="xpath" value="@value"/>
</functionVariables>
</keyValue>
b. If use a plugin method
<keyValue entityIdentifier="sku_attribute" key="Maximum working temperature" cellValue="plugin(globalName='com.priint.project.demo.somfy.datamapping.ChildBucketTableTransformPlugin',methodName='tranformMaxTemperature')" placeholderId="537688584">
<functionVariables>
<variable name="xpath" value="plugin(globalName='com.priint.project.demo.somfy.datamapping.ChildBucketTableTransformPlugin',methodName='tranformMaxTemperature')"/>
</functionVariables>
</keyValue>