cancel
Showing results for 
Search instead for 
Did you mean: 

Assign a value to a custom metadata with JS

avogadro
Champ in-the-making
Champ in-the-making
Hi,

I am using Alfresco 3.2 RM on windows OS
I have created one new custom metadata for a category folder from the management console
I have assigned avalue to the metadata with a rule in Alfresco using JavaScript
the value of the metadata is assigned but on Share the value is empty

Thanks for your reply.

Yassine
2 REPLIES 2

jonash
Champ in-the-making
Champ in-the-making
Hi,

Can you post the JS code you use to set the metadata?
Remember to call the .save() method on the node after setting metadata, else the changes will not be saved.

Jonas

avogadro
Champ in-the-making
Champ in-the-making
Hi,

Thanks for your response, this is the code i used:
TEST.properties["Boite"]="Fermee";
TEST.save();

Thanks