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.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
Did you try this.findParentByType('dialog').getField('./heading_field').getValue() ? on contentload event listener
Thanks!
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
Hi,
Did you try this.findParentByType('dialog').getField('./heading_field').getValue() ? on contentload event listener
Thanks!
Views
Replies
Total Likes