How to both hide and not print a field

Questions, tips and tricks and techniques for scripting in Servoy

How to both hide and not print a field

Postby Westy » Sat Feb 14, 2004 11:28 pm

How can I create a "Hide" button that will both hide a field from view and make it non-printable.

Using:
elements.field_name.visible=false;

will hide the field, but it still prints. I have tried to assign the field a text color of white, but am having syntax problems with that. Perhaps there is a better way.

Is there written documentation showing how to change the properties of form elements using methods? The "Buttons" solution gives some good examples, but I was wondering if more examples are available.
Westy
 
Posts: 852
Joined: Fri Feb 13, 2004 5:27 am
Location: Lynnfield, Massachusetts USA

Postby jcompagner » Sat Feb 21, 2004 11:45 am

this is a know limitation of printing.
You don't print the current screen but a new screen is created with the default properties/look.
We will try to change that in a further release.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Methods

Who is online

Users browsing this forum: No registered users and 24 guests