Hello All, I am a newbie to web2py and developing my test app. I want to present all the entries in a db using SQLFORM.grid with the option to edit/delete rows based on user name.
e.g. My models are like: Person table with entries name, userid, address, phone number. Controller looks like : def records(): record = SQLFORM.grid(db.person, user_signature=False) return locals() It returns all the rows which are visible in view. My requirement is that I want to make edit/delete button visible only for the user's whose userid is same as some predefined value "SOMEUSER", for other userid's edit/delete button should be disabled/not visible. Can some one please tell me on how to do this. Also I want the rows be visible only for userid="SOMEUSER" i.e. default search filters to be applied as preson.userid="SOMEUSER", which user can later on clear off from the grid to view results corresponding to all the users. Thanks in Advance, Sarbjit -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.