I am creating a web site that contains hundreds of property documents.
I want users to be able to enter search criteria and display the relevent results within a view.
For now, I am just trying one field to get a result, if I manually type in the URL of the View, followed by ?SearchView&Query=“something” it pulls up the correct results in my $$searchtemplate default, which contains a view and navigation buttons.
“something” can be “[region] CONTAINS London” Where [region] is the field name and London is the value. All this works fine.
I am having problems automating this task so users simply complete a form with a few drop downs and press “Search”.
I have created a search form and put the relevant fields in here, which are all drop downs. As I said, I am only using one “region” at the moment to try and get it to work.
I have then created a Submit button and a $$return field. The button simply does @command(filesave) and @command(fileclose).
I have been using a search form that I copied from the old Notes.net 4.6 template and it works fine. I’m not sure if the code below will help, but possily it will give you some ideas.
To submit the document, the form uses:
@If(Query = “”;
@Return(“”);
@Do(@Command([FileSave]);
@Command([FileCloseWindow]))
)
where “Query” is the field they type in the search words.