Re: Cryptic error message
| Newsgroups | gmane.comp.gnu.enterprise.general |
|---|---|
| Message-ID | <[email protected]> |
Hello. El lun, mar 29, a las 01:17:30 James Thompson escribía: > > > > > One of them is defining blocks in a form that don't get used. In such > > situation, a traceback like below one may be obtained. I suppose that > > it shouldn't make gnue-forms crashing or, if does, be reported as > > convenient. > > Could I get a copy of the form that is causing that error. I've tried > several combinations of unused blocks in a form and cannot trigger the error. > Of course. I attach it, because pasting produces extremely borrowing results. thanks -- José Esteban Granada - Spain _______________________________________________ Gnue mailing list [email protected] http://mail.gnu.org/mailman/listinfo/gnue
org0.1.gfd
(text/plain, 4.1 KB)
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE form PUBLIC "-//GNUe//GNURPC DTD Forms DTD 0.4.99//EN" " ">
<form title="Manejo de entidades">
<options>
<option name="author" value="José Esteban"/>
<option name="version" value="0.0.1"/>
</options>
<!-- imported datasources
bug: ¿por qué conio no se pué?
<import-datasource name="dtsCountry" library="location0.1-common.gfd"/>
<import-datasource name="dtsRegion" library="location0.1-common.gfd"/>
<import-datasource name="dtsMasterRegion" library="location0.1-common.gfd"/>
<import datasource name="dtsPostal" library="location0.1-common.gfd"/>
<datasource name="dsCountry" connection="gnue" table="loc_country"/>
<datasource name="dsRegion" connection="gnue" table="loc_region"/>
<datasource name="dsPostal" connection="gnue" table="loc_postal"/>
-->
<!-- enumeration datasources -->
<datasource name="dsOrgStatus" connection="gnue" table="org_status" prequery=""/>
<datasource name="dsOrgCommType" connection="gnue" table="org_comm_type"/>
<!-- data datasources -->
<datasource name="dsOrg" connection="gnue" table="org_org"/>
<datasource name="dsOrgDept" connection="gnue" table="org_dept"
detaillink="org" master="dsOrg" masterlink="id"/>
<datasource name="dsOrgContact" connection="gnue" table="org_contact"
detaillink="dept" master="dsOrgDept" masterlink="id"/>
<datasource name="dsOrgComm" connection="gnue" table="org_comm"/>
<logic>
<block name="bkOrgStatus" datasource="dsOrgStatus">
<field name="fStatusCode" field="code"/>
<field name="fStatusDescr" field="descr"/>
</block>
<block name="bkOrg" datasource="dsOrg">
<field name="fOrgId" field="id"/>
<field name="fOrgNick" field="nick" case="lower"/>
<field name="fOrgName" field="name"/>
<field name="fOrgCreated" field="created">
</field>
<field name="fOrgStatus" field="status"
fk_source="dsOrgStatus" fk_key="code" fk_description="descr">
<!-- limpia status_updated para que se asigne nuevo timestamp -->
<trigger type="Pre-Update">
print "limpiando status_updated"
# con Post-Change, falla cuando es nuevo, pq es null: SE LE PUEDE QUITAR EL NULLABLE="N"
# (probar type=Pre-Update a ver: con un registro recien creado si acepta modificacion)
# y, aparte, no actualiza el registro que hay pq el created no lleva decimales en segundos
# pero la cosa es que en la misma sesion que se crea si lo hace
# bkOrg.fOrgStatusUpdated.set('')
</trigger>
</field>
<field name="fOrgStatusUpdated" field="status_updated">
</field>
</block>
<block name="bkOrgDept" datasource="dsOrgDept">
<field name="fDeptId" field="id" case="lower"/>
<field name="fDeptOrg" field="org"/>
<field name="fDeptRole" field="role" case="upper"/>
<field name="fDeptDescr" field="descr"/>
</block>
<block name="bkOrgContact" datasource="dsOrgContact">
<field name="fContactId" field="id" case="lower"/>
<field name="fContactDept" field="dept"/>
<field name="fContactRole" field="role" case="upper"/>
<field name="fContactName" field="name"/>
</block>
</logic>
<layout xmlns:Char="GNUe:Layout:Char" Char:height="15" Char:width="80">
<page name="org" caption="Organization">
<trigger type="On-Change">
self.showTree()
</trigger>
<label name="lOrgNick" Char:height="1" Char:x="1" Char:y="1" text="Short:"/>
<entry name="eOrgNick" block="bkOrg" field="fOrgNick"
Char:height="1" Char:width="25" Char:x="10" Char:y="1"/>
<entry name="eOrgCreated" block="bkOrg" field="fOrgCreated" navigable="N"
Char:height="1" Char:width="30" Char:x="40" Char:y="1"/>
<label name="lOrgName" Char:height="1" Char:x="1" Char:y="2" text="Long:"/>
<entry name="eOrgName" block="bkOrg" field="fOrgName"
Char:height="1" Char:width="60" Char:x="1" Char:y="3"/>
<label name="lOrgStatus" Char:height="1" Char:x="1" Char:y="4" text="Status:"/>
<entry name="eOrgStatus" block="bkOrg" field="fOrgStatus" style="dropdown"
Char:height="1" Char:width="20" Char:x="10" Char:y="4">
</entry>
</page>
</layout>
</form>