maggiemel
Posts: 75
|
| Posted: 03/28/2005, 12:09 PM |
|
More Editable Grid questions:
With my record forms, I like to send my users a message (after insert / update / delete) telling them that the action has been performed. I do this by appending a "Message" parameter to my Redirect URL and then a "Before Show" event which makes use of a custom template blow. Works nice.
Now I have an Editable Grid and I would like to send the same messages to users. However, with my Editable Grid if I use the same method to append the Message parameters, I get as many messages as there are records in the Editable Grid form. So, if the grid displays five records and I change one, then submit the form, the redirect page shows my "Your records have been updated" message five times!
I know there's probably an easy way around this -- only I can't seem to figure it out myself. Any help (peterr)?
Many thanks, as always.
_________________
Melissa Cahill
http://www.hellcatmaggie.net/ |
 |
 |
Nicole
Posts: 586
|
| Posted: 03/29/2005, 1:44 AM |
|
Melissa,
You can put the code to After Submit event of editable grid. It is fired if no error is occurred and after all updated operations are performed.
_________________
Regards,
Nicole |
 |
 |
maggiemel
Posts: 75
|
| Posted: 03/30/2005, 8:19 AM |
|
Ah ha! Thanks, Nicole -- that's much better.
_________________
Melissa Cahill
http://www.hellcatmaggie.net/ |
 |
 |
|