In Servoy 3.x is it possible to change the bgcolor of form parts with a method? I can only see how this is achieved for named elements.
If by form parts you mean form elements then yes. look at the DoEdit method in the example servoy crm for 3.5
if(allNames*.indexOf(‘fld_’) >= 0)*
{
//if it’s a field - then change color and make editable
elements[allNames*].bgcolor = ‘#feffe4’*
elements[allNames*].readOnly = false*
}
if not please excuse my post, as I am a newbie here.
Thanks Charles, but I meant form parts, like header part, body part.
I created a test form and looked closely at header and footer. I can see no way to do it. With the 4.1 solution model(?) i see .defaultPageFormat.name.getBodyPart().getFooterPart().newHeaderPart(number height).newFooterPart(number height)
interesting new items above but move sample code gives no sample and I have not yet started with solution model. I thought I had found it
with .newFooterPart but I was not able to get that to work. Sorry I was not able to help at all…
Charles
Under solution model in 4.1 there is a JSPart and under that there is background. I will play with it some more to see if this is the correct place to set the color of the header/footer.
but it’s not obvious to me yet.
I will keep looking
Charles