I am very new to many aspects of this platform, so I appreciate your patience.
I am trying to create a group property and would like it to include a "selectbox" to choose a project number from a database of allowable numbers. I excecuted the following in Database Query under administration:
I then created the following property group:
However, when I select the icon, I get a totally blank list and can't put an entry in the box.
I can't see what I'm doing wrong...can anybody help me out here?
I am trying to create a group property and would like it to include a "selectbox" to choose a project number from a database of allowable numbers. I excecuted the following in Database Query under administration:
Code: Select all
Then to populate the table (yes the description is blank for now):DELETE FROM OKM_DB_METADATA_TYPE WHERE DMT_TABLE='project';
INSERT INTO OKM_DB_METADATA_TYPE (DMT_TABLE, DMT_REAL_COLUMN, DMT_TYPE, DMT_VIRTUAL_COLUMN) VALUES ('project', 'col00', 'text', 'project_id');
INSERT INTO OKM_DB_METADATA_TYPE (DMT_TABLE, DMT_REAL_COLUMN, DMT_TYPE, DMT_VIRTUAL_COLUMN) VALUES ('project', 'col01', 'text', 'proj_description');
Code: Select all
After this has been executed, I am able to see a table 'project' on the "metadata" view on the dropdown, and when I select the table I see the data with the correct column names (is this called an alias in this platform?)DELETE FROM OKM_DB_METADATA_VALUE WHERE DMT_TABLE="project";
INSERT INTO OKM_DB_METADATA_VALUE (DMV_TABLE, DMV_COL00, DMV_COL01) VALUES ('project','129-313','');
INSERT INTO OKM_DB_METADATA_VALUE (DMV_TABLE, DMV_COL00, DMV_COL01) VALUES ('project','129-801','');
INSERT INTO OKM_DB_METADATA_VALUE (DMV_TABLE, DMV_COL00, DMV_COL01) VALUES ('project','129-802','');
INSERT INTO OKM_DB_METADATA_VALUE (DMV_TABLE, DMV_COL00, DMV_COL01) VALUES ('project','129-803','');
INSERT INTO OKM_DB_METADATA_VALUE (DMV_TABLE, DMV_COL00, DMV_COL01) VALUES ('project','129-804','');
INSERT INTO OKM_DB_METADATA_VALUE (DMV_TABLE, DMV_COL00, DMV_COL01) VALUES ('project','129-805','');
INSERT INTO OKM_DB_METADATA_VALUE (DMV_TABLE, DMV_COL00, DMV_COL01) VALUES ('project','129-806','');
I then created the following property group:
Code: Select all
This registers with no errors and when I attempt to add this property group to a file, it shows up with a list of fields and an icon to search on "Project". <property-group label="DIV1PV" name="okg:div1pv">
<input label="Package Date" type="date" name="okp:div1pv.pkgdate" />
<suggestbox label="Project" name="okp:div1pv.jobno" table="project" dialogTitle="Select Project" filterMinLen="0" filterQuery="select $project_id from DatabaseMetadataValue dmv where dmv.table='project' and dmv.$project_id like '%{0}%' order by dmv.$project_id" valueQuery="select $project_id from DatabaseMetadataValue dmv where dmv.table='project' and dmv.$project_id='{0}'"/>
<input label="SN" type="text" name="okp:div1pv.serialno" />
<input label="A_No" type="text" name="okp:div1pv.ano"/>
<textarea label="Description" name="okp:div1pv.description"/>
</property-group>
However, when I select the icon, I get a totally blank list and can't put an entry in the box.
I can't see what I'm doing wrong...can anybody help me out here?
