Re: Three simple FMP questions
Re: Three simple FMP questions
- Subject: Re: Three simple FMP questions
- From: Ehsan Saffari <email@hidden>
- Date: Sun, 8 Jul 2001 21:46:02 -0600
On Sun, 08 Jul 2001 18:10:10 -0700, Paul Berkowitz <email@hidden>
wrote:
>
1) Is there any way to get the file path of an open FMP document, so that
>
you can close it, then re-open it later? Or any other way to do the same
>
thing?
In FMP 5.5 there is a status function for that (Current db path or
similar). For versions before 5.5 there is a plugin (check the plugin
directory at
http://www.filemaker.com) The AS methods are either the open
files osax or having an applet with a "path to me" handler saved in the
same folder as the db. That pre 5.5 didn't supply this function bugged me
to no end.
>
2) Is 'database' _really_ an element of 'document', in the usual meaning?
>
Can you have more than database belonging to the same document? How? I don't
>
see any way in the UI, and if you try it in AppleScript you actually end up
>
with a new document as well as a database, which in fact does not belong to
>
the document you created 'at'. It seems to me that 'document' and 'database'
>
refer to the same object except insofar as you need to get a particular
>
property you have to use one designation or the other, yes?
As per the FMP & AE Ref db (study it once the dictionary has confused you
sufficiently ;>) in the FMP folder: Database is the entire record set,
document is the current found set of records of the db, you can verify
this by getting in the count of records of database x vs. count of
records of document x. The object model hierarchy representation in our
favourite editor does not reflect that.
>
3) I don't seem to be able to 'get' every database (or document), nor any
>
property, such as 'name', of 'every database' (or document) but I can 'set n
>
to count (every document)', then do a repeat loop to get the name of each
>
one. Is this the only way to do it?
That trips me often, and I still sometimes forget it. I believe that's
the only way, unless you want to use the FMP function DatabaseNames (a
design function available in FMP 4 and above)
>
That in itself seems odd, and it's
>
still not helping find a way to close and reopen any of them.
>
>
Does anyone have any idea why such a nutty object model was concocted? Is
>
there some advantage?
Not really but I believe FMP was one of the first OM apps, starting with
FMP2 circa 1990. The current OM is mostly as it was back then.
cheers
ehsan