Hi ,
I have a grid , with links to pages which has another grid.
constraints = {'db.lead':qcomm}
form = SQLFORM.smartgrid(db.lead,constraints = constraints,deletable=
False,details=False, links = [lambda row: A(SPAN(_class='icol-comment'),
_href=URL("lead","comm",args=[row.id])),lambda row: A(SPAN(_class=
'icol-connect'),_href=URL("lead","convert",args=[row.id]))],csv=False)
return dict(form=form)
Now when I go to the other page the generated URL is as follows
https://crm.mosaicdubai.com/dubai/lead/comm.load/1
Now in that following page the add button for the grid , produces the
following link
https://crm.mosaicdubai.com/dubai/lead/comm.load/new/comphistory?_signature=e5006d6d22860439b724f26bb1c05f0ebe7749d5
Which obviously gives an error as
https://crm.mosaicdubai.com/dubai/lead/comm.load/*1*/new/comphistory?_signature=e5006d6d22860439b724f26bb1c05f0ebe7749d5
would be the correct URL in the case above.
How can I correct the above error ? . Is there a way to remove the
argument in the URL? which is what I think is ideal if , not is there a
way to get the 2nd grid to recognize the URL that needs to be used
Thanks a lot
Vivek
--