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

YES!!

It's finally working !
Here's my solution:

// SSJS CODE in onclick() event

//setting variables
var strc = String.fromCharCode(34);
var strQry1 = "SELECT * FROM MYDB.MYTABLE WHERE MYFIELD = '";
var strQry2 = "'";

var QRY = getComponent("inputText1").getValue();
var peopleView:NotesView = database.getView("MYQUERYVIEW");
peopleView.setSelectionQuery(strc+ strQry1 + QRY + strQry2 + strc);

getComponent("query").setValue(strc+ strQry1 + QRY + strQry2 + strc);


I do hope this can help someone !

Have you got any comments or idea to improve it ?

Perfomance are not bad:

seeking in a 100.000 records table i get the response in the web page within 2 - 3 secs...

Marco


Feedback response number WEBB7V5JA9 created by ~Holly Cisreburoden on 08/21/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