Hello,
looks like the elements .text property does not work with Table View layouts ?
Servoy 5.2.6
Thomas
Hello,
looks like the elements .text property does not work with Table View layouts ?
Servoy 5.2.6
Thomas
works fine for me if i set a label on the form that is in tableview and i change the text of that label through scripting.
Trying to get or set a elements .text property on a TableView form.
The element is a label connected with labelFor to an field, so the label gets the header of the field in a TableView form.
The label and the field are on the body part.
In a ListView form it is working, on a TableView form its running in an error.
TypeError: Cannot read property “text” from undefined …
Hi
I am getting this same problem with a form in ver6.1.4
Cannot set property “text” of undefined to “CS” (/Applications/Servoy61/servoy_workspace/ProActive2/forms/lst_orderLines.js#1381)
Problem with label for column in Table View(locked) form.
works fine on label not in body of form.
elements.ordtxt2_label.text = ‘CAD File Name’
elements.fld_ordtxt2.visible = true
ordtxt2_label is label for vld_ordtxt2
Would appreciate correct code example of how to do this.
Thanks
Haven’t used labelFor for some time now, but afaik you can’t set properties of a ‘labelfor’ label at runtime.
Hi Marc
Ouch!
If thats the case, then how do I change the header title as I have to do programatically somehow.
I cant believe such a basic function is not available!
Don’t use a label but use the titleText property of the field.
Hi Nicola
Unfortunately if its for a Check field, then the titleText repeats all the way down the column. With 4 check fields the columns take up a lot of valuable space, and look ridiculous. I’ve used abbreviations to help make the columns not too wide.