On SetObjectText - Forum

Forum Navigation
You need to log in to create posts and topics.

On SetObjectText

Hi to all.

I would like some examples on how to use the SetObjectText command of a Textarea.

Thanks

Hi @blustar,

SetObjectText is intended for Containers and other non user input objects.
For TextArea just use a Variable name.
PLease take a look at the attached sample app.

Regards

Uploaded files:
  • You need to login to have access to uploads.
javadrajabihakami and BluStar have reacted to this post.
javadrajabihakamiBluStar

I don't understand how it works.

You just initialized a variable.

Where is the command that says to insert the value of the variable in the Textarea ?

Thanks

BS

@blustar click on the TextArea object and take a close look at the Properties panel. You will see a "variable" field. That's the place to place the variable you want to use to get and set the TextArea content.
Whenever you want to get the TextArea content just read the variable value.
If you want to set the TextArea content, then place the text inside the variable using SetVar.

Perhaps you may want take a look here:
Using Variables (visualneo.com)
Text Area (visualneo.com)

Regards.

BluStar has reacted to this post.
BluStar

Hi..

I use <span class="glyphicon glyphicon-fullscreen"></span> Enter full screen  in a SetObjectText command in a headline object and is not compiling the application.

The SetObjectText command Is not accepting HTML tags ?

The SetObjectText command Is not accepting HTML tags ?

@smartmedia no, you should use SetObjectHTML instead.
Also allways be sure to use double quotes inside single quotes or the opposite.

smartmedia has reacted to this post.
smartmedia

@luishp Works like a charm... Thanks mate..