Re: Fill wirh a script



On Tue, 2007-10-16 at 15:15 +0200, Federico Munerotto wrote:
When I write 
return record["comments"]
and press the "test" button I got "The result of the calculation is
Example"
while
return record.related["marche"]["comments"]
and press the "test" button I got "The result of the calculation is
NULL"

In the table "marche" there is the field "comments".

But does your current table (probably not called "marche") have a
_relationship_ called "marche"?

When you have made this work, I'd welcome some suggestions for making
this more obvious.

Actually you was right the relationship wasn't called "marche" I correct
it but no way.

I give up: I send the glom file and ER dia diagram and hope you can
understand.

In what table are you trying to create the field?

In the table r_produce.

I seem to have the same problem here. I am investigating.

Note, however, that if your calculation is really this simple, it's
easier just to add the related field directly to the layout without
adding a new field to the table. You can choose the relationship at the
top of the dialog when you add a field to the layout.

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]