Expand my Community achievements bar.

SOLVED

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

Avatar

Former Community Member

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.