How to change form header height from a method?

How can a form’s header height be changed from a method?

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

Hi Dean,

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

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.

Hi Rob,

Thank you.
Works great!

Dean