Hi Jim,
The selectable works perfectly but the reason I am using links is I might require couple of more additional columns containing check-box.
So links could be used to add more colums
links = [dict(header='field1',body=lambda row: INPUT(_name='action',_type='checkbox')) ,
dict(header='field2',body=lambda row: INPUT(_name='action',_type='checkbox'))
]
and i tried making calls through ajax _onclick=ajax() but they are made for every single selection but i wanted to process them together like selectable.
eg:
method1 = lambda ids: setindicator(ids)
grid = SQLFORM.grid(
...
selectable=method1
)
if i use selectable on clicking submit the method1 will be called with ids of the selected rows
similarly I am looking to create something which can pass all the ids and value of checkbox to the controller.
So If i have 5 elements in the grid the button once clicked should send the ids of 5 elements and their flag values. Selectable only sends the ids that are selected but through the links I am looking to get both selected and not selected ones.
probably like [(id1,1),(id2,0),(id3,1),(id4,0),(id5,1)] 1 - indicating selected, 0 - indicating not selected