Re: Pre-save actions for enterprise objects

2010-05-26 Thread Mark Wardle
On 26 May 2010 22:12, Mark Wardle wrote: > Excellent. Thank you. It makes searching a (fundamentally > hierarchical) nomenclature much easier if I can pre-optimise and cache > the calculated "IS-A" parent concepts at data entry time. Note to self: this is a horrible idea and will break horribly i

Re: Pre-save actions for enterprise objects

2010-05-26 Thread Mark Wardle
On 26 May 2010 22:03, Chuck Hill wrote: > On May 26, 2010, at 1:59 PM, Mark Wardle wrote: >> I'm using Wonder extensively and so have noted the willUpdate() hook >> provided. Can I include such code there? > > Yes.  That is called before saveChanges() starts.  Note that there is > guarantee that t

Re: Pre-save actions for enterprise objects

2010-05-26 Thread Chuck Hill
On May 26, 2010, at 1:59 PM, Mark Wardle wrote: Hi all, I would like to add a number of algorithmically calculated relations into a to-many relationship based upon the manually inserted relations that already exist in that relationship or in a different relationship (*). I can potentially main

Pre-save actions for enterprise objects

2010-05-26 Thread Mark Wardle
Hi all, I would like to add a number of algorithmically calculated relations into a to-many relationship based upon the manually inserted relations that already exist in that relationship or in a different relationship (*). I can potentially maintain a boolean flag so I know which were entered by