Skip to main content

ChildBucket_KeyValueById

DescriptionA 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 typeText
EntityPlaceholder should work with KeyValue records
ContextContext supported: _language and _country
Function variablesXpath: xpath partern to get value of KeyValue example: concat(@value, '-', ' $')
Data QueryEntityManager.getEntityKeyValuesByIdentifier
Data Mappingcom.priint.accpack.childbuckettable..datamapping.KeyValueDataMapping.keyValueToString
Data Processingcom.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​

  1. Set the placeholderId="537688584" attribute on the <keyValue> element.

  2. 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>