I was reading the previous post
https://groups.google.com/group/web2py/browse_thread/thread/51eed6556ba1b61f/a1f4395b7530192a?lnk=gst&q=grid+edit#a1f4395b7530192a

but I cannot figure out how to do it with my grid.
In args, I want to pass the value of the field called db.PDTFF.FFDNO.

How can I do that ?

def history():
    orders = SQLFORM.grid(db.PDTFF,deletable=False,
create=False,csv=False,orderby=~db.PDTFF.id,
            links = [lambda row: A('Edit',_href=URL("default","next",
                    args=[db.PDTFF.FFDNO]))],
 
fields=[db.PDTFF.id,db.PDTFF.FFTRD,db.PDTFF.FFDNO,db.PDTFF.FFJCSC,db.PDTFF.FFJDNO,db.PDTFF.FFJGNO,
                    db.PDTFF.FFJJDN,db.PDTFF.FFJJGN])
    return dict(orders=orders)

Reply via email to