cancel
Showing results for 
Search instead for 
Did you mean: 

Underlining particular part of string

Former Member
0 Kudos

Dear Gurus.


Can any one let me know how to underline particular part of string?. My requirement is i have description text box in my wdp screen. when user enter's description, based on some
condition,  i need to append his sap login id and username to description and submit the request.

So how to underline SAP login id and username concatinated to description?.

PS . the below snapshot for reference.

Thanks

Santhosh

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi,

You could use Formatted Text View UI for the same ( not sure if underlined is supported, you can make it as bold/italic) FormattedTextView - Web Dynpro for ABAP - SAP Library

Or, Create a Link to URL/Link to Action UI and set the Log on ID/ user name to that and next to that  create a text view to show description

Hope this helps u,

Regards,

Kiran

Answers (1)

Answers (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Santhosh,

You can achieve your requirement as below


  • Add the ui element FORMATTED_TEXT_EDIT into view and use this for populating description along with the user id and other details
  • Bind the text to the context attribute "MY_TEXT"

         

Example,

    

          Now,

               lv_text :  "hello - "

          lv_user : Rama

          Concatenate '<p>'  lv_text '<strong>' lv_user '</strong></p>' into lv_my_text.

     Now, set the text to context attribute

Hope this helps you.

Regards,

Rama