Merge data from multiple properties using dialog in AEM 6.5 | Community
Skip to main content
Level 4
Apr 5, 2021 3:48 AM UTC
Solved

Merge data from multiple properties using dialog in AEM 6.5

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.
Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
Apr 12, 2021 8:19 PM UTC

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. 

5 replies

Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
Apr 12, 2021 8:19 PM UTC

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. 

Translate
AEMnewbieAuthor
Level 4
Apr 15, 2021 2:28 AM UTC

@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

Translate
Bhuwan_B
New Participant
Apr 5, 2021 4:25 AM UTC

Please check below article for your use case:

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

 

Translate
AEMnewbieAuthor
Level 4
Apr 5, 2021 4:35 AM UTC
@bhuwan_b it refers to the same article i posted in the question
Translate