Re: Need help from a Filemaker Ninja...
Re: Need help from a Filemaker Ninja...
- Subject: Re: Need help from a Filemaker Ninja...
- From: "Gary (Lists)" <email@hidden>
- Date: Fri, 09 Sep 2005 11:59:21 -0400
"Bernardo Hoehl" wrote:
> I am trying to set the content of a repeatition of a cell.
>
> But I can't controll which repetition I am addressing... It allways inserts
> the value in the first repetition of the cell!
>
> I am using Filemaker 6...
Bernardo,
Repeating fields in FM6 will return an AppleScript list when you 'get' the
contents.
Conversely, when you 'set' the value, you must provide a list (of the same
size).
In practice, the way to alter those field values is to:
a) get the repeating field's value (all items) to an AS list var
b) alter the AS list item of interest
c) set the repeating field's value to the newly modified AS list
So, for example:
tell app "FileMaker Pro"
set repList to cell "My Repeating Field" of current record
--> {"a","b","c","d"}
set item 3 of repList to "z" -- change the list, in place
set cell "My Repeating Field" of current record to repList
--> the FM field now shows:
-- a
-- b
-- z
-- d
end tell
There are some other possible approaches, but it is my experience that this
is the most straight-forward, flexible method.
--
Gary
++++ [OT] ++++
Bernardo,
On a totally off-topic matter, a mentor and colleague of mine in Rio,
Augusto Boal, has a hearing next week with the Ministry of Justice regarding
his retirement (a 9 year struggle at this point.)
You probably know Augusto Boal, and also that he is in his mid-70's.
His 3 years as an elected legislator in Rio have not quite made up for his
years as an activist or for his 'dissident' status in the past.
Augusto Boal has made significant social and academic contributions to both
the arts world and to issues of social justice, particularly regarding
poverty and literacy, both inside and outside Brazil.
I humbly ask that if you could only tell one other person about the matter,
or if you have any means to spread the word in Rio, or to contact any rights
groups there, or to take any action at all, the meeting is next week.
The the Ministry of Justice email is <email@hidden>
The hearing officer is Dr. Marcelo Lavenere.
Thanks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden