on 09-04-2007 12:10 PM
Hi Experts,
Can you pls guide me to open a new window ( Browser) on clicking a Button, Currently I could open a window but it looks like popup.
In my case I want a separate browser to be opened.
Please advice.
Regards,
Bala
Hi,
Go through <a href="/people/community.user/blog/2007/08/20/open-views-in-non-modal-external-windows--the-patch-version blog.
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Murtuza,
I am able to open the application in a new Browser window, and I could pass the values as a query String.
Thanks
Bala
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bala,
Are you trying to open your window like this:
wdComponentAPI.getWindowManager().createWindow(IWDWindowInfo,true);
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Murtuza,
I am using the below code to open the window,
IWDWindowInfo windowInfo = (IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("InfoPopup");
IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo, true);
window.open();
but it does not open in a new browser.
There are actually only 2 options:
-- external browser window via URL (separate WD application is started)
-- internal (non-movable non-resizable) modal window inside main application window.
first at the html page, add the code:
<script language="javascript">
function openwindow(){
window.open("view");
}
</script>
in the page_load event,add the code:
private void Page_Load(object sender, System.EventArgs e)
{
this.ImageButton1.Attributes.Add("onclick","openwindow()");
}
Message was edited by:
Kanwalpreet
Hi Murtuza,
While opening the new window , I need to pass few params, and in case I am creating a application and apssing that url to open an external window, how do I pass the params or how do I share the context between the application
To share the context attributes, I going through the blog sent by "Satyajit"
Regards
Bala
The requirement was when you click on a link you open a new iview and you want it to retrieve a parameter.use a standard query string.
So the easiest way to do this is to create a javascript function which will use window.open to take you to your iview, I suggest using URLGenerator for this. Then append on ?myparam=value onto the end you should be able to retrieve this from the request object in the doInitialisation method.
You will end up with something like http://mydomain.com/irj/servlet....../myiview?myparam=myvalue.
Hi
You can use LinkToUrl and provide url to another application.
Regards
Abhimanyu L
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
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.