Page 1 of 1

Dynamic property value for a metadata

PostPosted:Fri Oct 01, 2010 4:38 pm
by joelafousse
Hi,

Does OpenKM support dynamic setting of node properties?

Example, can I have something like that in the CND:

[okg:technology] mixin
- okp:technology.type (string) = '' multiple autocreated <---- setDefaultValue()

Wich would mean that at "jrc node creation" the value of the property okp:technology.type would be set by setDefaultValue() method.

or an equivalent mechanisme.

What I want to do is to set automatically metadata of file at upload.

Example:
file name: java_marketing.txt
at upload, the value okp:technology.type is set to "java"


BR.

Re: Dynamic property value for a metadata

PostPosted:Fri Oct 01, 2010 6:41 pm
by jllort
With version 5 when you upload a file, can activate wizard, it demands to users metadata, keyword, etc... as a normal wizard

Re: Dynamic property value for a metadata

PostPosted:Fri Oct 01, 2010 7:32 pm
by joelafousse
Thanks 4 your response.

In my case, I am looking for something without the intervention of the user. The scenario would be the following:

1- User upload a file via a form that is handled by another application (a portlet or a servlet)
2- The application (portlet or servlet) handle the form, get the file and upload id in openKM .

For step 2), the faster solution to implement is a webdav mount + setting dynamically properties. At upload, metadata properties would have a default value that depends on the file name and the nomenclature.

The second solution is to use webservices API of openKM but I would rather avoiding this solution.

Re: Dynamic property value for a metadata

PostPosted:Sun Oct 03, 2010 10:11 am
by jllort
We've been thinking on it. Some special xml document ( for example .okm extension ) that really is not uploaded to OpenKM is only processed. But that's not yet implemented. This solution is useful for OCR scanning metadata straction and other interesting scenarios