• repeated fields in templates

  • Problems with installing OpenKM? No problemo, the solution is closer than you think.
Problems with installing OpenKM? No problemo, the solution is closer than you think.
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.
 #19143  by rasha123
 
hi ,

im using openkm 5.1.10 and open office 3.2.1

i have created PDF templete in openoffice and assign it to a properety group.

i want to make reapeated fields with the form , for example i want to write the ame once and it will be filed in other places atumaticly in the form.
Untitled.png
Untitled.png (16.17 KiB) Viewed 3048 times
this is PROPERTY GROUP.CND
Code: Select all
[okg:PatientLable] mixin
- okp:PatientLable.name (string) = '' autocreated
- okp:PatientLable.number (string) = '' autocreated
- okp:PatientLable.bed (string) = '' autocreated
- okp:PatientLable.birth (string) = '' autocreated
- okp:PatientLable.admission (string) = '' autocreated
PROPERTY GROUP.XML
Code: Select all
<property-group label="Patient Labele" name="okg:PatientLable">
    <input label="Patient Name" name="okp:PatientLable.name"/>
    <input label="Hospital No" name="okp:PatientLable.number"/>
    <input label="Unit/Bed" name="okp:PatientLable.bed"/>
    <input label="Birth Date" name="okp:PatientLable.birth" type="date"/>
    <input label="Admission" name="okp:PatientLable.admission" type="date"/>
  </property-group>
thankss :)
 #19171  by jllort
 
Simply in your pdf your fiels should be like:
property group name -> okp:tpl.name
field name -> okp_tpl_name
field_value -> ${okp_tpl_name!}
 #19176  by rasha123
 
hi

thats what i did but in all the fields i wanted the name to be repeated in but it only appeare in the first one.
Untitled1.png
Untitled1.png (11.41 KiB) Viewed 3040 times
the rest are empty

what im missing ?
 #19213  by pavila
 
In PDF templates the name of the field need to be unique. If you want to repeat the same property value, try OpenOffice templates. See http://wiki.openkm.com/index.php/Creating_templates.

Edit: I have included a patch in OpenKM 6.2 Community and now you can set several form fields using a template expression.

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.