Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!
SOLVED

How to read node property in granite js code

Avatar

Level 6

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

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.