• Dynamic property value for a metadata

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #6649  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.
 #6654  by jllort
 
With version 5 when you upload a file, can activate wizard, it demands to users metadata, keyword, etc... as a normal wizard
 #6657  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.
 #6661  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

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.