AnsweredAssumed Answered

Automatic property

Question asked by mike38 on Jun 10, 2016
Latest reply on Jun 12, 2016 by mike38

I would like to define an "automatic" property, that is a property which is automatically valued at the creation of the object, for example by calling some webscript. One example would be an identifier managed by the system.

I want to put this property in an aspect, and when an object whose type references this aspect is created, or when the aspect is added to the object, a value is fetched and set to the property, which would be read-only if possible. It is some kind of "dynamic" default value, a default value which is not hard-coded in the model but obtained through the webscript.

I know how to implement the webscript, what I don't understand is how to use the webscript to automatically fill the property.

It would also be better, I think, if this could be achieved on the repository side.

How can I do that ?

Thank you.