Search field on $$template (another method)

Author: Tripp W Black

Created: 08/26/1999 at 07:51 PM


Notes Developer Tips
Formulas, ViewTemplates

1. Put a text editable field on the form called Query. (This is where the user enters the
2. Put a hidden field called SERVER_NAME and make it text, editable. (Domino asigns the
CGI environment variable to this)
3. Put a field called dataPath on the form which calculates the location of the database.
3. Create a $$Return field on the form, computed with the following formula;
strQuery := @If ( @Contains(Query;" ");"&Query=" + @Implode(@Explode(Query;" ");"+");
"&Query=" + Query);
"[http://" + SERVER_NAME + dataPath + "/top?SearchView&Query=" + strQuery + "]"

previous page