Re: FileMaker (Pro Advanced 8) bug?
Re: FileMaker (Pro Advanced 8) bug?
- Subject: Re: FileMaker (Pro Advanced 8) bug?
- From: Bruce Robertson <email@hidden>
- Date: Fri, 20 Oct 2006 15:06:58 -0700
> If I create a simple test database with two tables, "Table1" and "Table2" with
> two layouts with the same names, no relationships between them, then the
> following code (executed when Layout Table2 is on the screen):
>
>
> tell application "FileMaker Pro Advanced" to tell document "Test" to tell
> layout "Table1"
> create new record
> end tell
>
> creates a record in Table2. Adding "at layout/table/database "Table1" just
> generates an error (Object Not Found). In fact, everything works the same as:
>
>
> tell application "FileMaker Pro Advanced"
> create new record
> end tell
> which creates a new record in whichever table is on the current layout.
This is as you would expect.
You didn't tell it to GO to the other layout.
Try this:
tell application "FileMaker Pro Advanced"
tell document "Test"
go to layout "Table1"
create new record
end tell
end tell
_______________________________________________
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