on 02-21-2006 4:41 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.