Web Views - Developer Help Needed

Hi guys, please help me with this please.

I am currently trying to develop a notes/web application.

In the notes database, users create documents which are properties that are for sale.

On the website, surfers are then able to see the properties that are for sale.

I have up to now, embedded a view onto a form and used the “show single category”, with this linked to a drop down box above the view.

This drop down box looks up different types of property, e.g. House, Farm, etc. The view then shows matching documents. However, I need to be able to produce a more thorough search, where web users can enter property type AND number of bedrooms, geographical region, etc. Al these are fields on the documents and I can use drop down boxes for all these selections.

Can someone tell me how I can do this please. I have played around for a while, trawled the net, been through the help, etc.

I guess somehow need a/the view to look to field(s) on the form and update the view accordingly, much like it is doing with show single category, but for multiple selections.

The fields on the form above the view, but do not know how to do this.

I also would like to get the view to diplay page by page, if this is possible, so that I define a max of 20 entries and the web users can click on a next button to see the next 20 rather than having all documents displayed in the embedded view and users having to use a scroll bar to scroll down and see the documents.

Please help.

Many thanks,

Matt.

Subject: Web Views - Developer Help Needed

Check out @SetViewInfoIt may be just what your’re looking for.

Subject: RE: Web Views - Developer Help Needed

@setviewinfo is functionally identical to a single category view.

To provide search functionality which allows variable numbers of and combinations of criteria, you can’t use single category views, since there’s no reasonable way to provide all the ways of categorizing. Short answer: Do it the same way this forum does – use a full text index. You can learn all you need to about what url syntax to generate from your custom search form by simply clicking the advanced search link over to the right, and looking at the url that generates the results.

Subject: RE: Web Views - Developer Help Needed

Thanks for the response.

Is the best way to do it then to create a search form with the relevent drop downs and a go button at the botton which uses @urlopen to create the URL??

Many thanks,

Matt.

Subject: RE: Web Views - Developer Help Needed

The “best way” is pretty variable; it doesn’t have to be @urlopen. But if you want to embed the search controls within a $$viewtemplate (as is done for the simple search on this site), you’ll have to use javascript, since $$viewtemplates are always opened in “ReadForm mode.”