You are sending vars to certificate and using args to retrieve the record. That's your problem.
On Fri, Dec 6, 2013 at 2:10 PM, raferbop <rafer...@gmail.com> wrote: > > > # View - country.html > > {{for people in country:}} > > <a href="{{=URL('default','certificate', vars=dict(id=people.id))}}">Birth > Certificate</a> > > {{=(people.name)}} > {{=(people.dob)}} > {{=(people.height)}} > > {{pass}} > > # Controller > > def > certificate(): > certificate = db(db.poeple.id==request.args(0)).select() > return locals() > > # View - certificate.html > > {{for row in certificate:}} > > {{=(row.name)}} > {{=(row.dob)}} > {{=(row.height)}} > > {{pass}} > > > > > > > Good day Guys, > > In the above code, the "country" function and its respective html view > provides a list of people in a country. Each listed record has a href > attribute that directs the user to the certificate page. Unfortunately, when > I click on the link, the certificate page comes up blank. > > The aim of the code is to view the individual birth certificates of the > people listed on the country page. When you click the on the link, the > following url is generated; app/default/certificate?id=7. The purpose of the > "certificate" function was to perform a db query on the people db table, and > return the results of the id in the url (request.args(0)), that is the same > as the people.id. > > However, as mentioned previously, the page comes up blank, and records are > displayed. Once again, I would greatly appreciate any assistance. > > Regards, > Rafer > > > -- > 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. -- 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.