loss of Quick Search - the ability you have with a Notes Client to start typing
the value of the first sorted column of the view and have Notes jump to that
point in the view. This combination of JavaScript and computed text allows you
to do something very similar with a dropdown box. Stick this code in your
$$ViewTemplate design. Notice the use of computed text (<Computed Value>)
embedded in the JavaScript code
</form>
<form name="gpdlocation">
<select name="example" size="1" onChange="go()">
<Computed Value>
</select> <script language="javascript">
<!--
// When the initial listbox index changes,
// go to location equal to new index's value
function go()
{
location=document.gpdlocation.example.options[document.gpdlocation.example.selec
tedIndex].value
}
//-->
</script>
</form>
Formula for Computed text used in JavaScript above. This code retrieves the
values in the first column of the view called CheatSheets. The dropdown list
values are built from the results of the lookup:
values := @DbColumn("":"NoCache";"":"";"CheatSheets";1);
pathandview := "http://" + Server_Name + "/"
+@ReplaceSubstring(@ReplaceSubstring(@Subset(@DbName; -1); "\\"; "/"); " ";
"+") + "/" + "CheatSheets?OpenView&Startkey=";
blah :=
Requires Free Membership to View
Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.
values + "</option>";
@Implode(blah;@Char(13))
This was first published in November 2000