Label for another label

Hello there,
If you set the “labelFor” property of a label to another label (not field) and you set the visible = false for that originator label, then it’s assigned label is not set invisibile.
It works fine for fields, but I’m missing the same behaviour for labels.

Thanks,
Gabriel - Iulian Dumbrava

Why do you need a labelfor label for another label ? It can be used for tableview header rendering but there you can hide the column with setting it invisible.

I have a record view form, where I need to show either

  • an editable field,
  • a label in case the user should not edit the value,
  • or none.

So I made 2 controls: a field with an attached label and a label with an attached label. I connect them to the same dataprovider.

In case I don’t need any of those displayed I set the field and the label to invisible, but I also have to set invisible the label for the label. :)

It’s not a big deal, but I wondered if you can duplicate the behaviour from a normal field to a label.

Thanks again,
Gabriel - Iulian Dumbrava

ok, add a case in our support system (http://www.servoy.com/s) and we’ll have a look about this.

maybe you could use a none editable field with no border. that pretty much has the same look as a label.