Expand my Community achievements bar.

SOLVED

Dropdown in a Multifield is not able to hold the selected values when we reopen the dialog

Avatar

Former Community Member

Dropdown in a Multifield is not able to hold the selected values when we reopen the dialog,

I have followed the below link.

http://experience-aem.blogspot.in/2015/06/aem-61-touch-ui-composite-multifield-store-values-as-child... .

 

<?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=" Header Component"
    sling:resourceType="cq/gui/components/authoring/dialog"
    helpPath="en/cq/current/wcm/default_components.html#Image">
    <content
        jcr:primaryType="nt:unstructured"
        sling:resourceType="granite/ui/components/foundation/container">
        <layout
            jcr:primaryType="nt:unstructured"
            sling:resourceType="granite/ui/components/foundation/layouts/tabs"
            type="nav"/>
        <items jcr:primaryType="nt:unstructured">
             <authoringLabels
                jcr:primaryType="nt:unstructured"
                jcr:title="Authoring Labels"
                sling:resourceType="granite/ui/components/foundation/section">
                <layout
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"
                    margin="{Boolean}false"/>
                <items jcr:primaryType="nt:unstructured">
                    <column
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/foundation/container">
                        <items jcr:primaryType="nt:unstructured">
                       <options
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/foundation/form/multifield"
                        class="full-width"
                        eaem-nested="">
                        <field
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="granite/ui/components/foundation/form/fieldset"
                            eaem-nested=""
                            name="./accomodationTypes">
                            <layout
                                jcr:primaryType="nt:unstructured"
                                sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"
                                method="absolute"/>
                            <items jcr:primaryType="nt:unstructured">
                                  <column
                                    jcr:primaryType="nt:unstructured"
                                    sling:resourceType="granite/ui/components/foundation/container">
                                    <items jcr:primaryType="nt:unstructured">
                                        <page
                                            jcr:primaryType="nt:unstructured"
                                            sling:resourceType="granite/ui/components/foundation/form/textfield"
                                            name="./accName"/>
                                          <categoryAcc
                                                    jcr:primaryType="nt:unstructured"
                                                    sling:resourceType="granite/ui/components/foundation/form/select"
                                                    class="cq-dialog-dropdown-showhide"
                                                    cq-dialog-dropdown-showhide-target=".list-option-listfrom-showhide-target"
                                                    name="./dcdcCategory">
                                                    <items jcr:primaryType="nt:unstructured">
                                                        <sksd
                                                            jcr:primaryType="nt:unstructured"
                                                            text="sdcjndc"
                                                            value="Roms"/>
                                                        <okt
                                                            jcr:primaryType="nt:unstructured"
                                                            text="dcdcdc"
                                                            value="Bedrsdcdcoom"/>
                                                        <ejf
                                                            jcr:primaryType="nt:unstructured"
                                                            text="dfvfbdvb Suite"
                                                            value="dcdc Suite"/>
                                                         <fml
                                                            jcr:primaryType="nt:unstructured"
                                                            text="Famdfvfvf"
                                                            value="Famidcdc"/>
                                                         <bed
                                                            jcr:primaryType="nt:unstructured"
                                                            text="Accessible "
                                                            value="Accessible  "/>
                                                         <mno
                                                            jcr:primaryType="nt:unstructured"
                                                            text="Cocddcdach"
                                                            value="dcdcd"/>
                                                         <ghi
                                                            jcr:primaryType="nt:unstructured"
                                                            text="dcdc"
                                                            value="dcdc"/>
                                                         <derf
                                                            jcr:primaryType="nt:unstructured"
                                                            text="infvif"
                                                            value="jkndcds"/>
                                                         <abc
                                                            jcr:primaryType="nt:unstructured"
                                                            text="klmkl"
                                                            value="kj"/>
                                                    </items>
                                                </categoryAcc>
                                        <image
                                            jcr:primaryType="nt:unstructured"
                                            sling:resourceType="granite/ui/components/foundation/form/pathbrowser"
                                            name="./accImage"
                                            >
                                       <altText
                                            jcr:primaryType="nt:unstructured"
                                            sling:resourceType="granite/ui/components/foundation/form/textfield"
                                            name="./altText"/>
                                        <description
                                            jcr:primaryType="nt:unstructured"
                                            sling:resourceType="granite/ui/components/foundation/form/textarea"
                                            name="./accDesc"/>
                                      </items>
                                     </column>
                                    </items>
                                  </field>
                              </options>
                        </items>
                    </column>
                </items>
            </authoringLabels>
        </items>
    </content>
</jcr:root>

1 Accepted Solution

Avatar

Correct answer by
Level 10

The above answer is EXTJS libs and used in Classic UI.

 

I tested the Touch UI stuff. It works. I populated the Multifield control with values and closed the page and re-opened it. 

Try downloading the package from the article and deploying. 

View solution in original post

2 Replies

Avatar

Level 10

That is not normal functionality. A drop-down in a multifield does persist the value (even when you re-open it) - as shown here:

See this AEM article: https://helpx.adobe.com/experience-manager/using/jstl.html

Avatar

Correct answer by
Level 10

The above answer is EXTJS libs and used in Classic UI.

 

I tested the Touch UI stuff. It works. I populated the Multifield control with values and closed the page and re-opened it. 

Try downloading the package from the article and deploying.