Help! Search Fields on the Web

Help! Search Fields on the Web

Post by chip1.. » Wed, 08 Nov 2000 04:00:00



Good evening,

I am publishing a FM Pro 5.0 database to the web.  I have created a
search page and am using 2 fields and a fixed logical operator to
conduct an "and" search.  When I leave the second field blank and
submit the search the system conducts a search using just the one field
and returns with a record. I need the system to return an error if
either field is left blank.  I have checked the fixed logical operator
and it has the "and" option checked.  The layout also has both the
fields on it.

Any help on this would be greatly appreciated.

Thanks again

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Help! Search Fields on the Web

Post by Larry S. Samber » Wed, 08 Nov 2000 04:00:00


I have to do the same thing, but the only way that I was able to do it was
to create a javascript function to validate the inputs before the form gets
submitted.

There is another possibility depending on the structure of the form. If the
two fields can be presented as pull-down lists then you can ensure that they
are both set by not providing a blank entry in the pulldown lists.
--
----------------------------------------------------

Phone: 508-787-4400 x342           Fax: 508-861-0261
Nortel Networks                Marlborough, MA 01752


> Organization: Deja.com - Before you buy.
> Newsgroups: comp.databases.filemaker
> Date: Tue, 07 Nov 2000 22:45:10 GMT
> Subject: Help! Search Fields on the Web

> Good evening,

> I am publishing a FM Pro 5.0 database to the web.  I have created a
> search page and am using 2 fields and a fixed logical operator to
> conduct an "and" search.  When I leave the second field blank and
> submit the search the system conducts a search using just the one field
> and returns with a record. I need the system to return an error if
> either field is left blank.  I have checked the fixed logical operator
> and it has the "and" option checked.  The layout also has both the
> fields on it.

> Any help on this would be greatly appreciated.

> Thanks again

> Sent via Deja.com http://www.deja.com/
> Before you buy.


 
 
 

Help! Search Fields on the Web

Post by Tim Boot » Thu, 09 Nov 2000 09:28:05



> Good evening,

> I am publishing a FM Pro 5.0 database to the web.  I have created a
> search page and am using 2 fields and a fixed logical operator to
> conduct an "and" search.  When I leave the second field blank and
> submit the search the system conducts a search using just the one field
> and returns with a record. I need the system to return an error if
> either field is left blank.  I have checked the fixed logical operator
> and it has the "and" option checked.  The layout also has both the
> fields on it.

Yes, well, it is doing what you asked... Field1=value
and field2=blank is a valid find request, even with 'and'
searching (which is the default in any case, so doesn't need
to be specified)...

I've used this hack:

<input type="hidden" name="field" value=" ">
<input type="text" name="field" size="40">

This places a hidden default value for the field, which is
overidden when the user actually enters text and submits.

You could also look at the Exact Match parameter, described in
the CDML reference for -op:

You can use any FileMaker Pro Find operator by specifying the begins
with (bw) parameter.  E.g.,  To specify the "Find Content Match" (==)
operator, you would specify the begins with parameter (bw) and then you
would place the characters "==" before the actual search criteria.  The
required lines would look like this:

                        <input type="hidden" name="-Op" value="bw">
                        <input type="text" name="First" value="==Keith Proctor">

Personally, I don't see this as very useful for a password issue though
-
the user can over write it very easily.

Webko

 
 
 

Help! Search Fields on the Web

Post by chip1.. » Thu, 09 Nov 2000 04:00:00


Thanks Tim,

I'll give it a try.

Take care




> > Good evening,

> > I am publishing a FM Pro 5.0 database to the web.  I have created a
> > search page and am using 2 fields and a fixed logical operator to
> > conduct an "and" search.  When I leave the second field blank and
> > submit the search the system conducts a search using just the one
field
> > and returns with a record. I need the system to return an error if
> > either field is left blank.  I have checked the fixed logical
operator
> > and it has the "and" option checked.  The layout also has both the
> > fields on it.

> Yes, well, it is doing what you asked... Field1=value
> and field2=blank is a valid find request, even with 'and'
> searching (which is the default in any case, so doesn't need
> to be specified)...

> I've used this hack:

> <input type="hidden" name="field" value=" ">
> <input type="text" name="field" size="40">

> This places a hidden default value for the field, which is
> overidden when the user actually enters text and submits.

> You could also look at the Exact Match parameter, described in
> the CDML reference for -op:

> You can use any FileMaker Pro Find operator by specifying the begins
> with (bw) parameter.  E.g.,  To specify the "Find Content Match" (==)
> operator, you would specify the begins with parameter (bw) and then
you
> would place the characters "==" before the actual search criteria.
The
> required lines would look like this:

>                    <input type="hidden" name="-Op" value="bw">
>                    <input type="text" name="First" value="==Keith
Proctor">

> Personally, I don't see this as very useful for a password issue
though
> -
> the user can over write it very easily.

> Webko

Sent via Deja.com http://www.deja.com/
Before you buy.
 
 
 

Help! Search Fields on the Web

Post by chip1.. » Thu, 09 Nov 2000 04:00:00


I cant represent them as pull down lists but will keep this in mind for
other pages.

Thanks again



> I have to do the same thing, but the only way that I was able to do
it was
> to create a javascript function to validate the inputs before the
form gets
> submitted.

> There is another possibility depending on the structure of the form.
If the
> two fields can be presented as pull-down lists then you can ensure
that they
> are both set by not providing a blank entry in the pulldown lists.
> --
> ----------------------------------------------------

> Phone: 508-787-4400 x342           Fax: 508-861-0261
> Nortel Networks                Marlborough, MA 01752


> > Organization: Deja.com - Before you buy.
> > Newsgroups: comp.databases.filemaker
> > Date: Tue, 07 Nov 2000 22:45:10 GMT
> > Subject: Help! Search Fields on the Web

> > Good evening,

> > I am publishing a FM Pro 5.0 database to the web.  I have created a
> > search page and am using 2 fields and a fixed logical operator to
> > conduct an "and" search.  When I leave the second field blank and
> > submit the search the system conducts a search using just the one
field
> > and returns with a record. I need the system to return an error if
> > either field is left blank.  I have checked the fixed logical
operator
> > and it has the "and" option checked.  The layout also has both the
> > fields on it.

> > Any help on this would be greatly appreciated.

> > Thanks again

> > Sent via Deja.com http://www.deja.com/
> > Before you buy.

Sent via Deja.com http://www.deja.com/
Before you buy.
 
 
 

1. Help with FMP4.2 Web client and Web searches

Hi,

Hope someone can help?

I've created a database which I run as a web site. One the site users can
submit new records and also edit records, I wont to send a confirmation
email when a record is submitted, so I have created a loop script which
looks at a hidden field in the new record and will find this to be blank
(false) this is the trigger to (if...)  send the email. the script will then
set the field to true so the next loop pass will ignore that record. I put
in a pause script timer so the loop does not constantly run to release
processor time.

All this work fine, but I when I tested the site and did searches on the
records -  back in FMP the find box comes up on the Status window which
cancels the paused script totally stopping the function of the database/web
site!

The only way I can find to keep the loop script checking for new/edited
records is to take out the pause. But this seems a heavy handed way to run
the database.

You help much appreciated.

Mike

2. Storing & retrieving Wave files from SQLSErver database

3. Web page field focus on search page

4. Postgres on NT

5. Searching 2 Fields on Web

6. remove virtual server on SQL Cluster

7. Require Data in Web Search Field?

8. Systems Administrator,ELGIN,IL

9. WEB: Search on field value

10. Multiple field search script for the Web

11. web searching for NULL fields??

12. web one entry for multiple field search??multiple

13. Searching for a blank field on the Web