is it possible to edit or delete child or detail table on SQLFORM.grid with left join?
i've tried before it seems the edit is for the first table (parent or header), the child or detail table cannot be edited or deleted with left join in SQLFORM.grid.
e.g.
def report_production_result():
table_header = db.production_result_header
table_detail = db.production_result_detail
left = table_detail.on(
table_header.id == table_detail.production_result_no)
fields = [
# header
table_header.id, table_header.production_result_no, table_header.production_result_date,
table_header.shift, table_header.origin, table_header.status,
# detail
table_detail.stock, table_detail.quantity]
grid = SQLFORM.grid(table_header, fields = fields, left = left, orderby = orderby)
return locals()
thanks and best regards,
stifan