Expand my Community achievements bar.

AEM Commerce | Product Scaffold | Coral3 Multifield values not saved

Avatar

Level 1

Using AEM 6.3.3.0

I am trying to build scaffold for product entry using TouchUI. I need to add multifield for certain repeatable values, the added multifield is rendered as expected but on save the values are not persisted.

1710177_pastedImage_0.png

<tab1

                                                                jcr:primaryType="nt:unstructured"

                                                                jcr:title="Price"

                                                                sling:resourceType="granite/ui/components/coral/foundation/container">

                                                                <items jcr:primaryType="nt:unstructured">

                                                                    <categoryKey

                                                                        jcr:primaryType="nt:unstructured"

                                                                        sling:resourceType="granite/ui/components/coral/foundation/form/hidden"

                                                                        fieldLabel="Category Key"

                                                                        name="./pricing/categoryKey"

                                                                        value="pricing"/>

                                                                    <categoryName

                                                                        jcr:primaryType="nt:unstructured"

                                                                        sling:resourceType="granite/ui/components/foundation/form/textfield"

                                                                        fieldLabel="Category Name"

                                                                        name="./pricing/categoryName"

                                                                        required="true"/>

                                                                    <category

                                                                        jcr:primaryType="nt:unstructured"

                                                                        sling:resourceType="granite/ui/components/coral/foundation/form/multifield"

                                                                        composite="{Boolean}true"

                                                                        fieldLabel="PRICING">

                                                                        <field

                                                                            jcr:primaryType="nt:unstructured"

                                                                            sling:resourceType="granite/ui/components/coral/foundation/container"

                                                                            eaem-nested=""

                                                                            name="./pricing">

                                                                            <items jcr:primaryType="nt:unstructured">

                                                                                <column

                                                                                    jcr:primaryType="nt:unstructured"

                                                                                    sling:resourceType="granite/ui/components/coral/foundation/container">

                                                                                    <items jcr:primaryType="nt:unstructured">

                                                                                        <specKey

                                                                                            jcr:primaryType="nt:unstructured"

                                                                                            sling:resourceType="granite/ui/components/foundation/form/textfield"

                                                                                            fieldLabel="Spec Key"

                                                                                            name="./specKey"

                                                                                            required="true"/>

                                                                                        <specName

                                                                                            jcr:primaryType="nt:unstructured"

                                                                                            sling:resourceType="granite/ui/components/foundation/form/textfield"

                                                                                            fieldLabel="Spec Name"

                                                                                            name="./specName"

                                                                                            required="true"/>

                                                                                        <metricUnits

                                                                                            jcr:primaryType="nt:unstructured"

                                                                                            sling:resourceType="granite/ui/components/foundation/form/textfield"

                                                                                            fieldLabel="Metric Units"

                                                                                            name="./metricUnits"/>

                                                                                        <metricUnits2

                                                                                            jcr:primaryType="nt:unstructured"

                                                                                            sling:resourceType="granite/ui/components/foundation/form/textfield"

                                                                                            fieldLabel="Metric Units 2"

                                                                                            name="./metricUnits2"/>

                                                                                        <usUnits

                                                                                            jcr:primaryType="nt:unstructured"

                                                                                            sling:resourceType="granite/ui/components/foundation/form/textfield"

                                                                                            fieldLabel="US Units"

                                                                                            name="./usUnits"/>

                                                                                        <superscript

                                                                                            jcr:primaryType="nt:unstructured"

                                                                                            sling:resourceType="granite/ui/components/foundation/form/textfield"

                                                                                            fieldLabel="Superscript"

                                                                                            name="./superscript"/>

                                                                                        <disclaimerPath

                                                                                            jcr:primaryType="nt:unstructured"

                                                                                            sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser"

                                                                                            fieldDescription="Browse to the text path of the disclaimer under disclaimer page"

                                                                                            fieldLabel="Disclaimer Content Path"

                                                                                            name="./disclaimerPath"

                                                                                            predicate="nosystem"/>

                                                                                    </items>

                                                                                </column>

                                                                            </items>

                                                                        </field>

                                                                    </category>

                                                                </items>

                                                            </tab1>

Does there need to be any other configuration or servlet to be placed for saving the multifield values?

If we add this multifield to page properties, there the changes are persisted successfully. Is the underlying concept to save using scaffolding different from that of properties? I looked at the logic for image(s)/assets - (resourceType - commerce/gui/components/admin/products/images) there are different servlets to save/delete and move actions.

3 Replies

Avatar

Level 1

Is there a way to check if there is a solution for this? Or do i need to go via Day-Care route

Avatar

Community Advisor

Things you can do

1) Test this in 6.3 with out service pack 3 and confirm if it is working . If so go with a daycare ticket and fix it

2) if you have any UI expert in team who can crack the logic , may be you can fix this yourself