Greetings
I have a form built with sqlfactory
form = SQLFORM.factory(
Field('meter', requires=IS_NOT_EMPTY()),
Field('date_from', 'datetime'),
Field('date_to', 'datetime'),
Field('amt', 'float'))
then i want to have a form in the view where users will access the 3 first fields in normal mode and the amt one in
Readonly,
After
filling those 3 i use
Ajax(Where the problem is) to load a function that has a
query in it to calculate the
amount, then i fill the output of that function to the last field(amount).
The problem i have is how to call that ajax
method to
launch the query and auto fill the field when those 3 fields are filled.
Regards,
Oasis