[ic] action after submit from table-editor -- correction

Mike Heins interchange-users@icdevgroup.org
Thu Mar 27 10:18:00 2003


Quoting Randy Moore (ramoore@axion-it.net):
> Hi all,
> 
> Sorry, but there was an error in the example in my last message. This one 
> should be correct.
> 
> IC 4.9.7+  (recent cvs)
> 
> Is there a way to specify an action that happens *after* a successful table 
> update using the table editor tag?
> 
> I've tried various approaches, but haven't had any luck.
> 
> The most promising (I thought) was using an "mv_cleanup" action.
> 
> [set RunAfter]
> [update_stuff]
> [/set]
> 
> [table-editor
> 		blah=
> 		blah=
> 	...
>         		hidden.mv_cleanup=RunAfter
> ][/table-editor]
> 		
> The html form that this created looked good, but my [update_stuff] tag did 
> not get called.

mv_cleanup is what you want. It does work -- it is used in the UI in
a couple of cases, notably in the update order status routine.

It happens directly after the form action is executed, but before the
page is displayed. You can examine the do_process routine in Vend::Dispatch
if you want to see what happens.

-- 
Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.513.523.7621      <mike@perusion.com>

Software axiom: Lack of speed kills.