thanks all, will try it

best regards,
stifan

On Monday, April 23, 2018 at 10:06:52 PM UTC+7, Anthony wrote:
>
> Then in a view you could do something like:
>>
>> {{=record.mobile_phone.whatsapp}}
>>
>
> Keep in mind that the represent function is not applied when adding an 
> individual field to the view like that -- you would need to use the 
> rows.render() method, or something like:
>
> {{=db.mytable.mobile_phone.represent(record.mobile_phone, record).whatsapp
> }}
>
> The represent function is only applied automatically in forms (read-only 
> forms or fields), SQLTABLE, and the grid, and having a represent function 
> that returns a tuple or dictionary would be problematic in those contexts.
>
> Anthony
>  
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.

Reply via email to