cancel
Showing results for 
Search instead for 
Did you mean: 

Button: open link in new window

Former Member
0 Kudos

Hi all!

Quick question: Is there an API to launch a URL in a new window?

I could easily use a LinkToUrl (with target=_TOP), but would like to use a button for aesthetic reasons.

Thanks,

faB

Accepted Solutions (1)

Accepted Solutions (1)

HuseyinBilgen
Active Contributor
0 Kudos

hi,

1. create an action

2. link this action to button

3. On action method add something like below;

IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(

"http://<yourlink>", "<window title>", false);

window.open();

Former Member
0 Kudos

wonderful, thank you!

how about extracting the selectedTab property string from a tabsrip at runtime?

cheers!

Former Member
0 Kudos

> how about extracting the selectedTab property string

> from a tabsrip at runtime?

Bind the selectedTab property to a context attribute, and you can retrieve the tab ID from there.

Olivier

Answers (0)