gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNUe] Documentation front?


From: Julio Cesar Gazquez
Subject: Re: [GNUe] Documentation front?
Date: Mon, 17 May 2004 17:58:05 -0300
User-agent: KMail/1.6

El Mar 11 May 2004 21:01, Jason Cater escribió:

>  The material in "Working with Fields" is new. A few other sections were 
>  updated with minor improvements, such as noting datasource Pre-Query
>  support.  
  
Nice. I wonder if there are plans to support the case 

<trigger name="Trigger1" type="ON-CHANGE"><![CDATA[##
resultset = MyDataSource.createResultSet({'id': ForeignKeyField.get() })
recordset = resultset.nextRecord()
if recordset: 
  DescrField.set(recordset['description']) 
]]></trigger>

via tag attributes, as the master/detail and the dropdown cases? I'd love to 
link two datasources with few tags/attributes, then having the matching 
record available automatically in a block/label.

Note that this is even very similar to the dropdown, but doing a record query 
instead of populating entries (you didn't like 50+ rows long dropdowns, 
didn't you?). The biggest difference is when the foreign key has more than 
one field, so a new, nested XML element inside block is required:

<datasource name="DTSMaster" table="Master" />
<datasource name="DTSRelated" table="Foobar" />
...
<block datasource="DTSMaster" name="BLKMaster">
...
  <field name="ForeignKeyField1" field="foreign1" />
  <field name="ForeignKeyField2" field="foreign2" />
  <related fk_source="DTSRelated">
    <link field="ForeignKeyField1" fk_key="key1" />
    <link field="ForeignKeyField1" fk_key="key1" />
  </related>
</block>
<block datasource="DTSRelated" name="BLKFoobar">
  <field name="RelatedValueField1" field="foo1"/>
  <field name="RelatedValueField2" field="foo2"/>
</block>

-- 
Saludos

Julio César Gázquez




reply via email to

[Prev in Thread] Current Thread [Next in Thread]