I'm using the linkto field in SQLTABLE to create a hypertexted link to
a record in the db. Since there are many records, I need to paginate
the results. So I create a page_offset var that gets passed along.

Here's the SQLTABLE:

    records = SQLTABLE(db().select(db.table.ALL),linkto=URL
(r=request,vars={'page_offset':page_offset})
    return dict(records=records)

The resulting table looks good. But instead of the URL for the link
looking like this:

    http://ip_addr/app/controller/function/record#?page_offset=1

it looks like this:

    http://ip_addr/app/controller/function?page_offset=1/function/record#

I don't understand why the function name appears twice in the URL and
why the page_offset doesn't go at the end of the URL?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to