Re: Pre-save actions for enterprise objects
Re: Pre-save actions for enterprise objects
- Subject: Re: Pre-save actions for enterprise objects
- From: Chuck Hill <email@hidden>
- Date: Wed, 26 May 2010 14:03:36 -0700
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 maintain a boolean flag so I know which were
entered by users and which have been added algorithmically if I'm
using the same relationship.
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 the saveChanges() following this will succeed, there
could be a validation or database exception.
Chuck
Many thanks,
Mark
(*) : For example, if a user chooses "Multiple sclerosis (disorder)
(24700007)" then I wish to automatically add "Demyelinating disease of
central nervous system (disorder)" and "Disorder of nervous system
(disorder)". I obviously can algorithmically determine these related
IS-A concepts based upon the SNOMED CT hierarchy....
--
Dr. Mark Wardle
Specialist registrar, Neurology
Cardiff, UK
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden