[web2py] Re: Can't get compute field or virtiual field to work for me

2017-05-28 Thread Peter
STOP PRESS - Got it! So I've learned something new - *thanks again Anthony!* Still not paying enough attention to the tracebacks - subsequent errors were a different problem. for the record this virtual field definition... db.person.display_name = Field.Virtual('display_name', get_user_shor

[web2py] Re: Can't get compute field or virtiual field to work for me

2017-05-28 Thread Peter
Thanks Anthony I would like to get the later suggestion working but not sure how to pass the row object from a field or if this is what you mean the signature it needs? My function is updated to this... # There were typos in the filed name which weren't helping (e.g. person.type should ha

[web2py] Re: Can't get compute field or virtiual field to work for me

2017-05-28 Thread Anthony
> When I add code to display the contents'Shortname: %s' % > person.short_name > (even after I have edited the table - which I understand should trigger > the shortname update) > Updating the record will only trigger the compute field update if *all* the fields needed by the function are