gnue-forms: master-detail-detail issue

Oleg Noga <[email protected]> Mon, 9 Jul 2007 21:37:16 +0300
Newsgroups gmane.comp.gnu.enterprise.general
Message-ID <[email protected]>
Hello,

Here is example for master, detail and "detail of detail" relation.
Seems like "detail of detail" block sometimes can't hear that master
block active record changes.

I am using gnue-forms 0.6 with wxPython 2.8.4.0

-- 
Best regards,
 Oleg                          mailto:[email protected]

_______________________________________________
Gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnue
master_detail_detail_issue.gfd (text/xml, 1.6 KB)
<?xml version="1.0"?>
<form title="3entries">
    <datasource 
        name="ds_company" connection="gnue" prequery="Y"
        table      = "company" 
        order_by   = "name" 
        
    />
    <datasource name="ds_department" connection="gnue" prequery="Y"
        table      = "department" 
        order_by   = "name" 
        master     = "ds_company"
        masterlink = "id"
        detaillink = "fk_company"
    />

    <datasource name="ds_store" connection="gnue" prequery="Y"
        table      = "store" 
        order_by   = "name" 
        master     = "ds_department"
        masterlink = "id"
        detaillink = "fk_department"
    />

    <logic>

        <block name='company' datasource="ds_company" rows="3">
            <field name="cb_company"  field="name"  />
        </block>

        <block name='department' datasource="ds_department" rows="3">
            <field name="cb_department" field="name" />
        </block>
        
        <block name='store' datasource="ds_store" rows="3">
            <field name="cb_store"  field="name"/>
        </block>

    </logic>
    <layout xmlns:s="GNUe:Layout:Sizer">
        <page name="Page_1">
            <hbox>
            <vbox block='company'    label='Company'>
                <entry name="cb_company"    field="cb_company"    />
            </vbox>
            <vbox block='department' label='Department'>
                <entry name="cb_department" field="cb_department" />
            </vbox>
            <vbox block='store'      label='Store'>
                <entry name="cb_store"      field="cb_store"      />
            </vbox>
            </hbox>
        </page>
    </layout>
</form>
master_detail_detail_issue.gsd (application/octet-stream, 3.3 KB) - not displayed