cancel
Showing results for 
Search instead for 
Did you mean: 

LinkToURL character limit?

former_member182429
Active Participant
0 Kudos

Hi all,

I am trying to use a LinkToUrl in my layout for a view, but it seems that WD truncates my URL (it is pretty long...).

Is there any way to increase the character limit?

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member182429
Active Participant
0 Kudos

Is this a design flaw or known limitation with the LinkToURL element in WD?

I am just wondering if there is any way to increase this character limit in the "reference" property in the element, instead of working around it by binding it to some variable.

Former Member
0 Kudos

Hi,

I think there is no limit to the text since the text type is string.you can do in this way

Set the text of URL using the method SET_TEXT method of class CL_WD_LINK_TO_URL.

data: o_text type ref to cl_wd_link_to_url,

value type string.

value = "testtesttesttesttesttesttesttesttesttesttesttesttesttesttest".

call method o_text->set_text

exporting

value = value.

Former Member
0 Kudos

Hi,

The simple solution will be to bind the URL with 'reference' property and create a corresponding short text for the URL and bind it to Property 'text'.

This UI element is provided to hide the link behind some easily readable text .

Regards

Vivek

Former Member
0 Kudos

Hi,

A small change in my code.

Method WDDOMODIFYVIEW.

data: o_text type ref to cl_wd_link_to_url,

value type string.

o_text ?= view->get_elment('LINK_TO_URL').

value = "testtesttesttesttesttesttesttesttesttesttesttesttesttesttest".

call method o_text->set_text

exporting

value = value.

Endmethod.

Former Member
0 Kudos

Hai,

I dont understand ur requirement.

If its LinktoUrl u no need to pass your URL, Just pass ur variable in that OnAction you do the rest...