• Unable to create property group

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
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.
 #5665  by randomagenda
 
HI All,

I have been trying to create a property group which will allow me to select a 'document type' from drop down list I.E. Invoice, Proposal, FAQ, Quote etc

Anyway every time I try and upload the XML file I get the error message 'Missing = in namespace decl. (CustomNodes.cnd, line 1)'

What does this mean or rather what am I doing wrong? I have tried looking for a solution but can't find any information anywhere... I've tried changing the code but can't see what the problem is!

Can someone point me in the right direction please

Here is the code I'm using:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE property-groups PUBLIC "-//OpenKM//DTD Property Groups 1.0//EN"
                                 "http://www.openkm.com/dtd/property-groups-1.0.dtd">
<property-groups>
  <property-group label="Document" name="okg:document">
    <Select label="Doctype" name="okp:document.doctype" type="multiple">
	<option label="Invoice" value="okp:document.doctype.invoice"/>
	<option label="FAQ" value="okp:document.doctype.faq"/>
</select>
  </property-group>
</property-groups>
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:document] mixin
- okp:document.doctype (string) = '' multiple autocreated
- okp:document.doctype.invoice (string) = '' autocreated
- okp:document.doctype.faq (string) = '' autocreated

Any help would be greatly appreciated
 #5667  by blindrood
 
change cnd file to
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:document] mixin
- okp:document.doctype (string) = '' multiple autocreated
You should describe in cnd file only names of fields
options inside doctype are defined in xml

try to study examples provided with OpenKM 4.1
 #5668  by randomagenda
 
Thanks for your input, However this has made no difference to the error message... 'Missing = in namespace decl. (CustomNodes.cnd, line 1)'

My feeling is there is something referenced wrong in one of these, which is causing an error in CustomNodes.cnd file

Tried re-installing and still get the same error, anyone have any other ideas?

I can't seem to find much info about creating property groups, Can anyone point me towards some help guides other than what's in the documentation?
 #5669  by jllort
 
Do you have internet connection in this server ?

You can delete this two entries from .cnd you don't need ( are values )
Code: Select all
- okp:document.doctype.invoice (string) = '' autocreated
- okp:document.doctype.faq (string) = '' autocreated
 #5699  by randomagenda
 
OK hi all,

I have setup a new virtual machine and have installed OpenKM

Using this PropertyGroup.cnd file I have tried to add the new property group into the system;
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:document] mixin

- okp:document.doctype (string) = '' multiple autocreated
Now I get this error message:
Missing '[' delimiter for beginning of node type name (CustomNodes.cnd, line 1)


What am I doing wrong, can anyone make any sense of this.... I've been trying to add a simple property group into the system for over a week now and I;m still having trouble, and have gotten no further. I am currently using version 4.1 it is installed on a Windows XP Virtual machine running on VMWare.

Blindrood - Ihave used your files and tried to add them into my system and on adding the .xml file I get the following error (Missing '[' delimiter for beginning of node type name (CustomNodes.cnd, line 1))
 #5705  by pavila
 
Can you attach your PropertyGroups.cnd and PropertyGroups.xml files? Also, how do you register the property groups?
 #5752  by randomagenda
 
Hi,

I have attached the files used to add the property group into the system.

When adding property groups I am navigating to the administration section of OpenKM then going to the 'Property groups section' then under 'Register property group' I am inserting the path of the files into the 'Property Group definition path' field, starting first with the .cnd file, and then the xml file. Is this correct?
(660 Bytes) Downloaded 313 times
 #5758  by randomagenda
 
Hi sorry must have deleted it by mistake, this is not the problem.

I have just put the missing </select>tag in and still have the same issue... please see updated zip file below
(543 Bytes) Downloaded 349 times

Same error code:
Missing = in namespace decl. (CustomNodes.cnd, line 1)
 #5836  by randomagenda
 
Still having trouble inserting the property groups correctly;

Just wanted to know if there was any limitations on using windows to run the system rather than linux and are there any know issues with VMware or virtual machines?

Also are there any modifications needed to get the options tag to work for property groups?

Oh and one more, when inserting the property groups should the files be placed in a specific place?
 #5846  by jllort
 
Until today I can not testing. It's a stupid proble write first <select all lowercase not <Select as you've written

Seems our internal code is case sensitive in this case.
 #5859  by missg
 
Hi,
I have a problem to register new property group. I got this error:
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}perijinan, mixinFlagDiff=NONE, supertypesDiff=NONE, propertyDifferences=[ org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... an.comment, type=MAJOR, operation=REMOVED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... n.language, type=MAJOR, operation=REMOVED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... escription, type=MAJOR, operation=REMOVED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... .deskripsi, type=TRIVIAL, operation=ADDED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... badanusaha, type=TRIVIAL, operation=ADDED], org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff$PropDefDiff[itemName={http://www.openkm.org/group/property/1. ... n.nomorrak, type=TRIVIAL, operation=ADDED] ], childNodeDifferences=[ ] ]

and I attached my cnd and xml files. I am not familiar with jackrabbit, so please anybody help. Thank you.
Attachments
(893 Bytes) Downloaded 280 times

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.