cancel
Showing results for 
Search instead for 
Did you mean: 

Reg: Highlight string

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

write this code in do modify view

IWDTextView tv = (IWDTextView) view.getElement("TextView");

tv.setDesign(WDTextViewDesign.EMPHASIZED);

Thanks,

Ramani.p

Answers (3)

Answers (3)

Former Member
0 Kudos

I want to set the property of the context dynamically.........

Kindly suggest

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.