|
Hi,
Maybe the bookstore example has
not a right structure...
I'll try to clarify the problem.
The 2 related tables are very
simple:
Component
(component_code, component_parent,
description,
language,
company)
Component_parent (component_code, description,
language, company)
In the insert and update page of
Component record I would
like to select the Component_parent
using a select html tag:
<db:select
fieldName="COMPONENT_PARENT">
<db:confTableData filter="LANGUAGE='myLanguage',COMPANY='myCompany'" name="myQuery" foreignTable="COMPONENT_PARENT" visibleFields="DESCRIPTION" storeField="COMPONENT_PARENT" /> </db:select> I obtain a select html tag like
this:
<select name="[EMAIL PROTECTED]">
<option
value="companyName">, componentParent1, I, 1</option>
<option
value="companyName">, componentParent2, I, 2</option>
</select>
As you can see in the option html tag
value and label are incorrect:
- the value should be 1 or 2 (storeField
attribute)
- the label should be only componentParent1
or componentParent2 (visibleFields attribute)
Should I use the queryData tag
instead?
Thanks.
Marco Stefani
|
Title: Nachricht
- [dbforms] ConfTableData Tag Marco Stefani
- AW: [dbforms] ConfTableData Tag Henner Kollmann
- Marco Stefani
