It's not going to make it.

I stick with my first question...

Is it possible to link other field then the "id field".

I have :

Id, Name, Other
1, Franky, sdjfjl
2, Steve, sdlfj
3, Matt, sdfjj


I would do :

Name, Other
Franky, sdjfjl
Steve, sdlfj
Matt, sdfjj

And make Name be clikable (link to an other function like crud.read) and be
represent by the Id field in the sens that Name is bind to Id in some way...
So when cliking on Franky it pass to crud.read function instead of Franky
the record Id...

Richard



On Thu, Oct 14, 2010 at 4:10 PM, Richard Vézina <[email protected]
> wrote:

> Ok found that : http://web2py.com/book/default/docstring/SQLTABLE
>
> <http://web2py.com/book/default/docstring/SQLTABLE>I will probably be able
> to manage it.
>
> Richard
>
>
> On Thu, Oct 14, 2010 at 12:34 PM, Richard Vézina <
> [email protected]> wrote:
>
>> Hello,
>>
>> I have this basic function :
>>
>> def select():
>>
>>  
>> datas=crud.select(db.table1,headers='fieldname:capitalize',truncate=100,linkto=URL(r=request,f='read'))
>>     return dict(datas=datas)
>>
>> It transform my table ID field into a link to the crud.read function of a
>> particular record.
>>
>> I would like to "hide" the database PK to the lambda user... So I would
>> like that an other field of the table (that contain a meaningfull
>> information for my users) be transform into a link...
>>
>> Is it possible to do it with "linkto" and how I may proceed?
>>
>> Thanks
>>
>> Richard
>>
>>
>>
>

Reply via email to