Onrender for print form

I am using a smart client (still), and need to copy the smart client form on render method (which conditionally colours the background of various lines in a table view) to the print form. I just assumed this would work, but my colours don’t show. What am I doing wrong, or how should I approach this??

Mac OS, Servoy 7.4, Java 1.7

Thanks

Bevil

I have an ugly workaround for this which is to put an html calculation field behind the main fields, calculate the colour, and make the overlaying fields transparent, but it seems very kludgy.

Hi Bevil,

I did a quick and simple test-case with a listview and it seems that the printpreview triggers the onRender once on the selected record and uses that for all the rows.
The tableview doesn’t even trigger the onRender it seems.
I suggest you file a case with Servoy (and/or use your workaround).

Tested on Servoy 7.4.8

Hope this helps.

Hi Robert.

Thank you for the reply… I thought I must be doing something stupid (and I assumed that onRender means on screen only anyway).

I will file a case.

Hope all is well

:)