Data Search Form and page linking

1
0
-1

I am making a form with three search fields and a Search button. The result of this search shall be displayed on this same page below search criteria in a table.

I have made that page. I have also made custom query which shall get fired when the Search button will be pressed.

SELECT e
FROM Candidate e
WHERE e.ssn = :ssn
OR e.passport = :passport
OR e.name like :name
ORDER BY e.persistenceId ASC

The query needs to search record for any of the data as filled in the form

I have declared a variable on form like bwlow:
../API/bdm/businessData/com.der.model.Candidate?q=searchCandidate&p=0&c=10&f=ssn={{ssn}}&f=passport={{passport}}&f=name={{name}}

The

The problem is that I am not able to make out what shall I do so that when I click on Search button, results get displayed on this same page below Search button?

Comments

Submitted by logicallimit on Sat, 02/27/2016 - 08:21

I have found a very good example of search at url: link

Can anyone tell me what shall I do to open this search form just by click of a hyperlink on another page.

No answers yet.
Notifications