[web2py] Customize SQLFORM.grid view page and add custom "Back" button

2014-09-23 Thread Kyle Flanagan
I have a controller that creates a grid off of a table -- very basic grid. I test to see if the user is "viewing" an item in the grid (if request.args and request.args[0] == 'view') and if so, I customize the view to present the information in the grid in a different layout. Now, I'd like to ad

[web2py] Customize SQLFORM.grid

2014-09-09 Thread Luciano Laporta Podazza
Hello, I would like to take advantage of SQLFORM.grid search, listing and pagination capabilities to generate a listing from a table, but I need to customize the resulting rows like this:

[web2py] Customize SQLFORM.grid fields

2013-06-06 Thread keeperdss
Hello everyone. I'm new to web2py and I have a question about customizing fields in SQLform.grid. Probably the most frequently asked question for you :) Let me describe what I want to do: There is a table consisting of the following columns: id | min_time | max_time | execute_time | level_warn

[web2py] Customize SQLFORM.grid

2012-02-09 Thread Bruce Wade
Hi, In the old framework I would just query the database and loop through the values manually creating the HTML table etc... Which allows me to do something like this: types = { 'bp': 'Product Bonus', 'sb': 'Sponsor Bonus', } for row in rows: Type types[row.type] Is there a

[web2py] CUSTOMIZE SQLFORM.grid

2012-01-20 Thread cyber
I need not VIEW / EDIT / DELETE records in selected db table. I want user to be redirected to another page after clicking some link. But I have no ideas of how to customise grid. Is it possible to add some additional link to each record in SQLFORM.GRID?