Property Groups!
PostPosted:Thu Sep 27, 2012 1:27 pm
Hi, I seem to be struggling with property groups in a big way. I created a basic property group when I first installed openKM, (v5.1.11 Community). I now would like to modify it and add so it but it simply refuses. I have read the instructions that state that once its there its there but the instructions imply that you can still change things after you have created them. I have tried simply adding the new field (in the case a select) to the current group with no joy. I have also tried to add a new group to the .cnd file in addiotin ot the old one which seems to not allow change and that doesnt work either. Is there a trick to this that I am missing?
If I try re-read the PropertyGroup.cnd file after I start OpenKM I get the following error
Application error
any advice would be appreciated. At this point its looking like I need to start a fresh repo which I am very loathed to do. I am a long way into a project now.
my cnd and xml files look lke the following (the okg:lawsofkenyaeditorial is now the new group I am trying to create just so I can add a select to the group but like I siad, I had no joy just adding the select to the original group either)
Paul
If I try re-read the PropertyGroup.cnd file after I start OpenKM I get the following error
Application error
Code: Select all
I get that error regardless of whether there was a change to my cnd and xml files or not actually. Class: javax.jcr.RepositoryException
Message: The following nodetype change contains non-trivial changes.Up until now only trivial changes are supported. (see javadoc for org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff): org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff[ nodeTypeName={http://www.openkm.org/group/1.0}lawsofkenya, mixinFlagDiff=NONE, supertypesDiff=NONE, propertyDifferences=[ org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1.0}lawsofkenya.welcome, type=MAJOR, operation=REMOVED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1.0}lawsofkenya.ascensiondate, type=NONE, operation=NONE], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1.0}lawsofkenya.actname, type=NONE, operation=NONE], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1.0}lawsofkenya.comment, type=NONE, operation=NONE] ], childNodeDifferences=[ ] ]any advice would be appreciated. At this point its looking like I need to start a fresh repo which I am very loathed to do. I am a long way into a project now.
my cnd and xml files look lke the following (the okg:lawsofkenyaeditorial is now the new group I am trying to create just so I can add a select to the group but like I siad, I had no joy just adding the select to the original group either)
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:lawsofkenya] mixin
- okp:lawsofkenya.actname (string) = '' autocreated
- okp:lawsofkenya.ascensiondate (string) = '' autocreated
- okp:lawsofkenya.comment (string) = '' autocreated
[okg:lawsofkenyaeditorial] mixin
- okp:lawsofkenyaeditorial.actname (string) = '' autocreated
- okp:lawsofkenyaeditorial.assentdate (string) = '' autocreated
- okp:lawsofkenyaeditorial.comment (string) = '' autocreated
- okp:lawsofkenyaeditorial.wfstate (string) = '' autocreated
Code: Select all
thanks<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE property-groups PUBLIC "-//OpenKM//DTD Property Groups 2.0//EN"
"http://www.openkm.com/dtd/property-groups-2.0.dtd">
<property-groups>
<property-group label="Laws of Kenya" name="okg:lawsofkenya">
<input label="Act Name" type="text" name="okp:lawsofkenya.actname"/>
<input label="Ascension Date" type="date" name="okp:lawsofkenya.ascensiondate" />
<textarea label="Comment" name="okp:lawsofkenya.comment"/>
</property-group>
<property-group label="Laws of Kenya Editorial" name="okg:lawsofkenyaeditorial">
<input label="Act Name" type="text" name="okp:lawsofkenyaeditorial.actname" readonly="true"/>
<input label="Assent Date" type="date" name="okp:lawsofkenyaeditorial.assentdate" readonly="true"/>
<textarea label="Comment" name="okp:lawsofkenyaeditorial.comment"/>
<select label="Editorial Process State" type="simple" name="okp:lawsofkenyaeditorial.wfstate">
<option label="1" value="one" selected="true"/>
<option label="2" value="two"/>
<option label="3" value="three"/>
</select>
</property-group>
</property-groups>
Paul