cancel
Showing results for 
Search instead for 
Did you mean: 

how to pass the values from popup window to parent's window

Former Member
0 Kudos

Hi Experts,

in my application i need to develop one popup window in that i have created 4 dropdowns and one ok button , if i willl click on that ok button the values should pass to parent window dropdownlistboxes

can any body suggest how i will get the popup window values

thanks in advance,

ramani.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ramani,

You can use getElementById property. Pass this value to and from Paretn<->child.

Maintain same name in both windows.

This is specific to HTML. If it is something in other language, Please let me know.

regards

-Kedar

reward points if useful.

Former Member
0 Kudos

Hi,

Thanks for your quick response. i developed the application using jspdynpage ,i used hbj tags for jsp

if possible can u place ur code

thanks a lot

Former Member
0 Kudos

Hi,

In JSPDynp u can use Session Beans very effectively for storing values.

try something like:

IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();

store using:

request.getComponentSession().putValue("sometext",

"session ctxt");

and to retrieve:

request.getComponentSession().getValue("sometext");

as u said u r using JSP u can try something like this:

to store :

<%

componentRequest.getComponentSession().putValue("sometext",

"text from JSP");

%>

for retrieve:

<%

componentRequest.getComponentSession().getValue("sometext").toString(); %>

I guess this helps.

regards

-Kedar

reward points if useful..

Former Member
0 Kudos

Hi,

actually my popup window jsp belongs to one component and the parent window belongs to another component so i need the data of popup component to my parent component and

also can u suggest me to how to call jsp in a Link.

in the Link in onClick it is not allowing me to call jsp alone thats why i developed another component.

thanks and regards.

ramani.

Former Member
0 Kudos

Hi Ramani,

I can provide few inputs on how can we control JSP 2 from JSP1.

Here is the code. Check if you can convert this to make useful to you. I am not passing values but control.

here it is:

JSP 1.

<h1>Page One</h1>

<br>

<a href="/irj/portalapps/<PAR_FILE_NAME>/images/<HTML_PAGE_NAME>.html#part1">part 1</a>

<br><br><br>

<a href="/irj/portalapps/<PAR_FILE_NAME>/images/<HTML_PAGE_NAME>#part2">part 2</a>

<br><br><br>

<a href="/irj/portalapps/<PAR_FILE_NAME>/images/<HTML_PAGE_NAME>#part3">part 3</a>

JSP 2.

<h1>Page Two</h1>

<br>

<a name="part1">

<h3>Part 1</h3>

</a>

<a name="part2">

<h3>Part 2</h3>

</a>

<a name="part3">

<h3>Part 3</h3>

</a>

This way you can move from one JSP to other.

regards

-Kedar Kulkarni

reward points if useful.

Message was edited by:

Kedar Kulkarni