• possible property groups UI bug

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
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.
 #2430  by ribizli
 
Dear OpenKM Support,

We\'ve found a candidate for an issue about property groups.

We defined a property group with a select list property. Let\'s say the values were \'a\', \'b\', \'c\' and \'d\'. We applied for instance \'a\' for a given document.

Later we\'ve changed the values in the properties to \'b\', \'c\', \'d\' and \'e\'. (\'a\' was deleted from the list). Our expectation was, that the document keeps the value \'a\', but it isn\'t possible to select \'a\' anymore (For this reason we kept the translation in the PropertyGroupBundle.properties).

It is true, that the \'a\' property was still on the document (as proved with the advanced admin search for okg), but on the UI it wasn\'t visible. It will be visible again if you click \'Update\' than \'Cancel\'. But after making a refresh (by clicking the \'Refresh\' button), it disappears again. You can than click \'Update\' and \'Cancel\' again to get it back, and so on. So it seems to be an UI bug, not a repository one.

Here is a small screencast about:
http://www.youtube.com/watch?v=pCfEJUpTJ7Q

A second issue: it seems that multiple selects don\'t work. If you add more items to a property, it won\'t be saved permanently. After making a refresh, only the first item remains attached. There will be only the first value shown in the \'advanced admin search\' too.

Regards.
 #2442  by pavila
 
Do you mean that have changed the Property Group definition? Please, post a sample property group definition (the three files) to reproduce the issue.
 #2444  by ribizli
 
Hi pavila,

I did, the following steps:
  1. Installed ri_groups.cnd
  2. Property group attached to a document
  3. Property NWU set to Hungary for this document
  4. PropertyGroupValues.properties replaced with PropertyGroupValues_changed.properties
  5. Reimport ri_groups.cnd
That means Hungary was removed from the selectable values (but kept in PropertyGroupBundle.properties), but it was still set for the document.

The next step you can see on the screencast linked above.

Regards. [file name=groups.zip size=1509]http://www.openkm.com/images/fbfiles/files/groups.zip[/file]
 #2456  by pavila
 
If you don\'t modify ri_groups.cns you don\'t have to re-import it. I see you have removed the \"nwu.rbhu\" property in PropertyGroupValues_changed.properties, isn\'t it? The list shown in OpenKM is contructed by the values stored in PropertyGroupValues.properties. If you remove a value from this list, the value won\'t be shown.
 #2458  by jllort
 
I\'ve been testing your issues with your properties files:

1- About refreshing issue, I\'ve could not reproduce it, for me refreshing goes well ( not needed to simulate update to appearing property ). I\'ve tested on actual OpenKM community and enterprise edition ( could be some difference between cvs and stable release ).

2- If you remove a property it\'ll not appearing when you change the property on select value list. But you\'ll continue setting this property to document if not changes ( for history reasons ). Really removing a property not means removing from document relation, it\'s only removing from possible selecting values.

3- About select multiple it runs well too. Sometimes I\'ve observed some strange visualization when you\'ve got 2 items selects ( since third not appearing values ) -> but it\'s a rare problem and internal to GWT not possible to correct by us.

Try replacing OpenKM.ear for this:
http://rapidshare.com/files/215365026/OpenKM.ear.html
 #2469  by ribizli
 
Hi jilort,

for reproducing the \'refreshing issue\' it is also needed to get into the situation, where you have added a group with a specific value to a document and removed the value from the PropertyGroupValues.properties. So try to test the 1- and 2- points together.

I\'ll try your newer EAR, but I need more time. I\'m especially curious about the 3- point, because I definitely can produce it with a clean download too.


Regards.
 #2472  by ribizli
 
Hi,

I\'ve tried to test your EAR, but the Administration tab is not visible. But I still was able to test the multiple select issue, and it still exists.

I simple added two values to the property. Than I navigated away from the file, than back, and only the first value was set for the property. (The refresh simulates the same away-back procedure).

Have you change some role names, because of the admin tab is not visible?
 #2476  by jllort
 
Upss we\'ve changed user admin to okmAdmin, sorry.

I\'ve been testing your case with same sequence and I can reproduce it.

When I select a two or three values from multiple select it continues mantaining it.

Other question is your query on administration, there you only see one value, but it\'s a query problem ( really are assigned like you can see on UI).
 #2481  by ribizli
 
Thanks, okmAdmin works fine.

But, the \'removed value not visible\' issue is still there.

Again the steps:
1 - select a value into the property of the document
2 - stop the server and remove this value from the list in PropertyGroupValues.properties; restart the server
2 alternative - without server restart: it is possible to reload the .cnd file
3 - navigate to the file, and see that the selected value not visible
4 - click \'Change\', the property seems to be empty
5 - click \'Cancel\'
6 - Voila! The property value is now visible
7 - click \'Change\' again, you can now see it on the edit form too
8 - navigate away and back to the document, the value disappears again (alternative click the OpenKM-Refresh button.)

For the multiple selection issue, please see my attachments.

Thanks. [file name=multiple_select.zip size=45100]http://www.openkm.com/images/fbfiles/fi ... select.zip[/file]
 #2506  by ribizli
 
Hi jllort,

I\'ve found my mistake about the multiple select issue:

In the .cnd file, for properties with multiple values the \'multiple\' keyword is required. This word I forgot.
Code: Select all
okp:test.abc (string) = \'\' multiple autocreated
Sorry bothering you with this. But please still investigate the original main issue.

Thanks in advance.
 #2507  by jllort
 
The problem with \"disappearing\" property continues to you ? not showed but still assigned to document. Confirm to me and I\'ll return to investigate, but I\'ll following the same sequence in your video and you typewrited and I can not reproduce it.

The selector is a multiple select ? or one selection posible from list ?
 #2508  by ribizli
 
Hi,

I\'ve retested it, and it seems that it happens only with multiple.

For instance:
  • before: A, C, D
  • removed C from configuration
  • shown: A, D after refresh
  • shown: A, D, C after update/cancel (order matters?)
I downloaded the HEAD version from your CVS, rebuilt and tested on that.

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.