[web2py] Re: removing .load extension from grid pagination and export csv links

2013-08-03 Thread Matt Grham
='Infinity', w2p_timeout=3)) On Saturday, August 3, 2013 4:10:49 AM UTC+2, Matt Grham wrote: Thanks a lot Niphlod. Actually that was the case. I started to use web2py 2.4.6 but my app was built using web2py 1.99.7. I updated web2py.js, web2py_ajax.html and layout.html. It works now. But if I

[web2py] groupby in sqlform.grid resulted into unsupported query

2013-08-03 Thread Matt Grham
I have a table like: 3 records found Man_IDMan_Type 8BC 8BC 8BC When I try to group by Man_ID, it does the grouping but it prints Unsupported Query on top of the table *Unsupported query Man_IDMan_Type 8BC

[web2py] Re: groupby in sqlform.grid resulted into unsupported query

2013-08-03 Thread Matt Grham
) and all the other fields need to be an aggregate of the basic field (such as count, min, max, etc) ? On Saturday, August 3, 2013 8:09:39 PM UTC+2, Matt Grham wrote: I have a table like: 3 records found Man_IDMan_Type 8BC 8BC 8BC

[web2py] Re: groupby in sqlform.grid resulted into unsupported query

2013-08-03 Thread Matt Grham
meaningful. man_type needs to be either included in your groupby (in which case, it equals a distinct type of query) or used as an aggregate (first, last, count, etc etc etc) On Saturday, August 3, 2013 8:52:21 PM UTC+2, Matt Grham wrote: Fields to be shown: fields = ( db[str_tableName].Man_ID

[web2py] Re: groupby in sqlform.grid resulted into unsupported query

2013-08-03 Thread Matt Grham
BC Thanks, Matt On Saturday, August 3, 2013 12:40:31 PM UTC-7, Niphlod wrote: it may work on some backends (namely, SQLite), but that query doesn't rally make sense. What do you need as a result precisely ? On Saturday, August 3, 2013 9:25:44 PM UTC+2, Matt Grham wrote

[web2py] Re: groupby in sqlform.grid resulted into unsupported query

2013-08-03 Thread Matt Grham
Could be but I am trying to do it in SQLFORM.grid statement. How can I do that? On Saturday, August 3, 2013 4:04:40 PM UTC-7, villas wrote: For the example you provide, probably better with: distinct=True That is the usual SQL method of suppressing duplicate rows. -- --- You received

[web2py] Re: removing .load extension from grid pagination and export csv links

2013-08-02 Thread Matt Grham
want On Friday, August 2, 2013 7:06:22 AM UTC+2, Matt Grham wrote: Hi All, I have a grid in a LOAD component. How can I remove the .load extensions from the grid links (next page and export csv links)? Thanks, Matt -- --- You received this message because you are subscribed

[web2py] Re: removing .load extension from grid pagination and export csv links

2013-08-02 Thread Matt Grham
with web2py.js). Any LOADed grid has links that are trapped by default, and all links lead to change only the fragment where the grid has been loadeddid you fiddle with web2py.js or layout.html ? On Friday, August 2, 2013 10:43:47 AM UTC+2, Matt Grham wrote: with .load, page 2 of table opens

[web2py] Re: removing .load extension from grid pagination and export csv links

2013-08-02 Thread Matt Grham
Thanks a lot Niphlod. Actually that was the case. I started to use web2py 2.4.6 but my app was built using web2py 1.99.7. I updated web2py.js, web2py_ajax.html and layout.html. It works now. But if I want to refresh the component in every 30 seconds, I am having a problem. Sometimes pagination

[web2py] removing .load extension from grid pagination and export csv links

2013-08-01 Thread Matt Grham
Hi All, I have a grid in a LOAD component. How can I remove the .load extensions from the grid links (next page and export csv links)? Thanks, Matt -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop

[web2py] uploading large file (15 MB) to blob field

2012-02-19 Thread Matt Grham
Hi All, When I try to upload a file that is greater than 15 MB to a blob data field, I get the following error from pymysql: (type 'exceptions.AssertionError', AssertionError('Result length not requested length:\nExpected=21071312. Actual=16777025. Position: 190. Data Length: 16777215',))

[web2py] unique and alphanumeric

2011-06-16 Thread matt grham
Hi All, The following table definition does not work all the time. Sometimes it gives the following error: IntegrityError: column name is not unique. I want to receive the error at the form level. db.define_table('testtable', Field('name', 'text', unique=True, notnull=True),

[web2py] Re: unique and alphanumeric

2011-06-16 Thread matt grham
, db.testtable.name)) otherwise the second requires overrides the previous ones, web2py checks only for IS_ALPHANUMERIC, not uniqueness and the database checks for uniqueness raising an exception. On Jun 16, 12:27 am, matt grham matt.gr...@gmail.com wrote: Hi All, The following table