Page 1 of 1

property group design

PostPosted:Tue Nov 13, 2012 12:57 pm
by rasha123
hi,

im using openkm 5.1.10

is the a way to control the apperance of property group to be as a table?
i have a lot of field andit will be along list thats way i want to organize it as table?
property.png
property.png (5.75 KiB) Viewed 1756 times
so it can appear like this, assumind there is no repeating data.
property.png
property.png (8.89 KiB) Viewed 1755 times
this is my property .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>
property.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
thanks

Re: property group design

PostPosted:Wed Nov 14, 2012 7:53 pm
by jllort
This layout distribution is not implemented. You should create your own metadata renderer.

Actual layout ( lineal table ) is used for show data and edit at same time, your propose is to set some layout and assign xml value at some layout position. Now there's a FormManager that control the rendering ( view / edit ) could be implemented class Layout with contains several FormManager distribution ( that will be possible solution ).

In other hand you could have actual panel to edit and other extra panel to show all your metadata values in other format I'm talking about new tabdocument with your own implementation. http://wiki.openkm.com/index.php/Widget_library

In boths cases is needed make some source changes.