I think you need to look into keyed table into the book or legacy database
where it talks id key different from surrogate (artificial key id) that
web2py use internally for relation...

Richard

On Thu, Dec 29, 2011 at 1:55 AM, JF <jf_sic...@hotmail.com> wrote:

> I think this information was actually somewhere in previous Books, but I
> just can't find it anymore in the 4th version.
>
> I would like to be able to get to a record, let's say from a function
> called "edit".  But using a Field from the table, not the id of the table.
>
> Example:
> This is accessed through the id of a record in a table.
> http://127.0.0.1:8000/partcreation/item/edit/1
>
> But I would like to access it through a Field from the same table.
> Obviously this name/number must be unique.
> http://127.0.0.1:8000/partcreation/item/edit/2122-123456789-00
>
> Note that the URL above is not working.  I would like to know what would
> be the URL (and the code to put in the function) to use "2122-123456789-00"
> instead of "1".
>
> Thanks,
> JF
>

Reply via email to