Re: FileMaker (Pro Advanced 8) bug?
Re: FileMaker (Pro Advanced 8) bug?
- Subject: Re: FileMaker (Pro Advanced 8) bug?
- From: Matt Deatherage <email@hidden>
- Date: Sat, 21 Oct 2006 01:25:45 -0500
On 10/20/06 at 10:08 PM, David Crowe <email@hidden>
wrote:
But I don't want to go to the other layout! If I do that then the
screen view changes. I don't need to do that to read/write fields from
the database, so I don't know why I should have to do that to create a
record.
What you want, I think, is the "Apple Events Reference" database
(installed with FileMaker in the "English Extras" folder, at
least on my
system). It says:
Use the Layout object to move between layouts, to generate reports, or
to restrict the available fields.
When working with a layout, FileMaker Pro considers only the fields
that are on that layout plus the related fields if any.
In early versions of FileMaker, FileMaker has introduced
layout 0 to
give access to all fields in a table. FileMaker still supports layout
0, but it will only give you access to the first table of the
database. To get access to all fields in all tables, use the table
object instead.
A "layout" is more the way that records are presented on screen than
full access to the database. What you appear to want is the "table"
object, not the "layout" object. Granted, in older FMP versions,
"layout" was about all you could use in some cases, but that's
not the
case anymore.
Find the table in which you want to create the record, then:
tell table "Table1" -- or whatever
create new record
end tell
It should make you much happier.
--Matt
--
Matt Deatherage <email@hidden>
GCSF, Incorporated <http://www.macjournals.com>
2006 will be a perfectly ordinary year - the kind that's not
only divisible
by 2, but also by 17 and 59.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden