AEM 6.2 classic ExtJS : Read property set on the parent node of listeners | Community
Skip to main content
cquser1
Level 7
Sep 13, 2018 11:09 AM UTC
Solved

AEM 6.2 classic ExtJS : Read property set on the parent node of listeners

Hi All,

We are referencing article provided in http://letsaem.blogspot.com/2015/12/implement-character-countdown-and.html to implement character count on one of the textfield in component dialog.

Here in article , there are 4 nodes shown. We are referring to the one circled in red. In this, for keyup, keypress & keydown events. there is a listener function written.

In those functions we need to read value of a property "customlength" of type "String" with value "5". This "customlength" is set on "heading" node.

Tried multiple things, but no luck.

Any thoughts/pointers/reference articles on this will be helpful.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
GaneshM
GaneshMAccepted solution
Level 3
Sep 14, 2018 4:59 AM UTC

Hi,

Did you try this.findParentByType('dialog').getField('./heading_field').getValue()  ? on contentload event listener

Thanks!

2 replies

GaneshM
GaneshMAccepted solution
Level 3
Sep 14, 2018 4:59 AM UTC

Hi,

Did you try this.findParentByType('dialog').getField('./heading_field').getValue()  ? on contentload event listener

Thanks!

Translate
smacdonald2008
Level 10
Sep 13, 2018 2:45 PM UTC

You can look at trying to use Java JCR API to read those values. You can call a Servlet from an event handler and then read those node properties using a Strongly typed API.

Some similiar to what is dicussed here -- Adobe Experience Manager Help | Invoking Sling Servlets from Adobe Experience Manager xtype widgets

This is an older artilce written for Classic UI. In newer AEM versions - we will never do Classic UI examples as focus now is Touch UI.

Translate