On Saturday, January 3, 2015 9:48:23 PM UTC-8, Dave S wrote:
>
>
>
> On Saturday, January 3, 2015 1:39:57 AM UTC-8, Przemysław wrote:
>>
>> Hallo!
>> Is there a way to see the content of each column with data from a table
>> without abbreviation? Currently I use administrative interface to put same
>> initial data for my project (like entity types) which definitely won't
>> change in the future so there is no need of creating better interface for
>> this action. The administrative interface is just perfect tool for this
>> task except it displays data in an abbreviated form. In my case the
>> meaningful part of each record is on its end so it is abbreviated and I
>> cannot distinguish between various entities and see if a certain record is
>> already in the table or not. Is there a way to change it?
>> Greetings
>> Przemek
>>
>
> Not the Przemek playing basketball for Gonzaga University, I take it?
>
> In your application's views/appadmin.html, long about line 71, SQLTABLE
> <http://10.3.171.67:8000/examples/global/vars/SQLTABLE> is invoked with a
> parameter like truncate=40. You can play around with that value
> and see if it helps.
>
> Or you could do your own view during development, with SQLTABLE or plain
> table, or whatever, and manually note which IDs need changing.
>
>
GG wouldn't let me post that messag with my code sample.
Trying again,
One of my standard view is 9 lines long because I have 5 lines to play with
"green bar" styling.
1 {{extend 'layout.html'}}
2 <h1>overview of boot activity</h1>
3 <style>
4 *.odd {background-color: #E5EECC} /* light desert-y green */
5 *.odd {background-color: #ddffcc} /* light green-bar */
6 *.odd {background-color: #d0d0f0} /* light blue grey */
7 </style>
8 {{=SQLTABLE(records, truncate=45, headers={'logtable.id':"Event ID",
'logtable.logx':"Log X of Event", 'logtable.logy':'Log Y of Event',
"logtable.status":'Event Status'})}}
9
You can see I tweaked the truncate value there.
/dps
--
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-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/d/optout.