Page 1 of 1

How to change form header height from a method?

PostPosted: Sat Apr 21, 2018 3:49 pm
by Westy
How can a form's header height be changed from a method?

Dean Westover
Choices Software, Inc.
Servoy Webclient Version: 6.0.7

Re: How to change form header height from a method?

PostPosted: Tue Apr 24, 2018 7:33 am
by ROCLASI
Hi Dean,

There is no runtime property to set the height of a form part. You need to use the solutionModel like so:

Code: Select all
var _sForm = "myForm",
   _oForm = solutionModel.getForm(_sForm);

// set the height
_oForm.getPart(JSPart.HEADER).height = 100;

// Making sure we don't get the 'stale forms' error
forms[_sForm].controller.recreateUI();


Hope this helps.

Re: How to change form header height from a method?

PostPosted: Tue Apr 24, 2018 11:21 pm
by Westy
Hi Rob,

Thank you.
Works great!

Dean