Actually No! the args=[prodj.id] are not passed and Get the following ticket:
Traceback (most recent call last): File "C:\APPS\web2py\gluon\restricted.py", line 107, in restricted exec ccode in environment File "C:/APPS/web2py/applications/jpolie/controllers/default.py", line 90, in <module> File "C:\APPS\web2py\gluon\globals.py", line 80, in <lambda> self._caller = lambda f: f() File "C:/APPS/web2py/applications/jpolie/controllers/default.py", line 20, in m202 thisprodj=db(db.prodj.id==request.args[0]).select()[0] IndexError: list index out of range any ideas? On Jun 3, 12:01 am, murray3 <ch...@murraypost.net> wrote: > yep, I got it :) > chris > > {{=LI(A(prodj.name,_href=URL(r=request,f='m202',args= > [prodj.id])),_id='m202')}} > > On Jun 2, 11:36 pm, murray3 <ch...@murraypost.net> wrote: > > > I have a table called Prodj. > > In JPolite if I have the following in a sidebar module (201), what is > > the syntax to pass > > args=[prodj.id] to the appropriate controller (203), for the recieving > > module (203). > > > <p>side menu</p> > > <dl class="maccordion"> > > <dt>Create Prodj:</dt> > > <dd> > > <ul class="navul"> > > <li id="m206">Create A New Prodj</li> > > </ul> > > </dd> > > <dt>Prodj Listing:</dt> > > <dd> > > <ul class="navul"> > > {{for prodj in prodj:}} > > <li id="m202">{{=prodj.name}}</li> ??? I want to > > pass args here? > > {{pass}} > > </ul> > > </dd> > > </dl> > > > help appreciated as always. > > > Chrism > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---