OK, so I'm wanting to calculate values for a few fields when a SQLFORM 
record update is accepted. My understanding is that I should use 
onvalidation = calculation_function but I'm finding that within my 
onvalidation function form.vars does not include the id field which I need 
to know in order to do the other db lookups necessary for my calculations. 
Why is the id field missing from the form var that onvalidation passes it to 
my function? Is this some sort of security/data integrity thing to prevent 
me from foolishly changing it? What's the appropriate way to pass the 
record's ID to my onvalidation function?

~Brian

Reply via email to