Re: [web2py] Re: Displalay a form in light box or pop up window in view

2016-02-12 Thread Валерий Кучеров
it's easy: 1. Place modal_wrapper() function in your_web2py_app/modUles named 'my_util.py' (just for example) - you have to import html-helpers in it: from gluon.html import * 2. In view place: ... {{=BUTTON( 'Apply',_type="button",_class = "btn btn-default",_onclick="$('#cont_id').modal('

Re: [web2py] Re: Displalay a form in light box or pop up window in view

2016-02-12 Thread Валерий Кучеров
OK, but what do you mean under "pass that argument from my view" ? view is processed and rendered to html page at server side, JS runs only on the client side. so, if you can pass arg from veiw (i.e. arg is defined on server side), also you can pass it in main_page(): def main_page():

Re: [web2py] Re: Field validatio with multiple columns

2015-08-13 Thread Валерий Кучеров
OK, thank you, Dave, I've corrected my post according to your helpful suggestions Dave S писал(а) в своём письме Thu, 13 Aug 2015 22:44:42 +0300: On Thursday, August 13, 2015 at 12:09:11 PM UTC-7, Val K wrote: Forget all what you've read there (joke) If you want this rules works any

Re: [web2py] Re: SQLForms DAL error

2015-03-16 Thread Валерий Кучеров
You are right! But I mean that possible error's cause is the second assignment 'db=DAL(...) ' (after auth-settings and etc.) Dave S писал(а) в своём письме Mon, 16 Mar 2015 21:07:35 +0300: On Monday, March 16, 2015 at 6:41:57 AM UTC-7, Val K wrote: Hi! As I see, you defined your table