cancel
Showing results for 
Search instead for 
Did you mean: 

iView in Popup window

Former Member
0 Kudos

Hello all,

Can iViews be placed in popup windows?

Idealy when the page is displayed the popup would not initialy appear, only upon an event in an iView on the page would the popup iView do its thing (eventing between iViews is not a problem, just the popup).

I imagine if this is possible then it's done from the iView or page properties somehow.

Directions to resources detailing this or any help you can offer would be great.

Thanks for your time,

Patrick.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Don't know, if I understand you right and if I can help you but I will try..

If you want to open an iView in a new window, you can set a page or iView property parameter called "Launch in" from 0 to 1 to open a page or iView in a popup window. You can also set parameters to open the external page in a special windowsize.

Regards,

Frank

Former Member
0 Kudos

Hi Frank,

The actual requirement is this;

I am displaying a table in a Java iView on a page, simple. When a particular cell is clicked I have to run an R3 transaction passing the cell contents as parameter. That's all fine so far, I display the transaction in the same iView and give the user a 'Back' button to move back to the table. I've been asked that when the cell is clicked that the table remain on display on the page but a popup window appears displaying the transaction. As far as firing events across iViews goes, that's all fine, no problems there. The problem I have is with opening the transaction in an iView that pops up.

I'll give your suggestion a go and let you know how that works out for me.

Thanks Frank,

Patrick.

Former Member
0 Kudos

Hi, tried it.

What I did was create a simple iView; an HTML container showing the google homepage. I changed the 'Launch In' parameter of the iView to '1' and added the iView to a page (page content). When I display the page, no popup, the iView is displayed as part of the page as normal. Is there any other parameters I need to change or have I done something else wrong?

Again, help is well appreciated.

Thanks, Patrick.

Former Member
0 Kudos

Hi Patrick,

when you open an iView from a page you must set the parameter in the page settings, not in the iView settings. When you want to open a single iView without containing it in a page, then you have to change the parameter directly in the iView. That means in your case, you have to change the parameter only in the page settings.

Hope that helps,

Frank

Former Member
0 Kudos

Hey Frank,

Since I wanted a page to display normaly, to show an iView and the popup only to appear after some user interaction on that page I can't set the pages' 'Launch In' to '1'.

I found a solution although not gracefull, it'll do just now. When the user clicks on the cell I use URLGenerator to get me the URL for the transaction, I then use javascript to open the URL in a popup window leaving the table displayed on the page.

It's not a great solution but it works and it'll do.

Thanks for your help,

Patrick.

Former Member
0 Kudos

Hi Patrick,

I have a simliar task to do, could you explain in detail how you managed to do the trick?

This would be very helpful for me.

Kind regards

Francisco

Former Member
0 Kudos

Hi Francisco,

Sorry for the delay in replying, I was away from the office for a few days.

Once I have the URL for the transaction, from using URLGenerator, I have the following piece of code;

myForm.addRawText("<script>window.open('"zvanURL"','popup','width=800,height=600,left=10,top=10,resizable=yes,scrollbars=yes');</script>");

the String variable zvanURL is the generated transaction URL, myForm obviously comes from this.getForm();

This opens a popup window displaying the transaction.

I hope this helps you,

Patrick.

Former Member
0 Kudos

Hi,

I also want this functionality of displaying URL iView in popup window.But I want to set the position of the window also.so that any user clicks on the link,the popup will be placed such that other things on page are also visible.It should not depend on the bvrowser settings .

. Is it possible with some properties of URL iView?