Onrender for print form

Questions and answers for designing and implementing forms in Servoy

Onrender for print form

Postby bevil » Thu Aug 03, 2017 5:42 pm

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
bevil
 
Posts: 133
Joined: Thu Oct 18, 2012 7:31 pm

Re: Onrender for print form

Postby bevil » Thu Aug 03, 2017 7:49 pm

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.
bevil
 
Posts: 133
Joined: Thu Oct 18, 2012 7:31 pm

Re: Onrender for print form

Postby ROCLASI » Mon Aug 07, 2017 11:03 pm

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.
Robert Ivens
ROCLASI Software Solutions / JBS Group, Partner
SAN Developer / Servoy Valued Professional / Servoy Certified Developer
Twitter: @roclasi / @servoyforge
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5194
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Onrender for print form

Postby bevil » Tue Aug 08, 2017 9:54 am

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

:)
bevil
 
Posts: 133
Joined: Thu Oct 18, 2012 7:31 pm


Return to Forms

Who is online

Users browsing this forum: No registered users and 2 guests