[FX.php List] empty find requests
Dale Bengston
dbengston at preservationstudio.com
Thu Nov 4 09:45:13 MST 2004
Hmm, I have a feeling it has to do with how FX.PHP is structuring the
query. I recall that CDML would return no records if you submitted an
empty search form.
When I have a minute, I'll turn off my JavaScript validation, submit a
blank search form and write the resulting query to the page and see
what it looks like.
Dale
--
Dale Bengston | Streamline Studio, LLC | dbengston at streamline-studio.com
Associate Member, FileMaker Solutions Alliance
On Nov 4, 2004, at 9:37 AM, Jason H.Awbrey wrote:
> If ( $result['foundCount'] >0) doesn't really work for this situation
> because FileMaker shouldn't be returning anything at all. I would have
> to assume FileMaker were returning something or nothing. In this case
> FileMaker ALWAYS returns something. If I am searching for apples but
> there are no apples in the database, I would much rather see "no
> apples" than a bunch of bananas, kiwi and papaya.
>
> I had been using javaScript validation like Dale mentioned but was
> wondering if anyone had any ideas as to WHY FileMaker acts like this.
> Might be a question for an SE.
>
> Thanks again,
> Jason H. Awbrey
> StravinSOFT, Incorporated
> http://www.stravinsoft.com
>
>
> On Nov 4, 2004, at 8:02 AM, Dale Bengston wrote:
>
>> I use JavaScript field validation to prevent users from submitting an
>> empty search form.
>>
>> Dale
>> --
>> Dale Bengston | Streamline Studio, LLC |
>> dbengston at streamline-studio.com
>> Associate Member, FileMaker Solutions Alliance
>>
>> On Nov 4, 2004, at 12:03 AM, Gjermund Gusland Thorsen wrote:
>>
>>> I only check if( ['foundCount'] > 0 ) { }
>>>
>>> Never really looked inside FileMaker to see what that looks like
>>>
>>> ggt
>>>
>>> On Wed, 3 Nov 2004 17:44:54 -0600, Jason H. Awbrey
>>> <jason at stravinsoft.com> wrote:
>>>> Hello all,
>>>>
>>>> This is more of a general FileMaker web question than a PHP question
>>>> but I figured someone here might know the answer. I have noticed
>>>> that
>>>> if I perform a find where the entire form is left blank, FileMaker
>>>> returns all records. I would think if the form were empty, the
>>>> result
>>>> would be a 401 error (no records found). If I perform a similar find
>>>> within FileMaker, I get an error stating no records match this
>>>> request.
>>>>
>>>> Is this expected behavior and I'm just missing something or does
>>>> this
>>>> stink of a bug?
>>>>
>>>> Thanks in advance,
>>>> Jason H. Awbrey
>>>> StravinSOFT, Incorporated
>>>> http://www.stravinsoft.com
>>>>
>>>>
>>>> _______________________________________________
>>>> FX.php_List mailing list
>>>> FX.php_List at mail.iviking.org
>>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>>>
>>>>
>>>>
>>>>
>>> _______________________________________________
>>> FX.php_List mailing list
>>> FX.php_List at mail.iviking.org
>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>>
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list