Highlighted

Date Field not preserving the previously authored date when author reopens the component dialog

Avatar

Avatar

sandeepk8406364

Avatar

sandeepk8406364

sandeepk8406364

25-06-2019

We have used a Date Field in one of our component's dialog. When author selects a date and save the changes, it gets saved in jcr but whenever authors reopens the component dialog it doesn't displays the previously authored date. Tried inside multifield as well and found same behavior.

AEM version - 6.1

Replies

Highlighted

Avatar

Avatar

hamidk92094312

Employee

Avatar

hamidk92094312

Employee

hamidk92094312
Employee

25-06-2019

- Can you clarify if you are using Coral UI components ?

- Do you have any nested multifield  ?

Highlighted

Avatar

Avatar

huzaifaha985211

Avatar

huzaifaha985211

huzaifaha985211

25-06-2019

Do you have a component specific client libs written out for the date field? Can you upload a screenshot of the properties so we can take a look at how the date value is stored? As a property or as a node?

Highlighted

Avatar

Avatar

joeb21688728

Avatar

joeb21688728

joeb21688728

25-06-2019

Date types are stored fine when the dialog re-opens. I know this document is not listed in the Experience League under the API category for some reason - but it shows you how to work with dates in dialogs:

Building Experience Manager Components using Granite/Coral Resource Types

Highlighted

Avatar

Avatar

SonDang

Employee

Avatar

SonDang

Employee

SonDang
Employee

25-06-2019

There are some OOTB components in AEM 6.1 that has a datefield widget in the Geometrixx site. I would recommend reviewing them to see how to configure the widget.

Also, I would disable any overlay code to ensure that these are not interfering with the way the datefield widget function.

Highlighted

Avatar

Avatar

sandeepk8406364

Avatar

sandeepk8406364

sandeepk8406364

28-06-2019

We are using granite/ui/components/foundation/form/datepicker

​Yes we are using it inside nested multifield.

Highlighted

Avatar

Avatar

sandeepk8406364

Avatar

sandeepk8406364

sandeepk8406364

28-06-2019

No we don't have any specific clientlibs written out for date field. PFB the SS of the node properties.

1781067_pastedImage_0.png