Without getting into a complicated hack, I think the best approach is just to select the record to get the current list, and then use Python to extend the original list before updating.
Anthony On Thursday, October 1, 2015 at 9:44:56 PM UTC-4, arihant daga wrote: > > Hello, > I have my table like this, > > db.define_table('myTable', > Field('listfield','list:string'), > ) > > now i want to update my table and add items into listfield > if i do > db(db.myTable.id==1).validate_and_update(listfield=newList) > > it will update the list with newList but i want new List to be appended to > the earlier value... > how can i do it.. > -- 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.