CMDBuild Forum

Default value for hidden attribute

Good morning.

Which is best practice to manage default value for hidden attributes?

I think to create a trigger that for every insert or update (before insert or before update) set attribute to a specific value. This is a solution but I must create this trigger for every table that manages hidden attributes.

Then, I think to create this trigger for table "Class" but doesn't work (probably CMDBuild before inserts record on table question and after on table Class).

Are there other solutions?

Thanks.

Currently that is the right solution.
But in the roadmap (version 2.5):
    http://www.cmdbuild.org/en/progetto/roadmap
are planned specific implementations to manage the default values.
CMDBuild Team

Ok thanks.
 
Previously Tecnoteca wrote:
Currently that is the right solution.
But in the roadmap (version 2.5):
    http://www.cmdbuild.org/en/progetto/roadmap
are planned specific implementations to manage the default values.
CMDBuild Team