Hello,

How can I do this :

db.table(id).field.represent

Could a short cut be created to handle this use case?

{{=form.custom.begin}}
<table class="table table-condensed table-hover">
    <thead><tr><th>{{=T('Field label')}}</th></tr></thead>
    <tbody>
        {{for r in rows:}}
            <tr>
                {{if record_id is not None and r.id == record_id:}}
                    <td>{{=form.custom.widget.referenced_field_id}}</td>
                    
                {{else:}}
                    <td>{{=db.table(r.id).referenced_field_id.represent
}}</td>
                   * <!-- So I don't have to do -->*
*                    <!-- 
{{=db.referenced_table(r.referenced_field_id).field_representing_id_referenced}}
 
-->*
                {{pass}}
            </tr>
        {{pass}}

    </tbody>
</table>
{{=form.custom.end}}


Thanks

Richard

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to