How to Get List values from JCR which are already stored in JCR Node. | Community
Skip to main content
October 16, 2015
Solved

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

  • October 16, 2015
  • 1 reply
  • 909 views

Hi,

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

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

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. 

1 reply

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

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.