Merge data from multiple properties using dialog in AEM 6.5 | Community
Skip to main content
Level 4
April 5, 2021
Solved

Merge data from multiple properties using dialog in AEM 6.5

  • April 5, 2021
  • 2 replies
  • 2017 views

Is there a way to merge property values using dialog ? I was referring to this article https://adobe-consulting-services.github.io/acs-aem-commons/features/property-merge-postprocessor/index.html . I used the example stated in there ..But my dialog box doesnt load correctly.I did check the common version i do see 4.3.2 existing .Is there anything else that we need to make it work?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Vijayalakshmi_S

Hi @aemnewbie,

By the term "dialog box doesn't load correctly", are you referring to the issue with merged destination property in dialog or the dialog itself is not loading.

Could you please share the dialog with respect to the changes done as part of merging properties. 

2 replies

Bhuwan_B
Community Advisor
Community Advisor
April 5, 2021

Please check below article for your use case:

https://aem4beginner.blogspot.com/property-merge-post-processor-in-aem

 

AEMnewbieAuthor
Level 4
April 5, 2021
@bhuwan_b it refers to the same article i posted in the question
Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
April 12, 2021

Hi @aemnewbie,

By the term "dialog box doesn't load correctly", are you referring to the issue with merged destination property in dialog or the dialog itself is not loading.

Could you please share the dialog with respect to the changes done as part of merging properties. 

AEMnewbieAuthor
Level 4
April 15, 2021

@vijayalakshmi_s  - My dialog doesnt load at all -- tried adding this to an existing dialog but it didnt merge the values

<test1 jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textfield"
fieldDescription="Price"
fieldLabel="Price"
name="./price"/>
<test2 jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textfield"
fieldDescription="Price"
fieldLabel="Price"
name="./animalTags"/>
<animal-tags-property-merge
jcr:primaryType="cq:Widget"
ignoreData="{Boolean}true"
name=":animalTags@PropertyMerge"
value="price"
xtype="hidden"/>
<cq-tags-property-merge-allow-duplicates
jcr:primaryType="cq:Widget"
ignoreData="{Boolean}true"
name=":price@PropertyMerge.AllowDuplicates"
value="false"
xtype="hidden"/>
<cq-tags-property-merge-type-hint
jcr:primaryType="cq:Widget"
ignoreData="{Boolean}true"
name=":price@PropertyMerge.TypeHint"
value="String"
xtype="hidden"/>

All i The dialog code is exactly the same as mentioned in this link https://adobe-consulting-services.github.io/acs-aem-commons/features/property-merge-postprocessor/index.html