Thanks Cliff.

I've tried a few combination, and it didn't get to what I want.

1) linked_tables=['demo_detail','achievement'].sort(reverse=True)
2) linked_tables=dict(demo_detail=id,achievement='id')

Case 1) - I still can't get achievement to listed first. My smartgrid shows
achievement first and then demo_detail.
Case 2) For the linked_tables=dict() one, the linked tables disappeared
from the smartgrid.

regards,


On Wed, Apr 24, 2013 at 5:32 PM, Cliff Kachinske <[email protected]> wrote:

> 1) The code says it is possible to pass in linked_tables as a dictionary,
> in which case it will put the links together in the order produced by
> linked_tables.keys().  This may or may not give you what you want.  Quoting
> the Python web site, "The keys() method of a dictionary object returns a
> list of all the keys used in the dictionary, in arbitrary order (if you
> want it sorted, just apply the sorted() function to it)."
>
> My suggestion is to just play with it.  As a starting point, try
> linked_tables = dict(sometable='id', othertable='id')
>
> 2) Check layout.html.  Again, spend some time playing with it.
>
>
> On Tuesday, April 23, 2013 9:49:42 PM UTC-4, [email protected] wrote:
>>
>> Hi all,
>>
>> I have a couple questions about the layout built by smartgrid.
>>
>> 1) My smartgrid has a couple linked tables. They show up nicely as links
>> on the right hand side of the grid. Is there a way to control which linked
>> table to be listed first? It looks like that it is sorted by alphabetical
>> order from A to Z.
>>
>> 2) when the page is built with the smartgrid, it shows the db name in the
>> upper left area. Is there a way to change it to something else?
>>
>> Thanks
>>
>>  --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/52XMbp783Go/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
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