on 10-23-2017 4:09 PM
Hi,
i have a TextView in my web dynpro abap application. there we have the property "semanticColor". i can also bind this property.
But how can i use this semanticColor inside my coding to set different colors in the TextView depending on the content of my xstring i put inside the TextView ? I mean how to set the color dynamicly inside the web dynpro application ?
br Martin
Binding is one part, you then also need to update the bound context attribute that now represents the color.
You can do this via the usual methods, wddoinit, wddomodifyview, onaction..., supply_...
if <textviewvalue> = foo.
<colorvalue> = ...
else.
<colorvalue> = ...
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.