Hi Massimo!
Thank you for your help.
But it's the same again (invalid function) with no hint for any error
ticket
How is the row.id passed to the update page?
Why do you use "t2.action" in this case? I thought I read that "t2" is
represented by "self" in T3 (which also doesn't succeed)
Ulrich
P.S.
Here is the original code section of the model:
db.define_table("firmen",
SQLField("firma","string",length=128,default=""),
SQLField("strasse","string",length=32,default=""),
SQLField("plz","string",length=32,notnull=True,default=""),
SQLField("ort","string",length=32,notnull=True,default=""),
SQLField("telefon","string",length=32,notnull=True,default=""),
SQLField("telefax","string",length=32,notnull=True,default=""),
SQLField("email","string",length=32,notnull=True,default=""),
SQLField("web","string",length=32,notnull=True,default=""))
db.firmen.represent=lambda row:A(row.firma,_href=t2.action
('firma_aktualisieren',row.id))
and the code of the update page, named "firma_aktualisieren":
{{self.update(db.firmen)}}
On 17 Dez., 15:32, mdipierro <[email protected]> wrote:
> db.table.represent=lambda row:A(row.field,_href=t2.action
> ('update_page',row.id))
>
> make sure row.field is replaced by a valid field name. I can help you
> debug but I need to know the table and the traceback.
>
> Massimo
>
> On Dec 17, 7:31 am, Atanasius <[email protected]> wrote:
>
> > that is exactly what I tried first - but it results in an error
> > message "invalid function" as soon as I click an item of the itemize
> > list.
>
> > On 17 Dez., 12:55, mdipierro <[email protected]> wrote:
>
> > > db.table.represent=lambda xyz:A(table.field,_href=t2.action
> > > ('update_page',xyz.id))
>
> > > On Dec 17, 4:55 am, Atanasius <[email protected]> wrote:
>
> > > > In the model I define a link for each record as follows:
>
> > > > db.table.represent=lambda xyz:\
> > > > A(table.field,_href='update_page')
>
> > > > How do I pass the Id of the clicked record to the update page which
> > > > calls the update form by "{{=self.update(db.table)}} "?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---