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

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

  • September 13, 2018
  • 2 replies
  • 1880 views

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.
Best answer by GaneshM

Hi,

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

Thanks!

2 replies

smacdonald2008
Level 10
September 13, 2018

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.

GaneshM
GaneshMAccepted solution
Level 3
September 14, 2018

Hi,

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

Thanks!