I'm new to the Experience Manager and JCR repository. I have to implement a JCR Query to fetch the values from a content node.
Example: The content folder under several nodes.
/content/folder1/folder2/data1, /content/folder1/folder2/data2 with some properties inside it.
The data under folder2 in json format looks in this way:
In this way i have several folder under content. Now I have to implement a query to fetch the id's available under list node in all the folders.
Is this possible to achieve it. Please help in resolving it.
Once you query the list node, you can read the ID property by using syntax to read an Array.
Once you get the node that contains this property - you can get the array by using this JCR API code;
Property references = node.getProperty("id");
Property references = node.getProperty(
Value values = references.getValues();
String myId = values.getString();
String myId = values[
Hope this helps...
As you are new to AEM - read this article on how to use QueryBuilder API -- Adobe Experience Manager Help | Creating Adobe Experience Manager OSGi bundles that use the Query Bu...