on 10-22-2008 10:08 AM
Hi,
I have a string variable in my webdynpro. and i am displaying the string in the output. How to highlight the string, either bold or something else. It should look differently.
Regards,
Prasanthi.
Hi,
write this code in do modify view
IWDTextView tv = (IWDTextView) view.getElement("TextView");
tv.setDesign(WDTextViewDesign.EMPHASIZED);
Thanks,
Ramani.p
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I want to set the property of the context dynamically.........
Kindly suggest
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Try changing the semantic color dynamically....
1)Create a value Atttibute called design of type com.sap.ide.webdynpro.uielementdefinitions.TextViewSemanticColor
2)To change the design use
wdContext.currentContextElement().setDesign(WDTextViewSemanticColor.NEGATIVE);
or
wdContext.currentContextElement().setDesign(WDTextViewSemanticColor.MARKED1);
Regards,
Sunitha
Hi
Use the Text view
Create a context attribute of type string bind this to a text view UI text property
set the value to this attribute
to make it bold set the property of the textview ui element
design emphasized
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
-> You can directly put the Value which you want to diplay in the TextView UI Element. Change the property Design of UI element for bold ,italic etc.
Or You can put the value in the context and bind TextView UI Element with that context. Change the design property and your value will be displayed.
I hope this will solve your problem.
Thanx.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
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.