Multifiled Content is not getting saved into dialog

Avatar

Avatar
Boost 10
Level 2
rajnishkr93
Level 2

Likes

11 likes

Total Posts

20 posts

Correct reply

0 solutions
Top badges earned
Boost 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile

Avatar
Boost 10
Level 2
rajnishkr93
Level 2

Likes

11 likes

Total Posts

20 posts

Correct reply

0 solutions
Top badges earned
Boost 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile
rajnishkr93
Level 2

05-07-2021

Hi,
I am working on migration of coralui of Relatedproduct component, which is multifield component. After migration contents are not getting saved into dialog, please refer my below xml code and help me.

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:granite="http://www.adobe.com/jcr/granite/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="Related products configuration"
sling:resourceType="cq/gui/components/authoring/dialog"
helpPath="/content/diagnostics/authoring-help.relatedproducts.html?wcmmode=disabled">
<content
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<tabs
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/tabs">
<items jcr:primaryType="nt:unstructured">
<realtedProductsTab
jcr:primaryType="nt:unstructured"
jcr:title="Related products configuration"
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">
<sectionHeading
cq:showOnCreate="{Boolean}true"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
allowCreate="{Boolean}true"
fieldLabel="Section Heading"
name="./sectionHeading">
<granite:data
jcr:primaryType="nt:unstructured"
cq-msm-lockable="sectionHeading"/>
</sectionHeading>
<products
jcr:primaryType="nt:unstructured"
jcr:title="Related products"
sling:resourceType="granite/ui/components/coral/foundation/form/fieldset"
showhidetargetvalue="static">
<items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<relatedProducts
granite:class="full-width"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
composite="{Boolean}true"
fieldDescription="Click '+' to add a new product"
fieldLabel="Related Products">
<field
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/fieldset"
name="./relatedProducts">
<items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<path
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/pathfield"
fieldDescription="Select path"
fieldLabel="Product path"
name="./pagePath"
rootPath="/content"/>
</items>
</column>
</items>
</field>
</relatedProducts>
</items>
</column>
</items>
</products>
</items>
</column>
</items>
</realtedProductsTab>
<realtedProductsFilterTab
jcr:primaryType="nt:unstructured"
jcr:title="Filter configuration"
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">
<filter
jcr:primaryType="nt:unstructured"
jcr:title="Filter"
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">
<fieldset
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/fieldset">
<items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<viewPublished
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"
fieldDescription="Check if you want to displayed published pages only in result"
name="./viewPublished"
text="View Published Only"
value="true"/>
<generateQuery
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/button"
icon="icon-info-sign"
name="./generateQuery"
rel="tagFilterQuery"
text="Generate Query"/>
<queryField
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textarea"
class="queryTextArea"
disabled="{Boolean}true"
fieldLabel="Generated Query"
name="./queryField"
rows="3"/>
<multifield
granite:class="full-width filterQuery"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
composite="{Boolean}true"
fieldDescription="Click 'Add fields' to add a new configuration"
fieldLabel="Tag Filters">
<field
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/fieldset"
name="./filters">
<items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<tags
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/common/tagspicker"
allowBulkEdit="{Boolean}true"
allowCreate="{Boolean}true"
fieldDescription="Please configure tags for search"
fieldLabel="Tags to search"
name="./searchTags"
renderReadOnly="{Boolean}false"
tagsPath="/content/cq:tags">
<granite:data
jcr:primaryType="nt:unstructured"
cq-msm-lockable="searchTags"/>
</tags>
<andop
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"
fieldDescription="Please check to use 'AND' operation"
name="./isopand"
text="Use And Op"
value="true"/>
<predicateop
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/select"
fieldLabel="Group operation"
name="./predicateop">
<items jcr:primaryType="nt:unstructured">
<None
jcr:primaryType="nt:unstructured"
text="Please select"
value="none"/>
<orop
jcr:primaryType="nt:unstructured"
text="Or Operation"
value="or"/>
<andop
jcr:primaryType="nt:unstructured"
text="And Operation"
value="and"/>
</items>
</predicateop>
</items>
</column>
</items>
</field>
</multifield>
</items>
</column>
</items>
</fieldset>
</items>
</column>
</items>
</filter>
</items>
</column>
</items>
</realtedProductsFilterTab>
</items>
</tabs>
</items>
</content>
</jcr:root>

Note: there is two multifield tab "Related Products" & "Tag Filters" only for tag filters multifield content is not getting saved

Please help me out ASAP

Replies

Avatar

Avatar
Boost 5
Level 7
Ritesh_M
Level 7

Likes

179 likes

Total Posts

142 posts

Correct reply

45 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile

Avatar
Boost 5
Level 7
Ritesh_M
Level 7

Likes

179 likes

Total Posts

142 posts

Correct reply

45 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
Ritesh_M
Level 7

05-07-2021

Avatar

Avatar
Boost 10
Level 2
rajnishkr93
Level 2

Likes

11 likes

Total Posts

20 posts

Correct reply

0 solutions
Top badges earned
Boost 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile

Avatar
Boost 10
Level 2
rajnishkr93
Level 2

Likes

11 likes

Total Posts

20 posts

Correct reply

0 solutions
Top badges earned
Boost 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile
rajnishkr93
Level 2

05-07-2021

Hi @Ritesh_M i am not getting any error into browser while i am already using composite{Boolean}=true property but issue is not getting resolved

Avatar

Avatar
Establish
Level 4
kchaurasiya
Level 4

Likes

70 likes

Total Posts

65 posts

Correct reply

10 solutions
Top badges earned
Establish
View profile

Avatar
Establish
Level 4
kchaurasiya
Level 4

Likes

70 likes

Total Posts

65 posts

Correct reply

10 solutions
Top badges earned
Establish
View profile
kchaurasiya
Level 4

05-07-2021

@rajnishkr93 Below multi field code is working on AEM 6.4. You can check and compare with your code. Hope this will help you. Thank You.

 

<?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="Image List"
sling:resourceType="cq/gui/components/authoring/dialog">
<content
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<tabs
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/tabs">
<items jcr:primaryType="nt:unstructured">
<imageList
jcr:primaryType="nt:unstructured"
jcr:title="Image List"
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">
<images
jcr:primaryType="nt:unstructured"
jcr:title="Images"
sling:resourceType="granite/ui/components/coral/foundation/form/fieldset">
<items jcr:primaryType="nt:unstructured">
<images
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
composite="{Boolean}true"
fieldDescription="Click on Add button to add a new image"
fieldLabel="Images">
<field
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container"
name="./imagesList">
<items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<title jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="Title"
name="./title"
fieldLabel="Title"
text="Title" />
<image
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser"
fieldDescription="Image"
name="./image"
fieldLabel="Image"
text="Image"
rootPath="/content"/>
<imageAlt
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="Image Alt"
name="./imageAlt"
fieldLabel="Image Alt"
text="Image Alt" />
</items>
</column>
</items>
</field>
</images>
</items>
</images>
</items>
</column>
</items>
</imageList>
</items>
</tabs>
</items>
</content>
</jcr:root>

Avatar

Avatar
Boost 10
Level 2
rajnishkr93
Level 2

Likes

11 likes

Total Posts

20 posts

Correct reply

0 solutions
Top badges earned
Boost 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile

Avatar
Boost 10
Level 2
rajnishkr93
Level 2

Likes

11 likes

Total Posts

20 posts

Correct reply

0 solutions
Top badges earned
Boost 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile
rajnishkr93
Level 2

05-07-2021

Hi @kchaurasiya even my code is working for one multifiled tab "Related Products" but for second tab "Tag Filters" tab multifield content is not getting save. if i explain you in details then please find below code which is not working
i.e. second part of previous xml code:-

 

<realtedProductsFilterTab
jcr:primaryType="nt:unstructured"
jcr:title="Filter configuration"
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">
<filter
jcr:primaryType="nt:unstructured"
jcr:title="Filter"
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">
<fieldset
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/fieldset">
<items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<viewPublished
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"
fieldDescription="Check if you want to displayed published pages only in result"
name="./viewPublished"
text="View Published Only"
value="true"/>
<generateQuery
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/button"
icon="icon-info-sign"
name="./generateQuery"
rel="tagFilterQuery"
text="Generate Query"/>
<queryField
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textarea"
class="queryTextArea"
disabled="{Boolean}true"
fieldLabel="Generated Query"
name="./queryField"
rows="3"/>
<multifield
granite:class="full-width filterQuery"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
composite="{Boolean}true"
fieldDescription="Click 'Add fields' to add a new configuration"
fieldLabel="Tag Filters">
<field
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/fieldset"
name="./filters">
<items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<tags
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/common/tagspicker"
allowBulkEdit="{Boolean}true"
allowCreate="{Boolean}true"
fieldDescription="Please configure tags for search"
fieldLabel="Tags to search"
name="./searchTags"
renderReadOnly="{Boolean}false"
tagsPath="/content/cq:tags">
<granite:data
jcr:primaryType="nt:unstructured"
cq-msm-lockable="searchTags"/>
</tags>
<andop
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"
fieldDescription="Please check to use 'AND' operation"
name="./isopand"
text="Use And Op"
value="true"/>
<predicateop
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/select"
fieldLabel="Group operation"
name="./predicateop">
<items jcr:primaryType="nt:unstructured">
<None
jcr:primaryType="nt:unstructured"
text="Please select"
value="none"/>
<orop
jcr:primaryType="nt:unstructured"
text="Or Operation"
value="or"/>
<andop
jcr:primaryType="nt:unstructured"
text="And Operation"
value="and"/>
</items>
</predicateop>
</items>
</column>
</items>
</field>
</multifield>
</items>
</column>
</items>
</fieldset>
</items>
</column>
</items>
</filter>
</items>
</column>
</items>
</realtedProductsFilterTab>

Avatar

Avatar
Establish
Level 4
kchaurasiya
Level 4

Likes

70 likes

Total Posts

65 posts

Correct reply

10 solutions
Top badges earned
Establish
View profile

Avatar
Establish
Level 4
kchaurasiya
Level 4

Likes

70 likes

Total Posts

65 posts

Correct reply

10 solutions
Top badges earned
Establish
View profile
kchaurasiya
Level 4

05-07-2021

@rajnishkr93 : Ok I will check and let you know on this. I can see only the one tab in the code. Can you pls provide the entire dialog code. Thank You. Keshav

Avatar

Avatar
Establish
Level 4
kchaurasiya
Level 4

Likes

70 likes

Total Posts

65 posts

Correct reply

10 solutions
Top badges earned
Establish
View profile

Avatar
Establish
Level 4
kchaurasiya
Level 4

Likes

70 likes

Total Posts

65 posts

Correct reply

10 solutions
Top badges earned
Establish
View profile
kchaurasiya
Level 4

05-07-2021

@rajnishkr93 : I got the two tabs code from your thread that you stared so no need to share it again.I will let you know on this. Thanks T

Avatar

Avatar
Boost 100
Level 6
Dipti_Chauhan
Level 6

Likes

126 likes

Total Posts

144 posts

Correct reply

41 solutions
Top badges earned
Boost 100
Give Back 10
Affirm 25
Boost 50
Boost 25
View profile

Avatar
Boost 100
Level 6
Dipti_Chauhan
Level 6

Likes

126 likes

Total Posts

144 posts

Correct reply

41 solutions
Top badges earned
Boost 100
Give Back 10
Affirm 25
Boost 50
Boost 25
View profile
Dipti_Chauhan
Level 6

05-07-2021

Hi @rajnishkr93 

  In your case issue is with Tagpicker. Composite : true not working with tagpicker however it is working perfectly fine with cq/gui/components/coral/common/form/tagfield.

 

I remember tagpicker was deprecated in 6.3 but now I am not able to find any documentation for 6.5.

@kautuk_sahni Can you please confirm if this is still in deprecated list. Not able to find this.

Will update if I find anything,

Meanwhile you can create daycare for tagpicker.

Thanks

Dipti

 

Avatar

Avatar
Boost 10
Level 2
rajnishkr93
Level 2

Likes

11 likes

Total Posts

20 posts

Correct reply

0 solutions
Top badges earned
Boost 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile

Avatar
Boost 10
Level 2
rajnishkr93
Level 2

Likes

11 likes

Total Posts

20 posts

Correct reply

0 solutions
Top badges earned
Boost 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile
rajnishkr93
Level 2

05-07-2021

Hi Dipti , i am using 6.5.7 service pack

Avatar

Avatar
Boost 10
Level 2
rajnishkr93
Level 2

Likes

11 likes

Total Posts

20 posts

Correct reply

0 solutions
Top badges earned
Boost 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile

Avatar
Boost 10
Level 2
rajnishkr93
Level 2

Likes

11 likes

Total Posts

20 posts

Correct reply

0 solutions
Top badges earned
Boost 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile
rajnishkr93
Level 2

06-07-2021

Hi Dipti, if we will use coral tags resourceType tags will be saved into url form that is not correct and if am using existing tag i.e foundation tags its not saving into dialog