Skip to main content
gargsahil099
Level 3
November 23, 2017
Solved

Multifield data not stored in JSON format

  • November 23, 2017
  • 12 replies
  • 11198 views

Hi All,

I have created a multifield component in touch ui after adding the values to dialog the content stored in zcrx is not in JSON format it is in below array format.

Can some one please suggest on this.

Thanks

Sahil Garg

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

See this article - it tells you everything you need to do - including how to download the ACS-COmmons package -- Creating an AEM HTML Template Language 6.3 component that uses a Multifield

12 replies

Techaspect_Solu
Level 7
November 23, 2017

Hi,

Please refer the link below. It might help you in achieving your requirement (store values in JSON format). The aim of the below tutorial is to store and retrieve the values in the form of JSON Array from crxde/JCR repository.

http://www.aemcq5tutorials.com/tutorials/touchui-multifield-component-using-htl/

Please let us know if you still face any difficulty in implementing this.

We hope this information helps!

Regards,

TechAspect Solutions

gargsahil099
Level 3
November 23, 2017

HI TechAspect,

I have already tried that, in this blog they have mentioned that by using the property on fieldset acs-common-nested="" will store the data in JSON  format but in my case i have already declared this property but still it is saving in String[] format for all the fields individually. can you please suggest.

Thanks

Techaspect_Solu
Level 7
November 23, 2017

Hi,

We were sucessfully able to implement your use case by following the link that we had mentioned earlier. It's working fine for us.

However, we've uninstalled acs-commons package and see that the values are getting saved in String[] format. So possible reason behind your issue is, you might not have acs-commons package installed.

Try installing acs-commons package. This should resolve your issue.

We hope this helps!

Regards,

TechAspect Solutions

gargsahil099
Level 3
November 23, 2017

Hi TechAspect,

yes i haven't installed the acs-commons package can you please share the link to download this package and how can i install this. Do i need to simply install this from package manger.

Thanks in advance.

Amit-Tiwari
Level 4
November 23, 2017

Please share your dialog structure.

try use ACS commons multifieldpanel xtype

Techaspect_Solu
Level 7
November 23, 2017

Hi,

Here is the link to download acs-commons package:

https://adobe-consulting-services.github.io/acs-aem-commons/

Once you download the package, you can simply upload and install it from package manager.

We hope this helps!

Regards,

TechAspect Solutions

gargsahil099
Level 3
November 23, 2017

Hi Tech Aspect,

I have tried to download and install the acs-commons package but still same issue persists.Can you please help me on this. Can you please help me to convert my cq:dialog node to xml format so that i can share the same with you.

Thanks

smacdonald2008
smacdonald2008Accepted solution
Level 10
November 23, 2017

See this article - it tells you everything you need to do - including how to download the ACS-COmmons package -- Creating an AEM HTML Template Language 6.3 component that uses a Multifield

smacdonald2008
Level 10
November 23, 2017

The data will be stored as JSON--

vidyab9364493
April 11, 2018

Does the same apply to classic UI as well or is there any different approach?