on 06-12-2009 7:16 AM
Hi All,
I have a requirement to refresh the Parent window from a popped up window, how can be done using EPCM or any such API.
From ivew <b> X </b> I am opening iView <b> Y </b> in a popup window.
In this popped up window I update the content for iView <b> X </b>.
So when the task in iView <b> Y </b> is done, on click of a button I want to refresh iView <b> X </b> and close the iView <b> Y </b>.
can this be possible.
In normal java script we can submit window.parent form but how is that possible here..
<b> Note: my development is in par files & JspDynpage / Dynpage.</b>
Many Thanks,
Sai
Hi Sai,
in you pop up window, you can access the opener object (the parent window) simply writing something like this:
win = window.opener();
after that you should launch a windows reload:
win.location.reload()
so my suggestion is to put these two lines of jscript into a function and call it at onclick event of your form button.
Hope this help.
Cheers
Roberto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> Hi Roberto,
>
> Thanks for your advice,
>
> I have already tried this
> By doing so the portal navigates back to its home page, I want to stay with in the same role & iView and reload the current / parent iView itself.
>
> So any other way of doing this ...?
>
> Thanks & Regards,
> Sai
Hi Sai,
just few question to clarify the issue:
- are you using a standard portal framework page (with iframes) or the light one?
- the iview you want to refresh is an URL iview (loaded into an iframe) or is embedded?
Cheers
Roberto
Hi Roberto,
I actually dont know what does this light, iframe or embedded iview.
What all I have is I have a par file project of JspDynpage where each componet is represented by a iView.
I created roles and assigned these iviews/pages/worksets to these roles. so when the user navigates to this role in TLN my application is represented in iviews. (these are not URL iviews / iviews not being called in HTML iframe)
Hope this some how answers your query.
Thanks & Regards,
Sai Krishna
Edited by: Konchada Sai Krishna on Jun 17, 2009 5:29 AM
Hello,
Try this -- not sure if it would work but then you have nothing to lose.
Create a quick link for iView X. Now from X opening the pop up which is Y. After the processing in Y instead of reloading the parent window with a simple refresh, set the window url to the quick link url and close the child pop up Y.
Do let me know if what I wrote makes any sense to you
Good Luck!!!
GLM
Hi GLM,
Thanks for your help, sorry for the late reply.
Your suggestion did solved my problem.
As said by you I have created a QuickLink for the custom portal role (comes in TLN, 2nd level).
In the iview, using the httpservlet request got the serverid & path.
on click of abutton using window.opener.location.href to this server url appended by this Quicklink.
And then window.close.
This did exactly what I need.
once again thanks for the help,
Regards,
Sai
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.