Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Level 1
sandeepk8406364
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
sandeepk8406364
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
sandeepk8406364
Level 1

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

Avatar

Avatar
Contributor
Employee
hamidk92094312
Employee

Likes

101 likes

Total Posts

240 posts

Correct Reply

38 solutions
Top badges earned
Contributor
Shape 1
Ignite 1
Give Back 50
Give Back 5
View profile

Avatar
Contributor
Employee
hamidk92094312
Employee

Likes

101 likes

Total Posts

240 posts

Correct Reply

38 solutions
Top badges earned
Contributor
Shape 1
Ignite 1
Give Back 50
Give Back 5
View profile
hamidk92094312
Employee

25-06-2019

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

- Do you have any nested multifield  ?

Avatar

Avatar
Give Back 10
Level 2
huzaifaha985211
Level 2

Likes

0 likes

Total Posts

25 posts

Correct Reply

5 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Affirm 5
View profile

Avatar
Give Back 10
Level 2
huzaifaha985211
Level 2

Likes

0 likes

Total Posts

25 posts

Correct Reply

5 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Affirm 5
View profile
huzaifaha985211
Level 2

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?

Avatar

Avatar
Give Back 5
Level 4
joeb21688728
Level 4

Likes

33 likes

Total Posts

60 posts

Correct Reply

8 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile

Avatar
Give Back 5
Level 4
joeb21688728
Level 4

Likes

33 likes

Total Posts

60 posts

Correct Reply

8 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile
joeb21688728
Level 4

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

Avatar

Avatar
Give Back 5
Employee
SonDang
Employee

Likes

16 likes

Total Posts

43 posts

Correct Reply

9 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 5
View profile

Avatar
Give Back 5
Employee
SonDang
Employee

Likes

16 likes

Total Posts

43 posts

Correct Reply

9 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 5
View profile
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.

Avatar

Avatar
Level 1
sandeepk8406364
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
sandeepk8406364
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
sandeepk8406364
Level 1

28-06-2019

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

​Yes we are using it inside nested multifield.

Avatar

Avatar
Level 1
sandeepk8406364
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
sandeepk8406364
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
sandeepk8406364
Level 1

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