[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Mac::Glue



At 16:43 -0400 8/26/99, strider corinth wrote:
>I have another problem now: I can't get it to 'show' except if the record
>is currently being displayed (i.e. it came up in a find request or I just
>did a 'find all'). My AppleScript command works just fine, even when the
>record isn't currently being displayed. So I figure I shouldn't need the
>Find All in the first place, but can't figure out how to get by without it.
>Here's the code I'm using for each:
>
>---
>$filemaker->show($filemaker->obj('records' => whose(AND =>
>    ['cell' => 'id' => equals => $username],
>    ['cell' => 'date' => equals => $date])));
>- -
>show (every record of database 1 whose cell "id" = username and cell "date"
>= rdate)
>---

I believe you'll find a difference between asking a database to show and
asking a document to show.  The AppleScript is asking the database to show
(which I think means the complete database).  The Perl is implicitly asking
the document to show (it's failing to specify what thing in FileMaker
should show, which is implicitly document 1 (in FileMaker:  in many apps
such things are errors)).

  --John
-- 
John Baxter   jwblist@olympus.net      Port Ludlow, WA, USA

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org