Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How to Get List values from JCR which are already stored in JCR Node.

Hi,

    I want List of Values which are already stored in JCR Node to Combo Box. Please help me to implement it.

1 Accepted Solution

Avatar

Correct answer by
Level 10

You can use the AEM QueryBuilder API to build an AEM service that can query the JCR. Use the QUeryBuilder API from within an OSGi bundle to build a custom service. For details on how to use the Query Builder API from within an OSGi bundle, see:

http://helpx.adobe.com/experience-manager/using/using-query-builder-api1.html

In your use case, the back end service should place the data in XML or JSON and return the data to the front end component. The front end component can parse the data and place the data in a Combo box. You should be familiar with how to invoke a back end service (the one that uses the AEM Query Builder API) from an AEM front end component. Here is another way to get data from the back end service (in this example, its an AEM Sling Servlet) and populate a front end (in your example - the back end should use Query Builder API) 

See: 

http://helpx.adobe.com/experience-manager/using/creating-custom-cq-tree.html

Instead of a tree panel - you will populate a Combo box. 

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

You can use the AEM QueryBuilder API to build an AEM service that can query the JCR. Use the QUeryBuilder API from within an OSGi bundle to build a custom service. For details on how to use the Query Builder API from within an OSGi bundle, see:

http://helpx.adobe.com/experience-manager/using/using-query-builder-api1.html

In your use case, the back end service should place the data in XML or JSON and return the data to the front end component. The front end component can parse the data and place the data in a Combo box. You should be familiar with how to invoke a back end service (the one that uses the AEM Query Builder API) from an AEM front end component. Here is another way to get data from the back end service (in this example, its an AEM Sling Servlet) and populate a front end (in your example - the back end should use Query Builder API) 

See: 

http://helpx.adobe.com/experience-manager/using/creating-custom-cq-tree.html

Instead of a tree panel - you will populate a Combo box.