on 02-04-2005 6:59 PM
Is there a mechanism for including snippets of formatted content in a Web Dynpro application? For instance, say I wanted to insert a paragraph of text with some words <b>bolded</b> or <i>italicized</i>. I can't figure out a good way to do this in Web Dynpro.
The only thing I can think of is to use an IFrame and put the content outside of the app. That seems less than ideal since it wouldn't be as tightly integrated. (e.g., it might be hard to embed a link in the iframe content to call a Web Dynpro action, like a LinkToAction element).
Hi
just check out this post,
How to display Long text information in my view?
In this post, u will get better idea of putting your content in the view. if you are not able to get it, just search in the forum with the key words "How to display Long text information in my view "
Hope it helps
bye
sathya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jeremy,
no, TextViews can't do that so far. A workaround (far from optimum) is to split the sentence into pieces and to use multiple textviews for them in a flow layout, for your example:
[Textview1, design=STANDARD:Put some ][Textview2, design=EMPHASIZED:<b>bold words</b> ][Textview3, design=STANDARD:in the middle of a sentence].
Hope that helps.
Regards
Stefan
Thanks, Stefan. I had considered this, but it seems a bit cumbersome.
Furthermore, while this works for statically defined text (where you know which part should be bold), I'm thinking of scenarios in which this content comes from some business object and wouldn't have a known structure. For that, I'd need to parse it somehow to decide which pieces to make bold ... and it starts to get really hairy.
I think I'm going to head over to Armin's UI Element poll and suggest a FormattedTextView element.
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.