Hi Johann, All, Thanks! that worked like a charm :) Thanks everyone for your immediate help, I'll put up a slice (on web2pyslices) by weekend for with the necessary things needed for making SQLForm.grid up and running with web2py.
Now some more questions (for making SQLForm.grid more flexible for a user) - Q1- Does SQLForm.grid support printing function by default? I know, I may be asking for too much but has anyone tried that? May be integrated with default PDF library or something. Q2- From the mail trail here - Previously I stated below - Result3: The below code for specifying a custom link works with web2py(1.99.2) provided you have a valid function called view in your controller links = [lambda row: A('View Post',_href=URL("default","view",args=[row.id]))] How can I make it use existing functions (that are there by default SQLForm.grid) associated with View, Edit and Delete (CRUD)'s ? Thanks and Regards, Rahul (www.flockbird.com - web2py powered) ------------------------------------------ On Nov 16, 6:37 pm, Johann Spies <johann.sp...@gmail.com> wrote: > On 16 November 2011 14:24, Rahul <rahul.dhak...@gmail.com> wrote: > > > Hi All, > > I still get a ticket if I use fields code as mentioned by > > Johann (I am using latest stable - web2py 1.99.2 not trunk) , does it > > work with the trunk version? > > > Result1: > > fields = (db.projects_post.title, db.projects_posts.project_details, > > db.projects_posts.estimated_worth ) > > > KeyError: 'id' > > Include db.projects_post.id in your fields. In the latest version in the > trunk I can work without it, but I think in 1.99.2 is it a requirement for > 'fields' to include the id-field. > > Regards > Johann > -- > Because experiencing your loyal love is better than life itself, > my lips will praise you. (Psalm 63:3)