Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Merge data from multiple properties using dialog in AEM 6.5

Avatar

Avatar
Validate 1
Level 1
AEMnewbie
Level 1

Likes

0 likes

Total Posts

85 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Applaud 5
View profile

Avatar
Validate 1
Level 1
AEMnewbie
Level 1

Likes

0 likes

Total Posts

85 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Applaud 5
View profile
AEMnewbie
Level 1

04-04-2021

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/in... . 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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

564 likes

Total Posts

706 posts

Correct Reply

234 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

564 likes

Total Posts

706 posts

Correct Reply

234 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile
Vijayalakshmi_S
MVP

12-04-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. 

AEMnewbie

@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/in...

Vijayalakshmi_S

Hi @AEMnewbie,

I tried with Touch UI dialog and it merges correctly. Please find below dialog details and screenshot

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
    jcr:primaryType="nt:unstructured"
    jcr:title="Properties"
    sling:resourceType="cq/gui/components/authoring/dialog">
    <content
        jcr:primaryType="nt:unstructured"
        sling:resourceType="granite/ui/components/coral/foundation/fixedcolumns">
        <items jcr:primaryType="nt:unstructured">
            <column
                jcr:primaryType="nt:unstructured"
                sling:resourceType="granite/ui/components/coral/foundation/container">
                <items jcr:primaryType="nt:unstructured">
                    <text
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
                        fieldLabel="Text"
                        name="./text"/>
                    <textnew
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
                        fieldLabel="Text New"
                        name="./textNew"/>
                    <hiddenMerge
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/coral/foundation/form/hidden"
                        fieldLabel="Text"
                        name=":text@PropertyMerge"
                        value="updatedText"/>
                    <hiddenMerge2
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/coral/foundation/form/hidden"
                        fieldLabel="Text"
                        name=":textNew@PropertyMerge"
                        value="updatedText"/>
                    <updatedText
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
                        fieldLabel="Merged/Updated Text"
                        name="./updatedText"/>
                    <hiddenMerge3
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/coral/foundation/form/hidden"
                        fieldLabel="Text"
                        name=":updatedText@PropertyMerge.AllowDuplicates"
                        value="false"/>
                    <hiddenMerge4
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/coral/foundation/form/hidden"
                        fieldLabel="Text"
                        name=":updatedText@PropertyMerge.TypeHint"
                        value="String"/>
                </items>
            </column>
        </items>
    </content>
</jcr:root>

Vijayalakshmi_S_0-1618492809818.png

Answers (1)

Answers (1)

Avatar

Avatar
Give Back 5
Level 6
Bhuwan_B
Level 6

Likes

132 likes

Total Posts

122 posts

Correct Reply

48 solutions
Top badges earned
Give Back 5
Boost 100
Give Back 3
Affirm 25
Establish
View profile

Avatar
Give Back 5
Level 6
Bhuwan_B
Level 6

Likes

132 likes

Total Posts

122 posts

Correct Reply

48 solutions
Top badges earned
Give Back 5
Boost 100
Give Back 3
Affirm 25
Establish
View profile
Bhuwan_B
Level 6

04-04-2021

Please check below article for your use case:

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