... On my part.
Something really simple.
DAL:
table name is contact.
connector is dbhlx
Controller: [contacts.py]
# try something like
def index(): return dict(message="hello from contacts.py")
def browse():
rec = dbhlx().select
(dbhlx.contact.ALL,orderby=dbhlx.contact.lastname)
return dict(rec=rec)
View: [contacts/browse.html]
{{extend 'layout.html'}}
<h1>Show Contacts</h1>
<table style="width: 797px; height: 88px;">
<tbody><tr>
<td> <b>Last Name </b>
</td>
<td> <b>First Name </b>
</td>
<td> <b>Contact Method </b>
</td>
</tr>
{{for row in rec:}}
<tr>
<td> {{row.lastname}}
</td>
<td> {{row.firstname}}
</td>
<td> {{row.phone}}
</td>
</tr>
{{pass}}
</table>
-------------------------------------------------------
The field names are correct in the DAL. No error ticket is issued but
the display in the Admin screen renders blank for everything in the
{{for...}} --- {{pass}} loop.
What the heck have I missed?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---