[web2py] Re: SQLEDITABLE: redirect after submit
If u have got the answer then please share with us also. On Wednesday, July 9, 2014 4:30:59 AM UTC+5:30, Fabiano Almeida wrote: Hi, Has like 'accepted' attribute in SQLEDITABLE? I need redirect to other page after 'ok' click. Thanks, Fabiano. -- 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.
Re: [web2py] Re: SQLEDITABLE: redirect after submit
Hi Samurai, I tried other way: use 2 buttons: sqleditable submit to save grid, then a second button to process new data and redirect to other page. I think this is not the best way... Fabiano. 2014-07-09 5:33 GMT-03:00 samurai shub.jain1...@gmail.com: If u have got the answer then please share with us also. On Wednesday, July 9, 2014 4:30:59 AM UTC+5:30, Fabiano Almeida wrote: Hi, Has like 'accepted' attribute in SQLEDITABLE? I need redirect to other page after 'ok' click. Thanks, Fabiano. -- 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. -- 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.
[web2py] Re: SQLEDITABLE: redirect after submit
Hi. You can write same as SQLFORM. example. def demo070(): response.title = 'demo070' response.view = 'plugin_sqleditable/sample.html' editable = SQLEDITABLE(db.employee_sheet, showid=False, maxrow=5) if editable.accepts(request.vars, session): response.flash = T('editable accepted') elif editable.errors: response.flash = T('editable has errors') else: response.flash = T('please fill out the editable') return dict(editable=editable) def demo071(): response.title = 'demo071' response.view = 'plugin_sqleditable/sample.html' editable = SQLEDITABLE(db.employee_sheet, showid=False, maxrow=5) if editable.process().accepted: response.flash = T('editable accepted') elif editable.errors: response.flash = T('editable has errors') else: response.flash = T('please fill out the editable') return dict(editable=editable) 2014年7月8日火曜日 20時00分59秒 UTC-3 Fabiano Almeida: Hi, Has like 'accepted' attribute in SQLEDITABLE? I need redirect to other page after 'ok' click. Thanks, Fabiano. -- 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.
Re: [web2py] Re: SQLEDITABLE: redirect after submit
Hi Kato, Thanks again!! Fabiano. 2014-07-09 8:52 GMT-03:00 'kato' via web2py-users web2py@googlegroups.com: Hi. You can write same as SQLFORM. example. def demo070(): response.title = 'demo070' response.view = 'plugin_sqleditable/sample.html' editable = SQLEDITABLE(db.employee_sheet, showid=False, maxrow=5) if editable.accepts(request.vars, session): response.flash = T('editable accepted') elif editable.errors: response.flash = T('editable has errors') else: response.flash = T('please fill out the editable') return dict(editable=editable) def demo071(): response.title = 'demo071' response.view = 'plugin_sqleditable/sample.html' editable = SQLEDITABLE(db.employee_sheet, showid=False, maxrow=5) if editable.process().accepted: response.flash = T('editable accepted') elif editable.errors: response.flash = T('editable has errors') else: response.flash = T('please fill out the editable') return dict(editable=editable) 2014年7月8日火曜日 20時00分59秒 UTC-3 Fabiano Almeida: Hi, Has like 'accepted' attribute in SQLEDITABLE? I need redirect to other page after 'ok' click. Thanks, Fabiano. -- 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. -- 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.
[web2py] Re: SQLEDITABLE: redirect after submit
I was a little wrong. If you want to redirect, and will not work because such in the ajax. Please write as the following. def demo050(): response.title = 'demo050' response.view = 'plugin_sqleditable/sample.html' editable = SQLEDITABLE(db.employee_sheet, showid=False, maxrow=5, deletable=True).process(next=URL('static', 'success.html')) return dict(editable=editable) 2014年7月9日水曜日 8時52分21秒 UTC-3 kato: Hi. You can write same as SQLFORM. example. def demo070(): response.title = 'demo070' response.view = 'plugin_sqleditable/sample.html' editable = SQLEDITABLE(db.employee_sheet, showid=False, maxrow=5) if editable.accepts(request.vars, session): response.flash = T('editable accepted') elif editable.errors: response.flash = T('editable has errors') else: response.flash = T('please fill out the editable') return dict(editable=editable) def demo071(): response.title = 'demo071' response.view = 'plugin_sqleditable/sample.html' editable = SQLEDITABLE(db.employee_sheet, showid=False, maxrow=5) if editable.process().accepted: response.flash = T('editable accepted') elif editable.errors: response.flash = T('editable has errors') else: response.flash = T('please fill out the editable') return dict(editable=editable) 2014年7月8日火曜日 20時00分59秒 UTC-3 Fabiano Almeida: Hi, Has like 'accepted' attribute in SQLEDITABLE? I need redirect to other page after 'ok' click. Thanks, Fabiano. -- 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.
Re: [web2py] Re: SQLEDITABLE: redirect after submit
Thanks Kato! Fabiano. 2014-07-09 9:24 GMT-03:00 'kato' via web2py-users web2py@googlegroups.com: I was a little wrong. If you want to redirect, and will not work because such in the ajax. Please write as the following. def demo050(): response.title = 'demo050' response.view = 'plugin_sqleditable/sample.html' editable = SQLEDITABLE(db.employee_sheet, showid=False, maxrow=5, deletable=True).process(next=URL('static', 'success.html')) return dict(editable=editable) 2014年7月9日水曜日 8時52分21秒 UTC-3 kato: Hi. You can write same as SQLFORM. example. def demo070(): response.title = 'demo070' response.view = 'plugin_sqleditable/sample.html' editable = SQLEDITABLE(db.employee_sheet, showid=False, maxrow=5) if editable.accepts(request.vars, session): response.flash = T('editable accepted') elif editable.errors: response.flash = T('editable has errors') else: response.flash = T('please fill out the editable') return dict(editable=editable) def demo071(): response.title = 'demo071' response.view = 'plugin_sqleditable/sample.html' editable = SQLEDITABLE(db.employee_sheet, showid=False, maxrow=5) if editable.process().accepted: response.flash = T('editable accepted') elif editable.errors: response.flash = T('editable has errors') else: response.flash = T('please fill out the editable') return dict(editable=editable) 2014年7月8日火曜日 20時00分59秒 UTC-3 Fabiano Almeida: Hi, Has like 'accepted' attribute in SQLEDITABLE? I need redirect to other page after 'ok' click. Thanks, Fabiano. -- 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. -- 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.