cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in displaying a link in text field

Former Member
0 Kudos

Hi SAP Gurus,

I am stuck in a code where in I need to display set of instructions in a text view, it is a long text so I am achieving it with the help of text view and passing the text as hard code.

Below is the view how it looks like.

Now the issue is I want an URL in the link provided above.

But I am passing the text as hard code in the init method and binding it to textview and displaying.

Is there any way, I can create a URL and pass it to the text.

Please provide the solution.

Regards,

Aakash Awasthi

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi,

You need to create a linkToUrl / linktoAction UI element next to the text view.

Regards,

Kiran

Former Member
0 Kudos

Hi Kiran,

But I am passing the text 'Link' as a hard code text, then I need to re - adjust the UI and use Link to UI field with the text link, will this work ??

Regards,

Aakash Awasthi

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Aakash,

You can use FormattedTextView instead of TextView. Go to this link for more info:

FormattedTextView - Web Dynpro for ABAP - SAP Library

I did this using FormattedTextView UI Element.

See the following image, for the solution.

Regards,

Rohit