Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to 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

best option is probably using viewScope

Suppose you have a repeat control bound to the result of SSJS code that executes the following SQL:

"SELECT * from endusers WHERE clue > 0"

If you wanted, for example, to allow users to resort the repeat using links above the repeat, you could bind an event to each link to set an "ORDER BY" value:

viewScope.put("repeatSortColumn", "firstName");

In the code your repeat is bound to, then, you could do something like this:

var SQL = "SELECT * from endusers WHERE clue > 0 ORDER BY " + (viewScope.get("repeatSortColumn") || "1");

With this approach, when the page originally loads, the repeat will sort by the first column returned from the query, but when a user clicks a resort link the repeat will be resorted by the corresponding column.


Feedback response number WEBB7V3R6W created by ~Arnold Minreternivu on 08/19/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