Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More FMP8 Questions




On 25/01/2007, at 2:49 am, Chris Prew wrote:

tell application "FileMaker Pro.app"
go to document "MyApp"
tell document "MyApp"
go to layout "Invoice"
tell current layout
set my_list to cell "InvoiceID" of (every record whose cell "Status" is equal to "Open")
end tell
end tell
end tell



Try this:

tell application "FileMaker Pro"
open document "path:to:myapp"
show layout "Invoice"
try
set my_list to cell "InvoiceID" of (every record of table "Invoices" whose cell "Status" is equal to "Open")
on error
set my_list to {}
end try
end tell


Note that you'll need to insert the correct table name: I've assumed "Invoices". Also, if there are no records with Status="Open" then FileMaker will error, so you need to trap for that.

--
Tim Mansour <email@hidden>



_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden
References: 
 >More FMP8 Questions (From: Chris Prew <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.