Re: Documentation front?

Julio Cesar Gazquez <[email protected]>
Newsgroups gmane.comp.gnu.enterprise.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.