Re: FileMaker Object Not Found Error
Re: FileMaker Object Not Found Error
- Subject: Re: FileMaker Object Not Found Error
- From: Bruce Robertson <email@hidden>
- Date: Tue, 16 Sep 2008 08:34:09 -0700
> On Mon, Sep 15, 2008 at 8:53 PM, Tim Mansour <email@hidden> wrote:
>>
>> On 16/09/2008, at 1:21 am, Larry Staton Jr. wrote:
>>
>>> Again, for all attempts, FileMaker creates the record and returns a
>>> row id for that record, then raises the "Object Not Found" error when
>>> asked to insert data into that new record.
>>
>>
>> Starting with the obvious ... can you verify for us the contents of "d" in
>> your script?
>>
>> --
>> Tim Mansour <email@hidden>
>
> The contents of d are text. Joe pointed to the correct answer. To
> create a new record in FileMaker (at least for a hosted solution), you
> must create the new record with data at a table of your database.
>
> tell application "FileMaker Pro"
> create new record with data {"data"} at table "myTable" of database
> "myDatabase"
> end tell
>
> Note that this fails if you "tell" the table "myTable" to create the new
> record!
A table reference is probably the best way to do this but it is not
necessary.
If you do not use a table refernce then you must specify a layout, and the
fields you are trying to set must be on the layout. The original problem
probably occurred because of fields not being present on the layout.
--
Bruce Robertson
Concise Design
FileMaker 9 Certified
_______________________________________________
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/archives/applescript-users
This email sent to email@hidden