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>&nbsp;&nbsp;-&nbsp;&nbsp;{{=A(projekte.pname,_href=URL
(r=request,f="show",args=[projekte.id]))}} - (Projektende: <span
class="Stil1">{{=projekte.pend}}</span>)&nbsp;&nbsp;{{=A
('edit',_href=URL(r=request,f='edit',args=[projekte.id]))}}
&nbsp;&nbsp;<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>&nbsp;&nbsp;-&nbsp;&nbsp;{{=A(projekte.pname,_href=URL
(r=request,f="show",args=[projekte.id]))}} - (Projektende:<span
class="font_4"> {{=projekte.pend}}</span>)&nbsp;&nbsp;{{=A
('edit',_href=URL(r=request,f='edit',args=[projekte.id]))}}
&nbsp;&nbsp;<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 web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to