Re: using forloop.counter to access data

2012-03-21 Thread Andre Terra
You could always try writing a custom template tag or filter as someone else suggested earlier in the thread before resorting to JavaScript. Cheers, AT On Mar 21, 2012 5:41 PM, "Larry Martell" wrote: > On Wed, Mar 21, 2012 at 12:52 PM, James wrote: > > > > > > On Wednesday, March 21, 2012 10:41

Re: using forloop.counter to access data

2012-03-21 Thread Larry Martell
On Wed, Mar 21, 2012 at 12:52 PM, James wrote: > > > On Wednesday, March 21, 2012 10:41:08 AM UTC-4, larry@gmail.com wrote: >> >> On Wed, Mar 21, 2012 at 7:53 AM, James <> wrote: >> > >> > >> > On Wednesday, March 21, 2012 8:47:23 AM UTC-4, larry@gmail.com >> > wrote: >> >> >> >> This is p

Re: using forloop.counter to access data

2012-03-21 Thread James
On Wednesday, March 21, 2012 10:41:08 AM UTC-4, larry@gmail.com wrote: > > On Wed, Mar 21, 2012 at 7:53 AM, James <> wrote: > > > > > > On Wednesday, March 21, 2012 8:47:23 AM UTC-4, Larry@gmail.comwrote: > >> > >> This is probably a stupid newbie question > >> > >> I want to access

Re: using forloop.counter to access data

2012-03-21 Thread Tom Evans
On Wed, Mar 21, 2012 at 2:58 PM, Larry Martell wrote: > OK, but is there some reason {{ headers.0.forloop.counter } does not > work when forloop.counter has a value of 2, yet {{ headers.0.2 }} > does work? Django never does variable interpolation when resolving dot separated variables. What djan

Re: using forloop.counter to access data

2012-03-21 Thread Larry Martell
On Wed, Mar 21, 2012 at 8:32 AM, Tom Evans wrote: > On Wed, Mar 21, 2012 at 12:47 PM, Larry Martell > wrote: >> This is probably a stupid newbie question >> >> I want to access a column of data in a row using forloop.counter, but >> I cannot get it to work. >> >> In my test code, if I displ

Re: using forloop.counter to access data

2012-03-21 Thread Larry Martell
On Wed, Mar 21, 2012 at 7:53 AM, James wrote: > > > On Wednesday, March 21, 2012 8:47:23 AM UTC-4, larry@gmail.com wrote: >> >> This is probably a stupid newbie question >> >> I want to access a column of data in a row using forloop.counter, but >> I cannot get it to work. >> >> In my tes

Re: using forloop.counter to access data

2012-03-21 Thread Tom Evans
On Wed, Mar 21, 2012 at 12:47 PM, Larry Martell wrote: > This is probably a stupid newbie question > > I want to access a column of data in a row using forloop.counter, but > I cannot get it to work. > > In my test code, if I display {{ forloop.counter }} I get 2 > If I display {{ headers.0.2

Re: using forloop.counter to access data

2012-03-21 Thread James
On Wednesday, March 21, 2012 8:47:23 AM UTC-4, larry@gmail.com wrote: > > This is probably a stupid newbie question > > I want to access a column of data in a row using forloop.counter, but > I cannot get it to work. > > In my test code, if I display {{ forloop.counter }} I get 2 > If I

using forloop.counter to access data

2012-03-21 Thread Larry Martell
This is probably a stupid newbie question I want to access a column of data in a row using forloop.counter, but I cannot get it to work. In my test code, if I display {{ forloop.counter }} I get 2 If I display {{ headers.0.2 }} I get ToolType But if I display {{ headers.0.forloop.counter }}