I am trying to use SQLTABLE(..., linkto='...') as it is used in appadmin. I am trying to understand how the row id is passed to the function which will generate the SQLFORM for edition and insertion. So given a table:
{{=SQLTABLE(query, linkto=URL(r=request, f='update', args=request.args[:1]))}} what is the simplest way of passing the row id to db.my_table(id), within update( ), in order to generate a SQLFORM() to edit and insert that specific row? Note: I am guessing "args=request.args[:1]" adds the row id to the URL. Also, SQLTABLE doesn't have to be in view if the coding would be simpler in the controller - I am looking for the simplest solution to grasp the idea! Eduardo