Well, I added data by using db.update() instead of SQLFORM. The data is definitely in there, and it works. However, in admin, *the data is not visible* in the list:string field (it's empty), so I can't edit it. The behaviour of the list:string data type is very strange. Why is it like that? Or am I doing something wrong?
On Thursday, 3 April 2014 02:49:45 UTC-4, Manuele wrote: > > Il 03/04/14 06:23, horridohobbyist ha scritto: > > I've added a 'list:string' field to my table, but when adding a new > > record from admin (using the new record form), I can't figure out how > > to enter the data. I don't understand what format it expects. > > > > I tried "['item1','item2']". I tried "|'item1'|'item2'|". They both > > don't work. > Try adding an SQLFORM in a controller, add some data as a user and go as > admin to the admin interface and edit data you entered. > list:string has a default widget inside SQLFORM that let you enter each > item. > > Hope to be of any help > > Cheers > > M. > -- 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.