AnsweredAssumed Answered

attribute on association ? +detecting new assoc. element ?

Question asked by jbaton on Feb 21, 2008
Latest reply on Mar 11, 2008 by jbaton
Hi all,

My goal was to have an information tied to an association between two (custom type) documents.

Unfortunately, according to the xsd, the model does not allow that.

So as a workaround, I thought of adding a new assoc. (NA) to my type.
NA would contains objects of another custom type containing my additionnal info and what's necessary to identify my documents.

An object being automatically added to NA by using a custom behaviour (well, that's the idea)

BUT  :? , (Question 1) what policy should I use to detect that a new element has been added to my (main) association ?

At this time, I identified onUpdateNode.
The problem being that this "event" is … fired often.

Question 2 : if I have to use onUpdateNode, what can I use to discriminate the "add new element to association" -kind of update.

Other ideas of workarounds for the "info. on association" feature are welcome.

Thank you in advance for your help on this tricky point.