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. |
 |
 |
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 |
 |
 |
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. |
 |
 |
|