This should work for appending strings to strings (not to lists of strings):
myrow = db((db.rated_items.user_id==auth.user.id) & (db.rated_items.item_id==request.args(0))).update(search_term=db.rated_items.search_term+str(request.vars.search_term) On Thursday, 15 September 2016 17:00:09 UTC-5, Meinolf wrote: > > Hi there > > So far i only know how to update a record by replacing the old field value > with the new value. Suppose i want to append the search_term string value > the corresponding text field so that both values are stored, how can i do > that in this code: > > myrow = db((db.rated_items.user_id==auth.user.id) & > > (db.rated_items.item_id==request.args(0))).update(search_term=str(request.vars.search_term) > > Would appreciate any help!! > -- 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.

