• Problem with Select element

  • 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.
 #42074  by khpavel
 
Hello,
please help me in following problem.

I created property group with one element:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE property-groups PUBLIC "-//OpenKM//DTD Property Groups 2.3//EN"
    "http://www.openkm.com/dtd/property-groups-2.3.dtd">
<property-groups>
  <property-group label="multilist" name="okg:multilist">
    <select label="multilist" name="okp:multilist.multilist"   type="multiple" table="multilist"  
            optionsQuery="select $ID, $name from DatabaseMetadataValue dmv where dmv.table='multilist'">
    </select>
    </property-group>
</property-groups>

table "multilist" previously created with the following query
Code: Select all
INSERT INTO OKM_DB_METADATA_TYPE (DMT_TABLE, DMT_REAL_COLUMN, DMT_TYPE, DMT_VIRTUAL_COLUMN) VALUES ('multilist', 'col00', 'text', 'ID');
INSERT INTO OKM_DB_METADATA_TYPE (DMT_TABLE, DMT_REAL_COLUMN, DMT_TYPE, DMT_VIRTUAL_COLUMN) VALUES ('multilist', 'col01', 'text', 'name');
there are some values in OKM_DB_METADATA_VALUE:
Code: Select all
DMV_ID	DMV_COL00	DMV_COL01 ...	     DMV_TABLE
5		002			Value2			multilist
6		001			Value1			multilist
I tryed to add property group to document. But no form element is shown in form.
Screenshot_1.png
Screenshot_1.png (4.82 KiB) Viewed 2257 times
What do I do wrong?
 #42087  by jllort
 
I suggest change column names:
id -> mul_id
name -> mul_name

The xml definition seems right. Check OKM_DB_METADATA_TYPE table values are correctly registered.

Is shown some error in catalina.log file ?

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.