Hello,

just started using web2py a few days ago and liked it so here i am
with my first app :)

so sorry if my question have been solved, i did a few searches a
didn't find it.

My problem:

I want to get a string representation of a record of a table, this
representation can be as easy as 1 field, or could be several fields
formatted.

In the db.define_table function, i included the format parameter
setting the representation i want for the record, but i think i can
only use it for select/option drop-downs and in reference fields on
another table. Another way could be to define a virtual field with the
format i want, so i can write row.personalized_virtual_field to get
the string representation, and use format='%
(personalized_virtual_field)s' to avoid repeating code (the definition
of the format).

Is this the way to do? or am i a bit lost and it could be done an easy
way?

Thank you.

Reply via email to