Page 1 of 1

PropertyGroup type multiple not working

PostPosted:Mon Mar 21, 2011 9:21 am
by loolik
Hi, OpenKM Team!
I have Ubuntu 11.04 Natty, OpenKM 5.0.2 and intranet connection users.
I upload file and add property group to him.
One of property have type "multiply" and list of options. I put some values to this property, apply changes and see in frame normally result. But after update page my multiply value leaves only first parameter.
What is my mistake?

Re: PropertyGroup type multiple not working

PostPosted:Tue Mar 22, 2011 1:02 pm
by jllort
Put here your cnd and xml propertygroup files.

And two screenshots captures. While editing and after.

Re: PropertyGroup type multiple not working

PostPosted:Wed Mar 23, 2011 6:28 am
by loolik
Thanks for help!
This PropertyGroups.cnd
Code: Select all
<okm = 'http://www.openkm.org/1.0'>
<okg = 'http://www.openkm.org/group/1.0'>
<okp = 'http://www.openkm.org/group/property/1.0'>

[okg:draw] mixin
- okp:draw.numobject (string) = '' autocreated
- okp:draw.nameobject (string) = '' autocreated
- okp:draw.namebuild (string) = '' autocreated
- okp:draw.namedraw (string) = '' autocreated
- okp:draw.gip (string) = '' autocreated
- okp:draw.group (string) = '' multiple autocreated


Before string @- okp:draw.group (string) = '' multiple autocreated@ be @- okp:draw.group (string) = '' autocreated@, but it is better not to become.

This PropertyGroups.xml
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE property-groups PUBLIC "-//OpenKM//DTD Property Groups 1.1//EN"
                                 "file:///opt/openKM/property-groups-1.1.dtd">
<property-groups>
  <property-group label="Чертеж" name="okg:draw">
    <input label="Номер объекта" name="okp:draw.numobject" />
    <textarea label="Объект строительства" name="okp:draw.nameobject" />
    <textarea label="Наименование здания" name="okp:draw.namebuild" />
    <textarea label="Название чертежа" name="okp:draw.namedraw" />
    <select label="ГИП" name="okp:draw.gip" type="simple"> 
       <option label="Ботова Г.Б." value="Ботова"/>
       <option label="Кретова Н.К." value="Кретова"/>
       <option label="Чернецова Н.А." value="Чернецова"/>
       <option label="Брюховецкая А.И." value="Брюховецкая"/>
       <option label="Гриднева А.Н." value="Гриндева"/>
    </select>
    <select label="Группа" name="okp:draw.group" type="multiple"> 
       <option label="ГИП" value="200"/>
       <option label="301 Виноградов А.В." value="301"/>
       <option label="303 Красильникова О.В." value="303"/>
       <option label="304 Ляпина Н.Н." value="304"/>
       <option label="400 Порошин В.М." value="400"/>
       <option label="401 Волостных Т.И." value="401"/>
       <option label="402 Новичихина Г.Е." value="402"/>
       <option label="403 Мезенцева Е.И." value="403"/>
       <option label="404 Пучнина О.Н." value="404"/>
       <option label="408 Магомедова Т.Н." value="408"/>
       <option label="409 Авдеева Н.Б." value="409"/>
       <option label="410 Щедрина Т.А." value="410"/>
       <option label="413 Корвякова Л.А." value="413"/>
       <option label="414 Дмитриева В.Ю." value="414"/>
       <option label="415 Горбаченко Р.Н." value="4151"/>
       <option label="415 Зацепина В.М." value="4152"/>
       <option label="415 Глинская Е.В." value="4153"/>
       <option label="416 Шаталова В.П." value="416"/>
       <option label="417 Трубникова Н.И." value="417"/>
       <option label="500 Андреева И.Г." value="500"/>
       <option label="501 Бахаева С.В." value="501"/>
       <option label="502 Гулевская О.З." value="502"/>
       <option label="503 Проняев Р.В." value="5031"/>
       <option label="503 Белокопытов В.В." value="5032"/>
       <option label="504 Понамарева Н.Н." value="5041"/>
       <option label="505 Ауде В.В." value="5051"/>
       <option label="505 Дедюхин О.В." value="5052"/>
       <option label="509 Рекис В.К." value="509"/>
       <option label="510 Баток М.В." value="510"/>
       <option label="511 Бондаренко М.А." value="511"/>
       <option label="512 Бондаренко И.Н." value="512"/>
       <option label="513 Батракова Н.В." value="513"/>
       <option label="515 Кондратьева О.В." value="515"/>
       <option label="516 Севостьянова Н.Н." value="516"/>
       <option label="517 Кузьмина О.Н." value="517"/>
       <option label="518 Шаромова А.Ю." value="518"/>
       <option label="519 Романькова Л.П." value="519"/>
    </select>
  </property-group>
</property-groups>

This screen before updating
This screen before updating
This screen before updating
Img01.JPG (22.52 KiB) Viewed 23437 times
This screen after updating
This screen after updating
This screen after updating
Img02.JPG (19.97 KiB) Viewed 23437 times

Re: PropertyGroup type multiple not working

PostPosted:Wed Mar 23, 2011 3:51 pm
by jllort
Could be some UI problem. Could you try navigate across repository ( administration tab http://wiki.openkm.com/index.php/Repository_view ) and take a look which properties have.
Capture a screenshot while you're editing.
With your captures I must understand than you've added a new property and might appearing tree no ?

Re: PropertyGroup type multiple not working

PostPosted:Thu Mar 24, 2011 7:43 am
by loolik
Sorry, but i not understand, how tree of "Repository View" and how moment of editing properties i need capture.
ROOT/okm:root
ROOT/okm:root
RepView01.JPG (148.32 KiB) Viewed 23428 times
ROOT/jcr:system
ROOT/jcr:system
RepView02.JPG (66.15 KiB) Viewed 23428 times
ROOT/okm:config
ROOT/okm:config
RepView03.JPG (61.69 KiB) Viewed 23428 times

Re: PropertyGroup type multiple not working

PostPosted:Thu Mar 24, 2011 11:30 am
by jllort
navigate across okm:root / folder etc... then select document ( always on list at bottom ). When you're into the document you'll see metadata properties values

Re: PropertyGroup type multiple not working

PostPosted:Thu Mar 24, 2011 3:29 pm
by loolik
Hi,
i make 3 screenshot on two monitors (left monitor for add property, right - for admin panel). Files too large for "clear" insert to reply, they had to be archived.
File without property
(177.46 KiB) Downloaded 968 times
Add property and change some parameters
(188.14 KiB) Downloaded 777 times
Push the button "Update" in property tab, and push on the file in right area
(193.24 KiB) Downloaded 750 times

Re: PropertyGroup type multiple not working

PostPosted:Fri Mar 25, 2011 1:27 pm
by jllort
Althought in screen appears the 5 properties seems in repository is only saved the 417. When you refreshing the UI ( refresh button ) it's only one property no ?

Re: PropertyGroup type multiple not working

PostPosted:Sun Mar 27, 2011 4:13 pm
by loolik
Yes, five properties are selected, but multiple function not working.

Re: PropertyGroup type multiple not working

PostPosted:Mon Mar 28, 2011 7:36 am
by jllort
I've added the possible bug at http://issues.openkm.com/view.php?id=1584

Could you post the PropertyGroups.* here for testing purpose?

Re: PropertyGroup type multiple not working

PostPosted:Mon Mar 28, 2011 9:35 am
by loolik
Thanks for your help. I have attached files to the link. Hope, it has the decision.