Oh, I see, here is what's happening: I now have the following code:
db.product._format = lambda row: 'test' grid = SQLFORM.grid(db.flavor) The table flavor has a column referencing the table product. So, the grid displays the product column correctly now (with _format - this is where just 'format' doesn't work and '_format" does). However, when I add a new record to the flavor table (via the grid), I expect the product column in the insert record form to contain a drop down list of records from the product table to be represented by the same _format setting - perhaps I am making a wrong assumption? So this column in adding new record form ignores the _format. Is this by design? Isn't the format option supposed to work the same way in the new record form, as well as in the grid listing all the records? On Tue, Jul 9, 2019 at 1:17 AM Val K <[email protected]> wrote: > Show your code, please > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/pQYWSHh-Pys/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/web2py/51b9b514-00da-4873-8bab-879c4cf2cc51%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/CABZ%2BKCADgHven_dk3x4T8Xe_HvmqxO5GEM_L1gFzi%2BPPswNyUQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

