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

Touch UI Multi field not working as expected in AEM 6.1

chandran8596539
Level 3
Level 3

AEM 6.1 : Created a new Touch UI workflow Dialog , with following fields

  1. Task Name --- granite/ui/components/foundation/form/textfield
  2. userType -- granite/ui/components/foundation/form/select
  3. Users -- granite/ui/components/foundation/form/multifields  --->  user --   granite/ui/components/foundation/form/select
  4. Manager --  granite/ui/components/foundation/form/select

Below is the dialog xml 

      <?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="Legal Dialog"
    sling:resourceType="cq/gui/components/authoring/dialog">
    <content
        jcr:primaryType="nt:unstructured"
        sling:resourceType="granite/ui/components/foundation/container">
        <items jcr:primaryType="nt:unstructured">
            <column
                jcr:primaryType="nt:unstructured"
                sling:resourceType="granite/ui/components/foundation/container">
                <items jcr:primaryType="nt:unstructured">
                    <name
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/foundation/form/textfield"
                        fieldLabel="Task Name"
                        name="./argTaskName"/>
                    <userType
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/foundation/form/select"
                        fieldLabel="User Group"
                        name="./argUserType">
                        <items jcr:primaryType="nt:unstructured">
                            <o1
                                jcr:primaryType="nt:unstructured"
                                qtip="Legal Users"
                                text="Legal Users"
                                value="legalUsers"/>
                            <o2
                                jcr:primaryType="nt:unstructured"
                                qtip=" Manager"
                                text=" Manager"
                                value="manager"/>
                        </items>
                    </userType>
                    <legalUsers
                                    jcr:primaryType="nt:unstructured"
                                    sling:resourceType="granite/ui/components/foundation/form/multifield"
                                    fieldDescription="Select users to assign the task"
                                    fieldLabel="Legal Users">
                                    <field
                                    jcr:primaryType="nt:unstructured"
                                    sling:resourceType="granite/ui/components/foundation/form/select"
                                    name="./argTaskOwners">
                                    <datasource
                                        jcr:primaryType="nt:unstructured"
                                        sling:resourceType="/bin/.../legalUsers"/>
                                    </field>
                                </legalUsers>
        
        
                    <manager
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/foundation/form/select"
                        fieldLabel="Traffic Manager"
                        name="./argManager">
                                <datasource
                                    jcr:primaryType="nt:unstructured"
                                    sling:resourceType="/bin/.../legalUsers"/>
                                    
                        </manager>
                   
                </items>
            </column>
        </items>
    </content>
</jcr:root>         

When clicking on "Add Field" button in the "multi field" widget, it's not loading select box,but throwing following exception/warning in console. 

   "An instance of Select is already attached to the specified target element. Future versions of CoralUI will throw an exception at this point."

I tried adding text box in the multi field, resulting in same problem, Does the workflow dialog support multi field widget ? 

[img]Touch_UI_Dialog.png[/img]       

1 Reply
mallipanchal
Level 2
Level 2

Even I'm Facing same issue, Let me know how did you fixed same.

 

Thanks in advance