cancel
Showing results for 
Search instead for 
Did you mean: 

Open a view in a new browser window

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Bala,

Are you trying to open your window like this:

wdComponentAPI.getWindowManager().createWindow(IWDWindowInfo,true);

Regards,

Murtuza

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Bala,

If you want to open in a new browser then go for createExternalWindow and give the url of the application that opens your InfoPopup.

Hope this would meet your requirement.

Regards,

Murtuza

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Kanwalpreet

I need to implement this in Webdynpro application (not in Portal using JSP).

If I am not wrong, how do I use Javascript in webdynpro Application

Regards

Bala

Former Member
0 Kudos

Hi Bala,

If you want to get an external window then you need to create a new application for your window and give the url of that application in createExternalWindow(). For parameter passing you need to append those things in the url itself.

Regards,

Murtuza

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi

You can use LinkToUrl and provide url to another application.

Regards

Abhimanyu L