Page 1 of 1

Onrender for print form

PostPosted: Thu Aug 03, 2017 5:42 pm
by bevil
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

Re: Onrender for print form

PostPosted: Thu Aug 03, 2017 7:49 pm
by 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.

Re: Onrender for print form

PostPosted: Mon Aug 07, 2017 11:03 pm
by ROCLASI
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.

Re: Onrender for print form

PostPosted: Tue Aug 08, 2017 9:54 am
by bevil
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

:)