cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with LinkToURL in a table column

karsten_heth
Active Participant
0 Kudos
53

Hi,

let's say we have a LinkToURL element with a text and an image. Then a click on the text OR a click on the image navigates to the given URL.

This behaviour changes if you put the LinkToURL element in a table column. In that case the link is executed only if you click on the text, nothing happens if you click on the image (I assume this is a bug, of have I missed a detail?). If you have a LinkToURL element without a text and with an image only, this becomes a problem.

One column of my table contains a single image, and a click on that image shall open a link. Is there another way to do this except using a LinkToURL element?

Thanks,

Karsten

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Karsten,

Yes, this sounds like a bug.

Try LinkToAction, in action handler for this control type something like

final IWDWindow wnd = wdThis.getWindowManager().createExternalWindow(...);
wnd.open();

...if you are opening url in new window, or fire exit plug with necessary URL if you are replacing current window.

VS

Answers (1)

Answers (1)

karsten_heth
Active Participant
0 Kudos

Hi Valery,

yes, this hint is exactly what I needed. I just changed the LinkToURL to a LinkToAction, and this can be activated by clicking the text OR the image.

The necessary coding in the action handler would then look like this:

WDWindow wnd = wdComponentAPI.getWindowManager()
     .createExternalWindow("http://www.sap.com",
     "SAP Global", false);
wnd.open();

Thank you very much,

Karsten