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

REESG
Community profile REESG Level 1
Job title here
Location here
3 BADGES
Level 1

Level 1

Learn more
Joined the community 15-11-2016 6:13:14 AM
Offline
Top badges earned by REESG
Customize the badges you want to showcase on your profile
Re: AEM 6.1 Touch UI: Datepicker Field not prepopulated with stored value
Avatar
Validate 1
Level 1
REESG
Level 1

Likes

2 likes

Total Posts

7 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
REESG
- Adobe Experience Manager
Thanks-a-lot for your help, Vinay. Problem solved.

Views

1.2K

Likes

0

Replies

0
Re: AEM 6.1 Touch UI: Datepicker Field not prepopulated with stored value
Avatar
Validate 1
Level 1
REESG
Level 1

Likes

2 likes

Total Posts

7 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
REESG
- Adobe Experience Manager
Hi Vinay, these are the properties of the datepicker:type=date (string)displayedFormat=YYYY-MM-DD (string)jcr:primaryType=nt:unstructured (name)name=./jcr:startdate (string)sling:resourceType=granite/ui/components/foundation/form/datepicker (string)fieldLabel=Start Date (string)fieldDescription=Enter Start Date (string) I'm using "java.util.Date startdate = properties.get("jcr:startdate", java.util.Date.class);" to get the input and use it in my JSP component file.This is an example output of th...

Views

1.2K

Likes

0

Replies

0
AEM 6.1 Touch UI: Datepicker Field not prepopulated with stored value
Avatar
Validate 1
Level 1
REESG
Level 1

Likes

2 likes

Total Posts

7 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
REESG
- Adobe Experience Manager
Hi! I'm currently facing a strange issue:I've a component that includes text inputs and a date picker (Resource Type: granite/ui/components/foundation/form/datepicker).I can add and edit values for all input fields and they are shown properly on the component on the edited webpage.The system also stores all values properly. But when I re-open the dialog the value for the date selected via date picker is not shown. The date picker input field remains empty.All other inputs are prepopulated with t...

Views

6.9K

Likes

2

Replies

8
Re: Read out and use node parameters from other components via JS Use API
Avatar
Validate 1
Level 1
REESG
Level 1

Likes

2 likes

Total Posts

7 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
REESG
- Adobe Experience Manager
Thanks for your replies.After a lot of trial & errors I've found a JSP solution that provide the respective values:<%@ page import="com.day.cq.commons.jcr.JcrUtil, com.day.cq.wcm.api.WCMMode, org.apache.sling.api.resource.ResourceUtil, org.apache.sling.api.resource.ResourceResolver" %><%@ include file="/libs/foundation/global.jsp"%><%String resourcePath = "/path/to/settings";Resource res = resourceResolver.getResource(resourcePath);Node node = resource.adaptTo(Node.class);properties = res.adaptT...

Views

979

Likes

0

Replies

0
Re: Read out and use node parameters from other components via JS Use API
Avatar
Validate 1
Level 1
REESG
Level 1

Likes

2 likes

Total Posts

7 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
REESG
- Adobe Experience Manager
Hi Daniel,many thanks for your response.I've tried the ValueMap approach before and tried it again today in several variants:Using the getValueMap() function returns this error message:"org.apache.sling.scripting.sightly.SightlyException: org.mozilla.javascript.EcmaError: TypeError: Cannot find function getValueMap in object /content/www/en-eu/about/events2/jcr:content/eventSettings."This sounds strange to me as the function should be available.Using .valueMap returns this error:"org.apache.slin...

Views

915

Likes

0

Replies

0
Re: Read out and use node parameters from other components via JS Use API
Avatar
Validate 1
Level 1
REESG
Level 1

Likes

2 likes

Total Posts

7 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
REESG
- Adobe Experience Manager
Attached Java File.

Views

923

Likes

0

Replies

0
Read out and use node parameters from other components via JS Use API
Avatar
Validate 1
Level 1
REESG
Level 1

Likes

2 likes

Total Posts

7 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
REESG
- Adobe Experience Manager
Hi! my current task is to read out the properties set in a component and use these values in another component:I created a common component for some settings like date format or some translations that should be used in other components that are also used on that page.The user should add another component to that page and the settings made before are being used inside this new component.For example: If we have a setting for a date format in the settings component this format replaces the standard...

Views

3.4K

Likes

0

Replies

5
Likes from