>
>         This might be sort of an easy question so I apologize. I am making 
> an application where the user selects from a drop down list of template 
> messages and then the program sends a text where the message body depends 
> on what item was selected from the drop down. I.e If I selected 6 from the 
> drop down list the message would send string "update" or if it selected 3 
> it might send the word "lock". 
>
It is not clear to me why you need to expose to db crud forms instead of 
using a fale one and process the request accordingly. I'd use something like

def action():
    form = SQLFORM.factory(<...>)
    if form.process().accepted:
        <here you process the message with the submitted values>
    return dict(form=form, ...)

Note that you can use actual database tables/fields and their validators 
with the form factory.
http://www.web2py.com/book/default/chapter/07#SQLFORM.factory

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to