[Solved]Dynamic creation of properties?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2010 06:08 AM
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.
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.
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2010 06:07 AM
Solved 
I used
where "fake:junk" is the property that I want to create
and "dummy" it's value.

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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2010 07:20 PM
Hi,
I am also having a similar requirement.
Were you able to perform a search on that dynamic property that you added?
Thanks
I am also having a similar requirement.
Were you able to perform a search on that dynamic property that you added?
Thanks
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2010 10:16 AM
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.
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.
