cancel
Showing results for 
Search instead for 
Did you mean: 

Activating a property type(metadata) based on other type

prateekgoyal
Champ in-the-making
Champ in-the-making
Hello All,

I was creating some custom content model and i felt with the need of activating any property based on the value of other property in that content model. For e.g. I have created "Letter" custom document type and in that created some custom properties like "Letter number" "Letter Date" "Mode" "Courier number". In this, Mode is LIST constraints which having the values as "Electronic" & "Physical" and my requirement is that, if the value of "Mode" selected by the user is "Physical" then the "Courier number"  property will be activated otherwise it remains deactivated.

Is it possible and if yes, then how can we do that?

Please reply,its urgent
Thanks,
3 REPLIES 3

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

Setting the value of one meta-data property based on the value of an another can be achieved by writing a custom behaviour.  The custom behaviour could be triggered when the property is changed and could then set the other property value accordingly.

Cheers,
Roy

prateekgoyal
Champ in-the-making
Champ in-the-making
Hi, can you give me one example for the same.

Thanks,

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

The Alfresco SDK (http://wiki.alfresco.com/wiki/Alfresco_SDK_3.3) has an example of developing a custom aspect and behaviours.

Cheers,
Roy