on 02-19-2014 2:28 PM
Hello,
Do you know if it is possible to change the label of a Textfield dinamically?
I thougt that it would be possible with javascript with something like :
this.label = "New value";
but it does not work.
Could you help me?
Thank you very much.
Hello Javier,
Yes it is possible.
Please follow the steps below.
If LABEL is the name of the text field, then you can use Javascript as below.
this.LABEL.rawvalue = "new_value";
But I would suggest you to do this at the Interface level or in the driver program by storing the new value in a standard text in SO10 T code and then read it using READ_TEXT Function Module. Then bind the text field with this fetched value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe I have not explain myself very good.
I have the next:
Price: 2,20
I want to change the text of the label, in this case Price and get the next:
Price: 2,20
or
Preis: 2,20
or
Precio: 2,20
Pavan, I don't have the option to use this.label.rawValue. because label is not in the valid options of this.
Thank you very much!
User | Count |
---|---|
69 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.