• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: FileMaker (Pro Advanced 8) bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FileMaker (Pro Advanced 8) bug?


  • Subject: Re: FileMaker (Pro Advanced 8) bug?
  • From: David Crowe <email@hidden>
  • Date: Fri, 20 Oct 2006 21:08:14 -0600

Bruce;

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.

For the current application it's not a big deal because the script is initiated by a FileMaker button, but imagine if the script ran in the background and every once in a while the screen would flip to another layout and then back. It would be very intrusive on the user.

- David Crowe

At 3:06 PM -0700 10/20/06, Bruce Robertson wrote:
> 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
  • Follow-Ups:
    • Re: FileMaker (Pro Advanced 8) bug?
      • From: Matt Deatherage <email@hidden>
References: 
 >Re: FileMaker (Pro Advanced 8) bug? (From: Bruce Robertson <email@hidden>)

  • Prev by Date: Re: FileMaker (Pro Advanced 8) bug?
  • Next by Date: Re: Date trouble
  • Previous by thread: Re: FileMaker (Pro Advanced 8) bug?
  • Next by thread: Re: FileMaker (Pro Advanced 8) bug?
  • Index(es):
    • Date
    • Thread