Skip to main content
This forum is closed to new posts and responses. The content has been migrated to the Digital Solutions Community. Please join us there for new content as well as this content. For customer support, please visit the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

RE:QueryView: change SelectionQuery in XPages

Hi Tim and thanks for your hint!

excuse my ingorance in xpages developing, i'm totally a newbie in this world..

the point I don't understand is if is there some way to work with the property "selectionQuery" of the view used in the datasource of my ViewPanel (or repeat, or Data table).

My situation is:
I'm ve got a query view called "qvUser" with a selectionQuery = "SELECT * FROM DBDB2.MYDAV"; this fetch more than 100.000 records...

With LS, to get quick response, i used to do this:
<< LS CODE >>
v = db.getView("qvUser")
v.selectionQuery = "SELECT * FROM DBDB2.MYDAV WHERE FIELD1 = '" & param1 & "'"
v.Refresh()
<< END LS CODE >>
i do this everytime i do a search in the view.

Now with xPages i'd like to do the same:
suppose a editable textbox in the top used as search field.
Underneath i've got a Data Table which displays all the data from the view "QVUser".
I want to automatically update the Data Table when the user type the search term.

I don't know how to change the selectionQuery from inside the xPage and then reload the Data Table...
Do you know if anyone already did it, and if i can find some nsf to study as example ?

Thank you very much for your time !!

Marco


Feedback response number WEBB7V4DUH created by ~Holly Cisreburoden on 08/20/2009

QueryView: change SelectionQuery in... (~Holly Cisrebur... 19.Aug.09)
. . best option is probably using viewS... (~Arnold Minrete... 19.Aug.09)
. . . . RE:QueryView: change SelectionQuery... (~Holly Cisrebur... 20.Aug.09)
. . . . . . first step (~Holly Cisrebur... 20.Aug.09)
. . . . . . . . SSJS not working (~Holly Cisrebur... 20.Aug.09)
. . . . . . . . . . .. (~Holly Cisrebur... 21.Aug.09)
. . . . . . . . . . . . YES!! (~Holly Cisrebur... 21.Aug.09)
. . . . . . . . . . . . YES!! (~Holly Cisrebur... 21.Aug.09)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS