Manage Learn to apply best practices and optimize your operations.

Implementing QuickSearch on Web views

Do you have a large amount of documents in view, and want to search for a specific document?

Do you have a large amount of documents in view, and want to search for a specific document? Don't use applet views! Try to use HTML view and a $$ViewTemplateDefault (or another view name) to implement this solution with javascript and Domino URL commands. After you put this code, type any alpha-numeric key in your browser to open a prompt dialog for search:

Put it in JSHeader of the form:

function ReturnQueryString(vl) {
 var tmn = vl.toString().length+2;
 var ini = location.href.indexOf("&"+vl+"=",1);
 if(ini==-1) {return ""};
 var fim = location.href.indexOf("&",ini+tmn);
 if(fim==-1) {
  fim = location.href.toString().length;
 var func = location.href.substr(ini+tmn,fim-ini-tmn);
 return func;
function Search(vl) {
   var Qry = ReturnQueryString("StartKey");
   if(Qry=="") {
      location.href = location.href + "&StartKey=" + vl;
   } else {
      newurl = location.href.replace("&StartKey="+Qry,"&StartKey="+vl);
      location.href = newurl;
function QSearch() {
  var strng = String.fromCharCode(event.keyCode);
  var list = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
  var ch;
  ch = list.indexOf(strng,0);
  if(ch == -1 ) {return false};
  vl = prompt("Type text to search","");
  if(vl!=null) {Search(vl)}

And in the bottom of your form:


You can optionally enable column sorting for your views and this script will work for this !

Dig Deeper on Lotus Notes Domino Administration Tools

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...