NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Alberto on November 28, 2008, 02:28:21 AM
-
Hi,
I need to run a routine each time any control is accepted.
Now I´m adding the code in each control in the 2Validate::ControlName Routine
I want to put the code in a single embed.
Which embed must I use?
Thanks
Alberto
-
Hi Michelis,
I recommend you make a new routine containing the code, and then just add a call to that routine to the various form fields "validate" routines.
cheers
Bruce
-
Hi Bruce,
THats what Im doing...
How About a template check to call a Single routine from each field?
Cheers
Alberto
-
Forgot to mention... they are 300 (three hundred) fields!
-
i have often thought it would be nice to have either a generic routine or a tick box on each field to call a generic routine, (perhaps conditional)
I just completed a project where I need to call the same recalc routine for each field, and well there were not 300 fields (yuck) I did have a lot of pasting the same "do recalc_rtn" code. Felt like a template would save some time...