hide header

Questions and answers for designing and implementing forms in Servoy

hide header

Postby eKelman » Mon Feb 06, 2012 11:15 pm

is there a way to hide a header and the elements within the header?

I have a header in a record view form that I want hidden or shown depending on certain things prior to displaying it to the user.

I have the fields hidden but there is some extra blank space on the form that I do not wish to be displayed in the header section of the form.

Thanks
Ernest
Kelman Technologies
eKelman
 
Posts: 52
Joined: Tue May 12, 2009 9:09 pm

Re: hide header

Postby ROCLASI » Tue Feb 07, 2012 8:20 am

Hi Ernest,

Form parts don't have runtime properties. You can however use the SolutionModel to change the blueprint of the form and add/remove the (header) form part that way.
Just be aware that once you changed the blueprint and called controller.recreateUI() any runtime properties you had set (like hiding of fields) will need to be reapplied.

Hope this helps.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: hide header

Postby eKelman » Mon Mar 26, 2012 10:21 pm

Thanks ROCLASI for the information.

Ended up just keeping the form as is and hiding the fields.

the form is a little longer than it needs to be, with a little blank space, but it'll suffice for now.
Ernest
Kelman Technologies
eKelman
 
Posts: 52
Joined: Tue May 12, 2009 9:09 pm


Return to Forms

Who is online

Users browsing this forum: No registered users and 4 guests