Johann,

I developed an alternative to grid/smartgrid which has most of the 
features.  

I can put it on github if you like.

Caution: not documented.  But I'll put up a sample controller that uses it 
if you like.

The main drawback is the search widget isn't nearly as slick as 
smartgrid's.  And you do have to create your own query parser.

But it does have a selector for the number of rows per page.

On Monday, April 8, 2013 3:11:20 AM UTC-4, Johann Spies wrote:
>
> I can use SQLTABLE for this and then have to write some code for 
> pagination and search options - all which are already in the SQLFORM.grid 
> available.  In this case addition, deletion and editing will be avoided.
>
> Regards
> Johann
>
>
> On 4 April 2013 15:17, Niphlod <[email protected] <javascript:>> wrote:
>
>> I'm guessing it will be hard. You'll better code a view and access it as 
>> a "fake table".
>>
>> PS: you show it in a grid.... then what record do you want to 
>> add/edit/delete ?
>> I'm guessing that this time you want to use the grid just to search, 
>> orderby and paginate, but there's a LOT of logic inside it for more things 
>> that needs to be considered.
>>
>> On Thursday, April 4, 2013 12:23:58 PM UTC+2, Johann Spies wrote:
>>>
>>> How would I be able to use a query like this (or the DAL equivalent) to 
>>> show the result in a grid?
>>>
>>> select so as Journal, SUM(aantal) as Articles
>>> from isi.nr_arts_per_journal
>>> group by Journal
>>> order by Journal
>>>
>>> Regars
>>> Johann
>>>
>>> -- 
>>> Because experiencing your loyal love is better than life itself, 
>>> my lips will praise you.  (Psalm 63:3)
>>>  
>>  -- 
>>  
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>
>
> -- 
> Because experiencing your loyal love is better than life itself, 
> my lips will praise you.  (Psalm 63:3)
>  

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to