I'm using a modal bootstrap to show a form from a table, this is the 
funntion called from JS webcomponent

$.web2py.component("{{=URL('default', 'nuovo_evento.load')}}"+ "?titolo=" + 
title +"&risorsa=" + risorsa + "&start=" +start + "&end=" + 
end,"modulo-evento");


Function of the controller:
def nuovo_evento():
    db.evento.fine.default = datetime.strptime(request.vars.end, "%Y-%m-%d 
%H:%M:%S")
    db.evento.risorsa.default = request.vars.risorsa
    db.evento.risorsa.default=request.vars.risorsa
    db.evento.inizio.default=datetime.strptime(request.vars.start, 
"%Y-%m-%d %H:%M:%S")
    db.evento.fine.default=datetime.strptime(request.vars.end, "%Y-%m-%d 
%H:%M:%S")
    
db.evento.inizio.writable=db.evento.fine.writable=db.evento.risorsa.writable=False
    form=SQLFORM(db.evento)
    if form.process().accepted:
        session.flash = 'form accepted'
        response.js = 'hide_modal("#myModal");'
        redirect(URL('sched.html',args='3'),client_side=True)
    return locals()
                    
I have 1 drop down in the modal depending on another drop down. I can I 
manage in the modal? 
I explain better: if I select one value of the first drop down the second 
drop down has to have different values depending on the item selected in 
the first modal...
Thank you



-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.

Reply via email to