You need to sign in to do that
Don't have an account?
bcg
how to display child windows value on parent window.
Hello ,
I want to display values of child window on parent window. e.g. i have one page and when on that page when i click on textbox a new window popup. in that popu window some lookup fileds are present and i want when i slect value from tha lookup fields and click on save button. value wil be saved in record and it also display on that textbox in the parent window and popup window close after that.
Please anyone tell me how to fetch the values on parent window.
Thank in Advance.
On clicking the textbox call a javascript method which calls new page where you have that lookup logic written. On selecting any value in child call a JS which will enter that value in parent page field.
Find the sample code:
Hope it helps
Thanks for reply.... but i don't understand what is the result name here. am posting my code. pls check that code and then pls tell me what to do in that for displaying value in textbox of parent window and also its saved in record of my object.
Parent page:
Child Page:
Controller:
Please check ths and tell me how to do.
Thanks....
Hi,
In child page resultname will be the value of inputfield which u need to populate on parent page.
So when you select value from lookup in the inputfield tage you can have onchange event & call setvalue method passing the value (this.value) as parameter.
Hope this solves your issue
function check2(item) { alert('hello world = '+item); window.opener.location.href="/apex/customlookupinsertion?Id="+item; window.close(); }