[web2py] Re: how can I get row representation set in 'format' table option

2018-10-23 Thread Anthony
It's not quite clear what you are looking for. Note that "format" does not apply to the db.entry_type table but to reference fields in other tables that reference this table. You can access the "format" attribute via db.entry_type._format, so, you could do: formatted_record =

[web2py] Re: how can I get row representation set in 'format' table option

2018-10-23 Thread Joe Barnhart
Here's an example from my site: Field("sender", "reference auth_user", default=lambda: current.auth.user.id, represent=db.auth_user._format, requires=IS_NULL_OR(IS_IN_DB(db,'auth_user.id'))), As you can see, it can be accessed as the