CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Related to smart lookup example

Print topic Send  topic

Author Message
ngaisteve1

Posts: 4
Posted: 02/06/2007, 7:54 AM

Hi, this is my first post. My name is Steve, from Malaysia. I would like to ask something related to the smart lookup example. I managed to pass the value from my popup window back the page which calls it. But my problem now is to refresh the page which calls it after I got the value. How do I make that page refresh by it using that value?

Example, my field is I/C number. I click the link and a popup window appear and I search the record using I/C number. After I found the record, I click a link (example also I/C number) in this popup window). Then, the popup window will close by itself. Then the page which calls the popup window will refresh the entire page using the new I/C number from the popup window.

My question is how do I tell codecharge to refresh itself using that new I/C number? Thanks a lot for helping.:-)
View profile  Send private message
E43509

Posts: 283
Posted: 02/07/2007, 10:14 AM

Not sure if this helps ya, but I do a refresh of the parent window from a popup window in which I did an edit.
On the 'close' link on the popup window
<a href="javascript:opener.location.reload(true);self.close();">Close</a>
I'm thinking that after passing the value back in which you are probably doing something like window.opener.document.form.field.value =x
Youd can do something that will look like opener.submit and 'push' the submit button
If you get it, please post back.
View profile  Send private message
ngaisteve1

Posts: 4
Posted: 02/07/2007, 8:25 PM

Ya, i did tried that. Below are my code:

window.opener.document.abc.submissionid.value = s_submissionid;

window.opener.focus();
window.opener.location.replace(window.opener.location.href+"&NewSubmissionID=" +s_submissionid);
//window.opener.location.replace(window.opener.location.href+((window.opener.location.search)?"&":"?")+"NewSubmissionID=" +s_submissionid);
//window.opener.location.reload();
window.close();

I manage to pass back my submissionid value to a textbox, close the popup window and the load reload itself. But, the page will see back the same record and not the new submissionid record. What my code lacking still?
View profile  Send private message
E43509

Posts: 283
Posted: 02/08/2007, 5:47 AM

I haven't tried this but instead of reload, after you sent the value back to the form as you have above, could you do something along the lines of:
window.opener.document.myform.submit();
?
View profile  Send private message
ngaisteve1

Posts: 4
Posted: 02/08/2007, 6:12 AM

I saw my URL of 2 ID. Example, SubmissionID=20060124&NewSubmissionID=20060213

How do I replace the old SubmissionID with the NewSubmissionID?
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.