Thanks Niphlod and Anthony, it worked perfectly.
(note to total beginners, Anthony's backslash "\" means use a soft, not hard return") much appreciated, Alex On Wednesday, April 24, 2013 5:00:00 AM UTC-7, Anthony wrote: > > db.PartyPhoneNumberIntersection.countryTelephoneCode.represent = \ > lambda v, r: '%(countryTelephoneCode)s %(countryName)s' % r > > Anthony > > On Wednesday, April 24, 2013 4:08:25 AM UTC-4, Alex Glaros wrote: >> >> Is there a way to concatenate fields in the represent function in the >> same way that countryTelephoneCode and countryName are in the "requires" >> validator below? >> >> db.PartyPhoneNumberIntersection.countryTelephoneCode.requires = IS_IN_DB( >> db, db.Country.countryTelephoneCode, '%(countryTelephoneCode)s %( >> countryName)s',zero=T('choose one')) >> >> thanks, >> >> Alex Glaros >> > -- --- 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/groups/opt_out.