Hello,
is there a way to get the text property of an element?
Looking for something like a “getText() Funktion”, for example:
forms[vFormName].elements[vElementName].getText().
Any idea?
Best regards,
Thomas Ledergerber
Hello,
is there a way to get the text property of an element?
Looking for something like a “getText() Funktion”, for example:
forms[vFormName].elements[vElementName].getText().
Any idea?
Best regards,
Thomas Ledergerber
By heart, you can do this for labels and buttons (maybe more)…
When you want the value of a field you have, again by heart, you can do something like controller.getDataProviderValue(element.name.getDataProviderID) …
Hope this helps
Thank you for your fast answer …
But in this case, I would like to get the “text property” witch is set by the i18n table of the field and not the value of the field.
Would be very nice, if there would be a way …
Hi Thomas,
If I understand you well that is easily accomplished with:
var myEleText = elements['myEleName'].text
The “setting” and “getting” are done through the property instead of through methods (the usual ugly way of Java .
Best regards,
Miguel
Hi Miguel,
thank you for your tip, I tried it, but it does not work …
May be I miss something.
Is this working on your Comuter?
Thanks
Thomas
I thought the .text property only worked in Servoy version 3…at least that is what I’ve experienced.