on 11-01-2006 2:47 PM
Hi,
A link can be open using LInkToURL ,by setting it's reference i able to open that link, but i want through writing code link should be open.So how i will do it.
Thanks & Regards
muna
Hi KK and SP,
My requirement is based on the user id my control will be redirected accordingly.I just created custom control and in that control i wrote the code ,So just check it.Any change let me know.
public void wdDoInit()
{
//@@begin wdDoInit()
String str=WDClientUser.getLoggedInClientUser().getSAPUser().getUniqueName();
System.err.println("User ID :"+str);
if(str.equalsIgnoreCase("administrator")){
IWDWindow win = wdComponentAPI.getWindowManager().createNonModalExternalWindow("http://www.yahoo.com/", "First Page");
win.open();
}else{
IWDWindow win = wdComponentAPI.getWindowManager().createNonModalExternalWindow("http://www.google.com/", "First Page");
win.open();
}
//@@end
}
Thanks & Regards
muna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi SP,
There is no method show() is prasent in IWDWindow class.Can you check it.
Thanks & Regards
muna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Muna
What do you mean? Do you want to open a new window with some URL? If so try this...
IWDWindow win = wdComponentAPI.getWindowManager().createNonModalExternalWindow(URL, winTitle);
win.show();
BR
Sergei
Message was edited by: Siarhei Pisarenka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
wdComponentAPI
.getWindowManager()
.createNonModalExternalWindow(URL, <b>winTitle</b>);
FYI: there is an error in WD documentation. Actually, the last parameter is not a title but rather browser window name (in same sence as it use with JavaScript window.open)
Valery Silaev
SaM Solutions
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.