Here is how the current version looks that generates the row has no attrib. error:
def manage_taxonomy_detail(): db.TaxonomyDetail.objectID.represent = lambda id, record:A(record.objectID, _target = "_blank", _href = URL('manage_object_super_type',id)) query = ((db.Taxonomy.id == db.TaxonomyData.taxonomyID) & (db.TaxonomyDetail.taxonomyDataID==db.TaxonomyData.id)) taxonomyList = SQLFORM.grid(query,create=True,editable=True,deletable=True, details=True,links_in_grid=True, paginate=10, fields=[db.Taxonomy.taxonomyLongName, db.TaxonomyData.taxonomyDataName, db.TaxonomyDetail.objectID, db.TaxonomyDetail.partyID]) return dict(taxonomyList = taxonomyList) On Wednesday, July 31, 2013 1:31:34 AM UTC-7, Alex Glaros wrote: > > it looks almost right Massimo, but I get this error > > 'Row' object has no attribute 'objectID' > On Wednesday, July 31, 2013 12:29:48 AM UTC-7, Massimo Di Pierro wrote: >> >> Should be: >> >> db.TaxonomyDetail.objectID.represent = lambda id, record:A(record. >> objectID, _target = "_blank", _href = URL('manage_object_super_type',id)) >> >> >> >> On Tuesday, 30 July 2013 12:25:58 UTC-5, Alex Glaros wrote: >>> >>> Okay...I have this so far >>> db.TaxonomyDetail.objectID.represent = lambda >>> ObjectSuperType,record >>> : A(db.TaxonomyDetail.objectID, _target = "_blank", _href = >>> 'manage_object_super_type') >>> >>> But >>> >>> 1. record: A(db.TaxonomyDetail.objectID displays literally instead of >>> the field contents >>> 2. Link goes to the correct controller but all records are selected. >>> How do I get it to choose the correct record in the table? >>> >>> thanks, >>> >>> Alex >>> >>> On Tuesday, July 30, 2013 8:49:10 AM UTC-7, Alex Glaros wrote: >>>> >>>> can you please map out a description of the parms and where they come >>>> from? >>>> >>>> What is the "x", "record", "A"? >>>> >>>> thanks! >>>> >>>> Alex >>>> >>>> On Tuesday, July 30, 2013 5:23:50 AM UTC-7, Johann Spies wrote: >>>>> >>>>> Here is an example of what I did yesterday. Maybe that will give you a >>>>> hint: >>>>> >>>>> Field("url", represent = lambda x, record: A('click here for >>>>> website', _target = "_blank", >>>>> _href = x)) , >>>>> >>>>> In the grid the url column shows a link. >>>>> >>>>> Regards >>>>> Johann >>>>> >>>>> >>>>> -- >>>>> Because experiencing your loyal love is better than life itself, >>>>> my lips will praise you. (Psalm 63:3) >>>>> >>>> -- --- 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.