Skip to main content
Level 3
Jun 21, 2018 10:32 AM UTC
Solved

Date-picker not retaining values in multi-field in AEM 6.4

I am using date-picker within a multi-field but when i am saving value in this date-picker and opening the dialog again, I am not able to retain the date-picker value. I have tried this in AEM 6.4

If anyone has faced similar issue, Please let me know what is required to make it work.

Regards,

Priya

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
Community Advisor
Jun 22, 2018 8:55 AM UTC

15 replies

arunpatidar
Community Advisor
Community Advisor
Jun 21, 2018 10:42 AM UTC

Hi,

Are you using Coral3 components(below)? If yes can you please post your dialog xml here?

/libs/granite/ui/components/coral/foundation/form/datepicker

Translate
Arun Patidar
Level 3
Jun 21, 2018 10:53 AM UTC

Yes I am using coral 3 components. Please find below the dialog xml.

Translate
arunpatidar
Community Advisor
Community Advisor
Jun 21, 2018 1:16 PM UTC

Hi,

I tried date picker with Multifield worked for me.

Can you add composite=true(Boolean) in mutiflield node and then check.

Thanks

Arun

Translate
Arun Patidar
smacdonald2008
Level 10
Jun 21, 2018 1:35 PM UTC

See this video i put together for you - it works:

Here is the article which is referenced in the video -- Building Experience Manager Components using Granite/Coral Resource Types

Translate
Level 3
Jun 22, 2018 4:45 AM UTC

Hi Arun,

I tried adding composite=true property but that also didn't work for me. Could you please share the dialog xml that you have created for this? Need to check if i'm missing something here.

Regards,

Priya

Translate
arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
Jun 22, 2018 8:55 AM UTC
Arun Patidar
Level 3
Jun 22, 2018 9:06 AM UTC

Hi Arun,

Thanks. It worked for me. The problem was with resource type of fieldset that i was using. I was using "granite/ui/components/foundation/form/fieldset" which was not working for Richtext and datepicker.

Translate
Level 3
Jun 22, 2018 10:09 AM UTC

Arun, do you have any idea how to make rte and datepicker work with multi-field using acs-commons? Because it's only working for me if i don't use acs-commons, and use composite=true instead.

Translate
arunpatidar
Community Advisor
Community Advisor
Jun 22, 2018 10:16 AM UTC

Hi Priya,

I've no idea about acs-commons multifield, I always use Coral3/Granite multiplied component.

And According to ACS commons, you should use Granite components. I am not sure if you are same or any other acs commons Multifield feature.

Multifield Extension

Translate
Arun Patidar
Level 3
Jun 22, 2018 10:21 AM UTC

But when are using coral multi-field, it's storing the multi-field data in Node structure. Is there any way of getting the data in JSON structure?

Translate