Re: Some problems with FileMaker Pro 8
Re: Some problems with FileMaker Pro 8
- Subject: Re: Some problems with FileMaker Pro 8
- From: "Gary (Lists)" <email@hidden>
- Date: Thu, 11 May 2006 18:02:37 -0400
"Carlos Ysunza" wrote:
> tell application "FileMaker Pro Advanced"
> tell database "ForumInterface"
> tell layout "Clientes / Info / Contactos"
> name here I get the expected & obvious result "Clientes / Info /
> Contactos"
> cell "e01 Empresa" of record ID "88" but HERE Ive got an error
> ³FileMaker Pro Advanced got an error: Object not found.²
>
> ????? Why? I¹m frankly without ideas.
> Do I missing something or what?
The thing you are missing is Extra-sensory Perception, specifically the
power of Telepathy. If we were better able to read the minds of FM's AS
team we would be just fine. ;)
Actually, it's an easy problem to solve, Carlos.
You do not say what version of FileMaker you are using. I am using FM 7,
which should cover you for FM 8 as well.
You do not need to direct your statements to a specific layout, neither by
name nor ID. This is actually an improvement from previous versions.
You need only to direct your statements to the _table_ (and record, of
course) which contains the target cell.
Even when you are currently physically viewing Layout One (for example), and
you wish to set the value of a field that is on Layout Two (for example),
then you need only say:
--
tell database 1
tell table "Ysunza" to set cell "Field 4" to "hello dolly"
end tell
--
...where 'Field 4' is not present on the current (visible) Layout One, but
is present in the current table, 'Ysunza'.
[Aside...]
One would think, just as you, that telling the layout would work, but it
does not. This is despite the apparent Class->Element chain represented in
the FM AS dictionary. (I must admit that I neither understand nor care
enough about that stuff to know if I'm always reading things incorrectly, or
if it really is a knot that only testing, experience or Script Debugger can
unravel. :)
--
Gary
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden