Difference between revisions of "Unique name"

From OpenKM Documentation
Jump to: navigation, search
(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…')
(No difference)

Revision as of 12:33, 2 May 2013

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>