Unique name
From OpenKM Documentation
Revision as of 12:33, 2 May 2013 by Jllort (talk | contribs) (Created page with 'The script generates unique document name based in metadata values each time new document is uploaded. <source lang="xml"> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE prope…')
The script generates unique document name based in metadata values each time new document is uploaded.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE property-groups PUBLIC "-//OpenKM//DTD Property Groups 2.1//EN"
"http://www.openkm.com/dtd/property-groups-2.1.dtd">
<property-groups>
<property-group label="Datos" name="okg:data">
<input label="Id" type="text" name="okp:data.id" width="200px" readonly="true"/>
<input label="Código proyecto" type="text" name="okp:data.codigo.proyecto" width="200px">
<validator type="req"/>
<validator type="num"/>
<validator type="maxlen" parameter="6"/>
<validator type="minlen" parameter="6"/>
</input>
<select label="Cliente" name="okp:data.cliente" type="simple"
table="clientes"
optionsQuery="select $cli_id, $cli_nombre from DatabaseMetadataValue dmv where dmv.table='clientes'">
<validator type="req"/>
</select>
<input label="Descripción" type="text" name="okp:data.description" width="200px">
<validator type="req"/>
<validator type="maxlen" parameter="150"/>
</input>
</property-group>
</property-groups>