The Texts interface acts as a parent object for all texts that can be accessed from a form.
Individual texts are accessed using their text id.
When the id is not a valid Java identifier e.g. it begins with a numeric, the element can only be
accessed using the #getText(String) method.
When running an event that forms part of a deployed component, only texts accessible from the component can be accessed.
All included texts can be iterated using the following code:
for ( var text in Iterator(texts.iterator()) )
{
log(text.text);
}
Textsinterface acts as a parent object for all texts that can be accessed from a form. Individual texts are accessed using their text id. When the id is not a valid Java identifier e.g. it begins with a numeric, the element can only be accessed using the #getText(String) method.When running an event that forms part of a deployed component, only texts accessible from the component can be accessed.
All included texts can be iterated using the following code:
for ( var text in Iterator(texts.iterator()) ) { log(text.text); }Examples:text.Txt1.text = "Test"; texts.getText("1001").text = "Hello world"; event.owner.addMessageText(texts.message5);