Trouble with forms

Ramirez Jose Anibal <[email protected]> Tue, 15 Jun 2010 21:23:53 -0700 (PDT)
Newsgroups gmane.comp.gnu.enterprise.general
Message-ID <[email protected]>
Thanks for your reply.

Below is the code in summary form, of case where I have difficulty.
Table:
create table diccionario2 (dkey varchar(25) primary key, value varchar(25))=
;
insert into diccionario2 (dkey, value) values('fechaUltimo','2010-01-10');

<?xml version=3D"1.0" encoding=3D"iso8859-1"?>
<form title=3D"test ">
  <options/>
 <datasource name=3D"dts_dicc" connection=3D"web" prequery=3D"True" requery=
=3D"True"
     table=3D"diccionario2">
     </datasource>
 <trigger type=3D"ON-STARTUP" name=3D"trig2">
rset=3Ddts_dicc.createResultSet({'dkey':"fechaUltimo"})
record=3Drset.firstRecord()
if record:
 fechastr=3Drecord['value']
 print fechastr  #none!
 print block1.UnboundField12# none!
pass
  </trigger>
  <logic>
 <block name=3D"block1" datasource=3D"dts_dicc" rows=3D"1">
    <field name=3D"UnboundField11" field=3D"dkey"/>
      <field name=3D"UnboundField12" field=3D"value"/>
      </block>
  </logic>
  <layout xmlns:Char=3D"GNUe:Layout:Char" Char:height=3D"12" Char:width=3D"=
40">
    <page name=3D"Page1">
      <entry name=3D"Entry1" Char:height=3D"1" Char:width=3D"15" Char:x=3D"=
2"
             Char:y=3D"2" block=3D"block1" field=3D"UnboundField12" label=
=3D"" style=3D"label"/>
    </page>
  </layout>
</form>


In trigger I try to obtain a field , but  I get 'None'. I think it's a sill=
y mistake in the code, but I could not find it.
Again thank you very much for your attention.


Jose A. Ramirez=0A=0A=0A