on 12-19-2008 1:09 PM
Hi Experts,
I have a requirement to colour the input field based on the flag from the function module.It will be nice if atleast I could colour the border of the input field based on the condition from the function module.How do we achieve this in webdynpro? I want the colours yellow,red and green.
Please suggest.
Thanks,
Rajani
Hi Rajani.
You can Change the color to table cell which is a textview using
<textview name>.setSemanticcolor(WDTextviewSemanticColor.<semantic color type>);
Create a context attribute of type WDTextViewSemanticColor, bind the TextView.semanticColor property to this attribute and set the value in the context on your condition
Regards,
Piyush
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Thanks for the reply.
Piyush : I am using a InputField child element.How is it possible for this.
I guess the solution you gave is for the TextView child element,right??
And I want the colours yellow,red and green.The WDTextViewSemanticColor does not give the green and red colour......
How do we solve this?
Please suggest.
Thanks,
Rajani
Rajani,
Inputfield UI element does not have the option to change background color. ['TextView' UI element|http://help.sap.com/saphelp_nw04s/helpdata/en/d6/1615736dfceb418105d31f4b37f772/frameset.htm] has this possibility but the text won't be editable.
For TextView, WDTextViewSemanticColor property provides color values Red and Green but not with these names. Red color can be assigned with value 'negative' and Green with 'positive'.
Of course, you can achieve editability and desired background colour with [UI element TableStandardCell|http://help.sap.com/saphelp_nw04s/helpdata/en/bf/084142646ab46be10000000a155106/frameset.htm], if it works for you.
Hope it helps,
Vishwas.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
There is no API to change the colour of the input field in the WebDynpro Java.
Regards,
Prasath.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.