using T2 

http://127.0.0.1:8000/f7/default/display_ware/3

in controller:
def display_ware():
    ware=t2.display(db.ware)
    return dict(ware=ware)

in HTML:
{{extend 'layout.html'}}
<div class="frame">
    <h2>Tovar</h2>
    {{=ware}}
</div>
<div class="frame">
{{=A(' Modify',_href=URL(r=request,f='modify_ware/%s'%request.args))}}
</div>

How can I make the link to modify displayed ware? - How can I get that
id value? 
That closest thing I got is request.args, but it is ['3'], I need just
3.
I tried db.ware.id and ware.id without success.

Julius



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to