*** ayers has joined #gnuenterprise *** reinhard has joined #gnuenterprise good morning reinhard: good morning! :-) I've got my application partially running. But I have a few questions/issues. shoot :) OK.. first off... I have a "Customer" I have a "Mailing" that refers to a "Customer" In the layout file of the customer I have a search position for tha customers 'code'. When I edit a mailing I therefor have a lookup for customer code to assign the customer... everthing is fine. ok But now I have a mailingentry (mailing to mailing entry is a to many relationship) The Mailing also has a 'code' but I also want to add the customer 'code' as search field for the mailing entry. I can add the "customer" field, but that lookup will show me the internal gnue_id. (i.e. I can add the 'customer' search field to the 'mailing' layout.) So I suppose I need to actually add a 'customercode' field to the mailing that gets syncronized with the 'customer' attribute. mailingentry : mailing is 1:n ? no mailingentry : mailing = n:1 ? the later, yes and mailing : customer = n:1, too? ACK ok, I see I think I'd have to take a closer look at this I can send you the code... if you like? I think that would help thank thanks sure it's on its way... I'll see if I can setup a svn repository for it... the active folders are ./etc ./classes ./layouts ./processes the ./barcode is an unrelated tool... ./form just conains experiments and ./schema was an attempt to load data into the tables defined by classes (but haven't got it to work yet) oka y will look at it later Thanks! *** johannesV has joined #gnuenterprise *** btami has joined #gnuenterprise *** snigelgr has quit IRC *** johannesV_ has joined #gnuenterprise *** johannesV has quit IRC how can one traverse realtionships (i.e. attributes referencing other classes) in OnChange code? I'm trying something like:   if propertyName == 'ADM_customer':  self.customercode = newValue.code  ]]>  where I thought newValue would contain the object... but it seems to be a unicode string. I think you might need something like mycustomer = find('ADM_customer', conditions={'gnue_id': newValue})[0] to find the object or rather mycustomer = session.get('ADM_customer', newValue) This may do the trick... but now I've got an acception because the code is trying to modify read-only attribute. I thought read-only would only apply to the UI and not to code... Let my try to change that for now... let me add that I consider it very unlikely that you really end up needing a redundant customer id in that class OK... :-) but of course a learning effect is there when trying how it *would* be done if you needed it :) Well I will need it later anyway for presetting values. But actually I'd like them to be preset immdieatly (as in form like triggers) rather than on commit. But I suppose I would need a read form (as opposed to a .gld) to do that. you mean preset for new records? you would do that in OnInit Well preset depending on assigned values ie: Customers define prefered character sets. so when I create a new mailing and I assign the customer the character set of the mailing should be set to the same value as the customer. s/customer./customer's./ During OnInit the customer hasn't been set naturally so I can't determine the character set for the mail at that time. To work around that, I could create three attributes: 1st: a calculated attribute from the customer's character set 2nd: a real property for the mailing's characterset which will remain empty by default 3rd: