I get the same truncated display for the log message text no matter what I 
set maxtextlengths...This app is rock+1 on the IQ simplicity scale and yet 
it does not work...BTW: I removed all layouts stuff so its not some css 
problem. The truncated fields are what the grid wants to display. Its like 
the grid is on autopilot, any suggestions???

MODEL:

db2 = DAL('sqlite://autoflowLog.sqlite')
db2.define_table('log_messages',
    Field('time_stamp', length=30),
    Field('log_message_text', length = 256))
db2.log_messages.id.readable = False

VIEW:

<p>AutoFlow Log</p>
<h2>Log Messages:</h2>
{{=form}}


CONTROLLER:

def display_log():
    grid = SQLFORM.grid(db2.log_messages, editable = False, searchable = 
False,formstyle = 'divs',maxtextlengths={'log_messages.log_message_text' : 
80})
    return dict(form=grid)

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to