hi together,
how can i delete in this code only the requested content from the
table, not the whole table content?
here my code:
{{for projekte in pro:}}
{{if projekte.pend <= now:}}
<i><span class="Stil1">{{=projekte.cdate}}</span></
i> - {{=A(projekte.pname,_href=URL
(r=request,f="show",args=[projekte.id]))}} - (Projektende: <span
class="Stil1">{{=projekte.pend}}</span>) {{=A
('edit',_href=URL(r=request,f='edit',args=[projekte.id]))}}
<a href="{{=db(db.project.id==projekte.id).delete
()}}"><span class="font_4">x</a></span><br/>
{{else:}}
<i><span class="font_4">{{=projekte.cdate}}</
span></i> - {{=A(projekte.pname,_href=URL
(r=request,f="show",args=[projekte.id]))}} - (Projektende:<span
class="font_4"> {{=projekte.pend}}</span>) {{=A
('edit',_href=URL(r=request,f='edit',args=[projekte.id]))}}
<a href="{{=db(db.project.id==projekte.id).delete
()}}"><span class="font_4">x</a></span><br/>
{{pass}}
<!-- {{=projekte.pend}}<br /> -->
<!-- {{=now}}<br /> -->
{{pass}}
the problem i think is the <a href="{{=db
(db.project.id==projekte.id).delete()}}"
but how can i solve this problem
thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---