AEM forms displaying search results from DB | Community
Skip to main content
Level 2
Jun 5, 2019 8:35 AM UTC
Solved

AEM forms displaying search results from DB

Hi All,

I have a search form component which takes input like firstname , last name, etc . When i click on Search button the form is submitted and i have a servlet which is invoked , it will return data from database. Now i need to use this data returned to populate a table below the search component. Is it possible to achieve the same with table component or any other aem forms features ?. I have gone through helpx document to populate the table dynamically using xml , but doesn't match my requirements. TIA

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Mayank_Gandhi
Mayank_GandhiAccepted solution
Employee
Jun 5, 2019 1:45 PM UTC

Once you have data with you in xml or json you can try to use jquery data table and populate the data in it. This will, of course, be a custom approach.

Working with jQuery DataTables — SitePoint

3 replies

Mayank_Gandhi
Employee
Jun 11, 2019 5:36 PM UTC

Here is a great sample published by Lee. Please refer the sample code at below link:

https://forms.life/2019/06/03/datatables-in-adaptive-forms/

Translate
Employee
Jun 5, 2019 2:29 PM UTC
Mayank_Gandhi
Mayank_GandhiAccepted solution
Employee
Jun 5, 2019 1:45 PM UTC

Once you have data with you in xml or json you can try to use jquery data table and populate the data in it. This will, of course, be a custom approach.

Working with jQuery DataTables — SitePoint

Translate