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.
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
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
_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
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:
> >
5 matches
Mail list logo