Insert into custom metadata when inserting file(help)

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2010 05:21 AM
Hi,
I am working on alfresco 3.2.x. I am new to it. I have created custom metadata and it is shown successfully when I view details of file. Now I want the custom metadata which I have created to be filled when I am inserting a document. I don't have any clue regarding that. Please tell me how to make it happen. Thanks in advance.
I am working on alfresco 3.2.x. I am new to it. I have created custom metadata and it is shown successfully when I view details of file. Now I want the custom metadata which I have created to be filled when I am inserting a document. I don't have any clue regarding that. Please tell me how to make it happen. Thanks in advance.
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2010 11:12 AM
Hi,
your post is a few months old. but i see that you have no reply for your requirement.
Solution:
After deploying your custm content model successfull, you should implement a custom Action class (see SDK example CustomAction). In the executeImpl(Action action, NodeRef actionedUponNodeRef) call nodeService.setProperty(actionedUponNodeRef, qnme, value), where qname is the quallified name of your custom property. then define a composite rule (in Web explorer) for the folder in question, the rule must be as follows:
-when document comes specialize type(with condition such as based on mimetype)
-when document comes run custom action that you implements previosly.
ihope it helps.
your post is a few months old. but i see that you have no reply for your requirement.
Solution:
After deploying your custm content model successfull, you should implement a custom Action class (see SDK example CustomAction). In the executeImpl(Action action, NodeRef actionedUponNodeRef) call nodeService.setProperty(actionedUponNodeRef, qnme, value), where qname is the quallified name of your custom property. then define a composite rule (in Web explorer) for the folder in question, the rule must be as follows:
-when document comes specialize type(with condition such as based on mimetype)
-when document comes run custom action that you implements previosly.
ihope it helps.
