[web2py:26556] add record to table using form (view) without reloading page

2009-07-15 Thread DenisBY
I'm sure this question was asked but couln't find it. I have form like this (it looks like table): a | a | a | ... - b | b | b | ... - c | c | c | ... _ | _ | _ | _ [submit] where b and c is old records and _ is the form where I can enter new data.

[web2py:26562] Re: add record to table using form (view) without reloading page

2009-07-15 Thread DenisBY
build the the table is generated after > form.accept > - Simpler option: >    redirect(URL(r=request,args=request.args)) after form.accept > - Complex but faster solution: >    use ajax to render the form. Will re1uire lots of changes in your > code. > > On Jul 15, 9:53 am, D

[web2py:27057] Re: allow NULL in date field in SQLFORM

2009-07-21 Thread DenisBY
Hello How I should define format if my controller looks like: def view(): form = SQLFORM(db.book) records = db(db.book.id>0).select(orderby='date') if form.accepts(request.vars): redirect(URL(r=request,f='view')) if form.errors: response.flash="error" return dict(f

[web2py:27151] Re: allow NULL in date field in SQLFORM

2009-07-22 Thread DenisBY
_DATE() you also need to change the > format for calendar.js. This is done in web2py_ajax.html. > > Alternatively you can leave IS_DATE and web2py_ajax.html as they were > and translate both strings using internationalization. > > Massimo > > On Jul 21, 9:16 am, DenisBY wr

[web2py:27260] Re: allow NULL in date field in SQLFORM

2009-07-23 Thread DenisBY
thanks! it works! On 23 июл, 00:12, mdipierro wrote: > do not use > > {{=row.datefield}} > > use > > {{=db.table.datetfield.formatter(row.datefield)}} > > On Jul 22, 8:22 am, DenisBY wrote: > > > I've translated it so translation looks like: > >