How to read node property in granite js code | Community
Skip to main content
October 20, 2017
Solved

How to read node property in granite js code

  • October 20, 2017
  • 1 reply
  • 3927 views

Hi All,

I want to read node property in below dialog-ready function in js that i am using in AEM6.2.

$document.on("dialog-ready", function(e) {

// here i want to read jcr node property which belongs to current component

});

Please let me know the way to read the same.

Thanks,

Pradeep

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 smacdonald2008

See this thread - it may help --

Fetch dialog property value in js in AEM

Another option you have is make a HTTP call to a backend service (using AJAX). Backend can use the JCR API to read a node props and then have the node prop return.

1 reply

smacdonald2008
smacdonald2008Accepted solution
October 20, 2017

See this thread - it may help --

Fetch dialog property value in js in AEM

Another option you have is make a HTTP call to a backend service (using AJAX). Backend can use the JCR API to read a node props and then have the node prop return.