CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 {Resolved}Confirmation Message After Insert/Update

Print topic Send  topic

Author Message
ckroon

Posts: 869
Posted: 12/11/2008, 9:43 AM

Client wants a message box to appear after successful Update/insert.
I was hoping this was available as an action, but alas it is not.
So.. on After Insert Event.. anyone got a snippet of code for me?
Can we make it appear for a few seconds, then disappear?

Tried to do a printf in the After Insert Event and also used the Action "Print Text".. neither worked for me.
The Insert took place.. but no messages to be seen.

I could do a page redirect, with a message that appears for 1 second.. but how do I get it to go back to the originating page with all the URLs still intact?

_________________
Walter Kempees...you are dearly missed.
View profile  Send private message
maxhugen

Posts: 272
Posted: 12/11/2008, 4:31 PM

How about using a javascript alert? Add a url param in AfterInsert and AfterUpdate, then check it on window.open?
_________________
Max
www.gardenloco.com | www.eipdna.com | www.chrisarminson.com
View profile  Send private message
datadoit
Posted: 12/11/2008, 9:07 PM

Simplest way would be to use the error control in AfterUpdate:

if ($Container->Errors->Count == 0) {
$Container->Errors->addError("Information updated.");
}
ckroon

Posts: 869
Posted: 12/11/2008, 9:32 PM

you guys rock...Thanks!
_________________
Walter Kempees...you are dearly missed.
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.

Web Database

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.