Re: Display a list in SQLFORM.grid

66 views
Skip to first unread message
Message has been deleted

Massimo Di Pierro

unread,
Jul 5, 2019, 2:45:48 AM7/5/19
to web2py-users
Can you explain more in detail what you want to do?

On Tuesday, 11 June 2019 14:16:36 UTC-7, Quang Lam wrote:
how could i wrap a list and display it into SQLFORM.grid  to ensure there is no characters in the list truncated when displayed 
Please help

Dave S

unread,
Jul 8, 2019, 6:21:30 PM7/8/19
to web2py-users


On Thursday, July 4, 2019 at 11:45:48 PM UTC-7, Massimo Di Pierro wrote:
Can you explain more in detail what you want to do?

At the risk of demonstrating that I'm not a mind-reader,
I'm going to suggest that give a list
[x,y,z,aa,bb,...]

where each element is in some sense a row (perhaps in the DAL sense),
display each row such that each cell does wrap instead of truncate.
Perhaps only some columns need the wrap, perhaps all.

That is, for element x[j] from the above list, the <td>x[j]</td> ends up styled wrap instead of truncate.

Now that I'm out on the limb, where's my saw?

/dps

 

Massimo Di Pierro

unread,
Jul 20, 2019, 1:21:16 AM7/20/19
to web2py-users
SQLFORM.grid(.... maxtextlength=1e9)
Reply all
Reply to author
Forward
0 new messages