Grid after update reference table

43 views
Skip to first unread message

Willem L.

unread,
Aug 6, 2025, 5:52:25 AMAug 6
to py4web
Hello everyone,

Since the grid update, the reference table has stopped working.
Instead of showing the table reference field, it shows the ID field.

Example:
db.define_table(
'job',
Field('job'),
format='%(job)s')

db.define_table(
'person',
Field('superhero'),
Field('name'),
Field('job_id', 'reference job')
)

@action('index', method=['POST', 'GET'])
@action.uses('grid.html', db)
def index():
grid = Grid(query=db.person,
orderby=[db.person.name]
)
return dict(grid=grid)

It shows 'job_id' instead of 'job'.

Regards,

Massimo DiPierro

unread,
Aug 6, 2025, 10:30:16 AMAug 6
to Willem L., py4web
I will review and fix asap but probably will have to wait one week.

--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/py4web/213abde2-b8e2-4d4b-9077-ffd9f5a80ea2n%40googlegroups.com.

jonatha...@whatho.net

unread,
Aug 7, 2025, 3:17:43 PMAug 7
to py4web
Thank you for reporting this. I've been trying most of the day to work out how I managed to break the grid. Such a relief to know it's not the changes I made.
Reply all
Reply to author
Forward
0 new messages