Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Composite Multifield in TouchUI Scaffold

Avatar

Level 4

Hi All,

I am trying to create a custom multifield in touchUI scaffold. i have created the following structure - 

<pages jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/multifield" class="full-width" eaem-nested="" fieldDescription="Click '+' to add a new page" fieldLabel="URLs"> <field jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/fieldset"> <items jcr:primaryType="nt:unstructured"> <page jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/textfield" fieldDescription="Enter Page Name" fieldLabel="Page Name" name="./page"/> <path jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/pathbrowser" fieldDescription="Select Path" fieldLabel="Path" name="./path" rootPath="/content"/> </items> </field> </pages>

I am able to see the multifield and even data is stored in the repository, but when I open the scaffold again, i don't see these values prepopulated.

Can you help me how to solve this ?

15 Replies

Avatar

Administrator

Hi 

I would recommend you to check this Adobe Helpx article :- 

Link:- https://helpx.adobe.com/experience-manager/using/sightly_multifield.html

//Creating an AEM HTML Template Language component that uses a Multifield control

[img]https://helpx.adobe.com/experience-manager/using/sightly_multifield/_jcr_content/main-pars/image_8.i...

You can play this the package provided and can modify it as per you case.

 

Thanks and Rgards

Kautuk Sahni



Kautuk Sahni

Avatar

Level 4

Thanks for your reply Kautuk, but this is not a component, it is a scaffold dialog where I am facing the issue.

Avatar

Level 4

Hi,

can anyone please help me having a composite touchUI multifield in scaffold touchUI dialog ?

Avatar

Level 2

Could someone find a solution for this issue? I am having the same behaviour here.

Thanks.

Avatar

Level 1

per Adobe documentation,  touch UI is not supported in scaffold.  Its body.jsp is still using extjs.

Also, please refer this:

Re: Scaffolding in Coral UI

Thanks,

Nagendra

Avatar

Level 3

Hi,

Is the issue with multifield in touch ui dialog of scaffold resolved? I have similar requirement where multifield needs to be present in scaffold page(touch ui dialog).

The issue is that already entered data does not appear on dialog within multifield on subsequent edits even though data is stored in crx(in string array format).

Thanks & Regards,

Srikanth Pogula.

Avatar

Level 3

Hi,

Any resolution to this querry asked, we also have similar requirement. How to resolve this and show value stored in JCR in touch UI.

Avatar

Level 2

Any updates on this?

we are encountering same issue on 6.3

Avatar

Level 10

Could still be a bug. As it works perfectly fine in a component dialog - but issues in a TouchUI Scaffold  -- then log a bug and let support know.

Avatar

Level 1

Hi,

Did you find a solution for this issue? I too face the similar issue.

Thanks.

Avatar

Level 2

Seems like there there is no solution due to technical limitation, only changing/creating new component, we have opened a ticket with Adobe and this is the reply we have got:

"The behavior you are witnessing is an expected behavior.

It is not recommended to use the multi-field for the product scaffolding as creating sub nodes for product attributes is orthogonal to the expected product data structure. Products attributes should be stored directly at the product or variant node. Child nodes ideally are only used for variations or assets.

The way the product scaffolding works for products, it flattens the structure when the form POST is send, so any sub node information will be lost already in the java-script (except for assets). So the structure needed for the multi field is already lost before the data reaches the server.

If you still want to use the multi-field, you have to customize the multi-field to understand the attributes stored as string[] values and correctly displaying them in the scaffolding."

Avatar

Level 4

"customize the multi-field to understand the attributes stored as string[] values".

For the customization, can you please provide more details on the files(guessing .js file(s)) that actually stores the product scaffold data in the JCR.

Avatar

Level 1

In acs-commons, touchui-composite-multifield.js is used to store the attributes as string[] values. Few of the css classes would be missing in the product scaffolding if you compare with a component dialog. If those are corrected along with the few other changes, values can be stored as string[] in the product scaffolding.

Avatar

Level 1

Is there any update on this issue?

I'm facing the same issue. Values are saved in a different structure than component multifield and presenting them in not working.

Is it possible to add multifield to scaffolding?