Record numbers in reports update

View: New views
1 Messages — Rating Filter:   Alert me  

Record numbers in reports update

by Girvin R. Herr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is an update to my earlier posting on this subject below.
I have done some more testing and now I am getting convinced that the
report block is not generating the "oncurrent" event. The
"field.setValue()" function in slotFunc() does not seem to get executed,
since no matter what I use for the 2nd argument (the data to set the
field to), the field remains blank.

Is this a bug in the report block or am I missing something here?
Are "oncurrent" events not functional in reports?
Are the slotFunc "field" and "block" arguments valid in reports?

Girvin Herr

----------------------------------------------------

I am using Rekall 2.4.5 with MySQL 5.0.24a on Slackware 11.0 Linux.
I have been trying to get the record number to print on each record's
line in a report. I have been able to make it work in a form, but the
report version eludes me. I have used a simplified version of the
"RecordPosition.cmp" component python script:

def slotFunc (field, block, event, *args) :
   curRow = block.getQueryRow()
   text = `curRow + 1`;
   field.setValue (curRow, text)

I am not a python expert, but it compiles OK and as I said, it works in
a form.
For the field's event property, I am using Slot= OnCurrent, Link Name=
OnCurrent, Target= getBlock(), and event= oncurrent.
When I run the report in "data View", there are no errors, but the
record number field is blank. To verify this, I set a box outline on the
field and the box printed, but with no data.

Anyone out there done this and/or can give me some clues as to how to do
this?
Thanks in advance
Girvin Herr



_______________________________________________
Rekall mailing list
Rekall@...
http://www.mailman.a-i-s.co.uk/cgi-bin/mailman/listinfo/rekall
LightInTheBox - Buy quality products at wholesale price