cancel
Showing results for 
Search instead for 
Did you mean: 

label layout (--Strike-through--)

0 Kudos

Hi,

Is there an option to create your own text layout or label layout? like Emphasized / light...

Or how can you get the option strikethrough within Web Dynpro?

If a strike or underline is possible in WDA please tell me.

Regards,

Michael

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

There is no option for this but if I only this as work around for this.

Create an image for this with text and strike and display that strike through text as Image using Image UI element.

Hope this helps.

Regards,

Lekha.

0 Kudos

Hi Lekha,

Now thats a clever work around indeed

Regards,

Michael

Answers (3)

Answers (3)

0 Kudos

Hi,

Yes i couldnt find the strikethrough anywhere in between the tags and i already found those documentations about formatted text.

Thats why i asked it in a seperate thread if the strike was impossible, maybe that i overlooked it somewhere.

But thanks to confirm it

Regards,

Michael

former_member182372
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi Micheal,

I have tried emphasizing, underlining words and that is only possible in UI element "Formatted Text View".

Class cl_wd_formatted_text can be used for thsi purpose. You can check its methods.

Below is the code i used to emphaize a string displayed in formatted text view.

data f1 type ref to cl_wd_formatted_text.

f1 = cl_wd_formatted_text=>make_text(

inner_text = LV_SEARCH_STRING "#EC NOTEXT

tag = cl_wd_formatted_text=>e_tag-em

).

    • @TODO fill attribute

  • lv_test = LV_SEARCH_STRING.

  • set single attribute

LO_EL_CONTEXT->SET_ATTRIBUTE(

NAME = `TEST`

VALUE = f1->m_xml_text ).

Hope this helps.

Bhanu