just noticed the response, thanks. I guess is all about compute even when it is strings and numeric fields..Thanks again
dan On Jun 23, 2:51 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > db.vlanman.location.compute=lambda r: '%s%s' % > (r['locationprevis'],r['patchnumber']) > > On Jun 22, 3:40 pm, greenpoise <danel.sega...@gmail.com> wrote: > > > > > How could I concatenate two db field values in my Model?? My example > > is this: > > > db.define_table('vlanman', > > Field('person',db.person,default=None), > > Field('switchselect'), > > Field('locationprefix'), > > Field('patchpanel'), > > Field('patchnumber'), > > Field('switchnumber'), > > Field('location'), > > Field('workstation'), > > Field('diagram','upload')) > > > I want location to be a combination of locationprefix (string) and > > patchnumber (int)?? > > > Thanks > > dan