[web2py] How to apply language translation on requires field when showing other table field values.

2012-08-21 Thread Pradeesh
In my application I have to specify a title field as below Field('title', type='string',label=T('Title'),requires=IS_IN_DB(db,db.t_title.id, '%(name)s',orderby=db.t_title.id)) all the title options are mentioned in the t_title table. For example in t_title table I have values Mr. and Mrs. For

[web2py] how to use Not belongs

2012-08-13 Thread Pradeesh
In my control I have an array with so many values. I want to write a dal query to update a table rows which having ID not in this array. I want something like this. db(db.table1.field1.notbelongs(array)).update(field2=False) I have tried like this db(db.table1.field1 not in(array)).update(field

[web2py] Right align the SQLTABLE data.

2012-08-02 Thread Pradeesh
I am facing a problem to allign SQLTABLE data properly. How can I specify custom styles for SQLTABLE data. --

[web2py] SQLTABLE row number

2012-05-29 Thread Pradeesh
How can I display a sequence number in the web2py SQLTABLE. I have tried to display the database ID field. but if I am deleting any record. The sequence number order is missing. Please advice.

[web2py] unable to call ajax url from external javascript.

2012-02-20 Thread Pradeesh
I am new to web2py. form my view i am able to call web2py ajax as " ajax("{{=URL(r=request,c='control2',f='function1')}}"['name'],'target'); ". But the same command is not working from an external javascript. How can i call a function (in another control file) using ajax from an external JavaScript

Re: [web2py] Re: How to start web2py server permanently

2011-06-06 Thread pradeesh narayan
ll your server machine is re-booted. If it has, it > will terminate. > > Cheers, Rahul > > > On Jun 6, 11:58 pm, danto wrote: > > 2011/6/6 Pradeesh > > > > > I have installed web2py on a remote opensuse server 10.3 and I am > > > using a Putty to s

[web2py] How to start web2py server permanently

2011-06-06 Thread Pradeesh
I have installed web2py on a remote opensuse server 10.3 and I am using a Putty to start the web2py server. But when i am closing the Putty session in my machine, the web2py server is also closing. How do I start web2py server permanantly.