URL Searching Problem - Help Needed

I have created the view, search form, etc. I have a query field which is populating the URL using the $$return method. All works fine except:

I cannot work out how to bring up documents that contain different values within one field.

For example, the database holds documents which are French properties for sale. On the search form the users can select a region from a drop down box and then through a series of tick boxes are able to tick what types of properties they want to see within that region.

This is an example of a query that works fine:

[PropFRRegion] EQUALS Alsace AND [PropertyMainTypeLookup] EQUALS Character Property

As does this:

[PropFRRegion] EQUALS Alsace AND [PropertyMainTypeLookup] EQUALS Villa

Problem is when I try to search for a few types within one region like this:

[PropFRRegion] EQUALS Alsace AND [PropertyMainTypeLookup] EQUALS Character Property OR Villa

It will then bring up villa’s within all regions and not just in Alsace.

Hope that makes sense, can someone help me with how I need to structure the string.

Many thanks guys,

Matt.

Subject: URL Searching Problem - Help Needed

Try using parens like this:

[PropFRRegion] EQUALS Alsace AND ([PropertyMainTypeLookup] EQUALS Character Property OR Villa)

Subject: RE: URL Searching Problem - Help Needed

I will try that and post a response.

For some reason, I did not think you were able to structure with parens over the web.

Many thanks,

Matt.

Subject: RE: URL Searching Problem - Help Needed

Hi Matt,

Yes, you can use parens over the web. In fact, most of my search pages for domino includes a “search within the results” capability. All I do is take the original search, wrap in parens and add on the new search.

http://server/db.nsf/view?SearchView&Query=(original query)%20AND%20(new query)

Also, I just checked on one of my web apps where we allow the user to search for one or more items stored in one field.

Here’s the URL that we build:

http://server/db.nsf/view?SearchView&Query=([Status]=(Active%20OR%20Archived))&SearchOrder=4&SearchMax=0&SearchWV=TRUE&SearchFuzzy=FALSE&Start=1&Count=25

HTH,

Jack

Subject: RE: URL Searching Problem - Help Needed

Thanks very much for your response(s) Jack.

Parens worked and the search is now fine.

It took me a little while to build the query field which collates the information from the form and then feeds into the $$return but it is now done and works fine.

Thanks again,

Matt.