[web2py] Re: Restful api for uploading files

2017-10-18 Thread Mujeeb Farees
https://www.google.com/ :D -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups

[web2py] Re: SQLForm not processing everytime values in form are changed

2017-10-16 Thread Mujeeb Farees
Yeah I figured that out. Made the following change and it worked. *Controller* # Days Form if session.days: days_form = SQLFORM(db.days,record=session.days,submit_button='Save',showid=False, _id='days_form') else: days_form = SQLFORM(db.days, submit_button

[web2py] SQLForm not processing everytime values in form are changed

2017-10-11 Thread Mujeeb Farees
I have an sqlform that is not working as expected. I think I have the wrong sequence or something and would like some help with it. *Controller* # Days Form if session.days: days_form = SQLFORM(db.days,record=session.days,submit_button='Save',showid=False,

[web2py] Filter python list based on JavaScript variable in views

2017-10-04 Thread Mujeeb Farees
Hi, The controller returns rows from building table via which the dropdown is populated. When a user selects a building from the dropdown, the address of the building should be displayed in the paragraph tag. Here is what I have done so far, *Controller* def index(): return

[web2py] Re: Show sqlform when button is clicked

2017-09-21 Thread Mujeeb Farees
I used JQuery instead and did the following, *View* Home Add Home {{=form}} $( document ).ready(function() { $('form').hide(); }); function displayHomeForm() { $('#chooseHome').hide();

[web2py] Show sqlform when button is clicked

2017-09-20 Thread Mujeeb Farees
The code is as follows, *Controller* def index(): form = SQLFORM( db.home, submit_button = 'Save' ) *View* Home Add Home {{=form}} I want to make the form visible only when "Add Home" button is clicked. Any suggestions? -- Resources: -

[web2py] Re: Use length of list:reference field in query

2017-04-17 Thread Mujeeb Farees
t -- > http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#find--exclude--sort > ). > > Anthony > > On Monday, April 17, 2017 at 5:26:33 AM UTC-4, Mujeeb Farees wrote: >> >> I know the auth_user table should have a company field for the case >&g

[web2py] Use length of list:reference field in query

2017-04-17 Thread Mujeeb Farees
I know the auth_user table should have a company field for the case below. But this is just a sample data, the actual data is different. *Company Table* | *id* | *name* | *users* | | 1 | Com1 | |1|2| | | 2 | Com2 | |3|4|5| | The users field is of list:reference type that