[web2py] why cant I submit a customized form with this button

2017-05-04 Thread Maurice Waka
I have a web2py app, with two problems: 1. I can submit the customized form with pressing 'Enter' but when clicking the button, I get an error. 2. when pressing 'Enter', the form is submitted but the page is refreshed immediately. How can i stop that? Here is the code; This does not work

[web2py] Re: 502 Bad Gateway - no tmp/web2py.socket file

2017-05-04 Thread Ari Lion BR Sp
I have the exact same problem. Some resulution? (Running in Virtualbox (Host Windows7 Pro / Guest Ubuntu-64) , NAT => Ports redirection (8080 Host / 80 Guest)) Em segunda-feira, 28 de novembro de 2016 08:20:05 UTC-2, Richard Brown escreveu: > > The only message is still: > > 2016/11/28

[web2py] Re: GAE Datastore performance / potential index issue

2017-05-04 Thread dlypka
Reread the GAE Query documentation. Your use case is not the use case that GAE is optimized for. Fetch fewer records per call. Example:'= web2pyChildTableClass = db.ChildTable # gives the web2py Table class theNativeGAEChildTableClass = web2pyChildTableClass._tableobj # magic... into native GAE

[web2py] onupdate or ondelete for 'Check to delete' ?

2017-05-04 Thread Robin Bryce
Hi, Using web2py 2.14.6. In my controller function I have something like the following: def onupdate(form): log.info("updated %s", str(form.vars['id'])) def ondelete(tbl, id_): log.info("About to delete %s", str(id_)) return dict(grid = SQLFORM.grid(db.mytable, create=True,

[web2py] Re: Is there an SQLFORM callback *after* the query is executed ?

2017-05-04 Thread Robin Bryce
Blast, I believe I've got myself confused. onupdate and oncreate are certainly called after the query is applied in FORM.accepts On Thursday, 4 May 2017 12:14:20 UTC+1, Robin Bryce wrote: > > Hi, > > I'm using the 'ondelete', 'onupdate', 'oncreate' hooks for SQLFORM to log > that various

Re: [web2py] Re: Help with building query functions in a web app - links to tutorials etc

2017-05-04 Thread 'Matthew J Watts' via web2py-users
Thanks Marlysson. I'm just going through that chapter now. What i really need to know is how I can trigger queries through various drop down boxes. For example, for one query, i need to create a cascading drop box that can select data sets at different taxonomic levels (animal kingdoms, family,

[web2py] Is there an SQLFORM callback *after* the query is executed ?

2017-05-04 Thread Robin Bryce
Hi, I'm using the 'ondelete', 'onupdate', 'oncreate' hooks for SQLFORM to log that various changes are *about* to be attempted. Is there a way to follow up with a message if the query fails ? I've found FORM.onfailure but that appears to be about validation failure. Thanks, Robin --

[web2py] Re: [REMEMBER_ME] Not working

2017-05-04 Thread sunda . amran
Hey Paolo, I am using the web2py version

Re: [web2py] Re: In SQLFORM.grid, setting a session var when the user click on search or reset

2017-05-04 Thread Massimiliano
What about to use a custom button instead of the “view” one? You can use the grid ’s links options to build you button. and then you can use the A(…, callback=URL(…), target=yourdiv) to fill yourdiv with your details Take a look here http://www.web2py.com/books/default/chapter/29/05/the-views#A