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="1.0" encoding="iso8859-1"?>
<form title="test ">
<options/>
<datasource name="dts_dicc" connection="web" prequery="True" requery="True"
table="diccionario2">
</datasource>
<trigger type="ON-STARTUP" name="trig2">
rset=dts_dicc.createResultSet({'dkey':"fechaUltimo"})
record=rset.firstRecord()
if record:
fechastr=record['value']
print fechastr #none!
print block1.UnboundField12# none!
pass
</trigger>
<logic>
<block name="block1" datasource="dts_dicc" rows="1">
<field name="UnboundField11" field="dkey"/>
<field name="UnboundField12" field="value"/>
</block>
</logic>
<layout xmlns:Char="GNUe:Layout:Char" Char:height="12" Char:width="40">
<page name="Page1">
<entry name="Entry1" Char:height="1" Char:width="15" Char:x="2"
Char:y="2" block="block1" field="UnboundField12" label=""
style="label"/>
</page>
</layout>
</form>
In trigger I try to obtain a field , but I get 'None'. I think it's a silly
mistake in the code, but I could not find it.
Again thank you very much for your attention.
Jose A. Ramirez
_______________________________________________
gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnue