cancel
Showing results for 
Search instead for 
Did you mean: 

[Solved]Dynamic creation of properties?

lamba
Champ on-the-rise
Champ on-the-rise
Hello,

I want to add a news properties to a content under Alfresco, but without attributing him a custom type or associating him an aspect.
My question: is it possible to do this dynamically with Java API, without having constraint on the number/type of properties to be added :?:

Thank you in advance.
3 REPLIES 3

lamba
Champ on-the-rise
Champ on-the-rise
Solved Smiley Happy

I used
nodeService.setProperty(content, QName.createQName("fake", "junk"), "dummy");

where "fake:junk" is the property that I want to create
and "dummy" it's value.

unknown-user
Champ on-the-rise
Champ on-the-rise
Hi,

I am also having a similar requirement.

Were you able to perform a search on that dynamic property that you added?

Thanks

lamba
Champ on-the-rise
Champ on-the-rise
Hi jjacob,

In fact, No. Because it is necessary to add them in the file "web-client-config.xml" to view them in the "advanced shearch" page.
But, we can see them under the Node Browser.