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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.