[web2py] Re: selection by key

2011-02-28 Thread Massimo Di Pierro
If you do not like a button you can have a link: {{=row.affirm_pkey}} On Feb 28, 1:04 am, darkblue_b wrote: > I see, it makes a button per ID > works for now.. thx!  -Brian

[web2py] Re: selection by key

2011-02-27 Thread darkblue_b
I see, it makes a button per ID works for now.. thx! -Brian

[web2py] Re: selection by key

2011-02-27 Thread darkblue_b
On Feb 27, 6:29 pm, Massimo Di Pierro wrote: > My mistake: > > {{extend 'layout.html'}} > > {{for row in rows:}} >   {{=row.affirm_pkey}} > {{pass}} > > > > > sounds good.. {{pass}} seems to work inside or outside of but, Button? Dont I want a list / popup menu ? I am loading more data now

[web2py] Re: selection by key

2011-02-27 Thread Massimo Di Pierro
My mistake: {{extend 'layout.html'}} {{for row in rows:}} {{=row.affirm_pkey}} {{pass}} On Feb 27, 8:21 pm, darkblue_b wrote: > well I guessed a little - and now something seems to work! > (more testing now) > > {{=row.affirm_pkey}}{{pass}} > >    -Brian > > On Feb 27, 6:06 pm, darkblue_b

[web2py] Re: selection by key

2011-02-27 Thread darkblue_b
well I guessed a little - and now something seems to work! (more testing now) {{=row.affirm_pkey}}{{pass}} -Brian On Feb 27, 6:06 pm, darkblue_b wrote: > On Feb 27, 5:41 pm, Massimo Di Pierro > wrote: > > > > > Here is a possible solution (typos aside): > > > def index(): > >     return >

[web2py] Re: selection by key

2011-02-27 Thread darkblue_b
On Feb 27, 5:41 pm, Massimo Di Pierro wrote: > Here is a possible solution (typos aside): > > def index(): >     return > dict(rows=db(db.ratings_view).select(db.ratings_view.affirm_pkey,distinct=T > rue)) > > def callback(): >     return > SQLTABLE(db(db.ratings_view.affirm_pkey==request.args(

[web2py] Re: selection by key

2011-02-27 Thread Anthony
On Sunday, February 27, 2011 7:53:39 PM UTC-5, darkblue_b wrote: > > migrate=migrate) ##<- I dont know what this does yet -- 'migrate' tells web2py whether to run automatic migrations of the database table when your web2py model changes. See http://web2py.com/book/default/chapter/06#Mig

[web2py] Re: selection by key

2011-02-27 Thread Massimo Di Pierro
Here is a possible solution (typos aside): def index(): return dict(rows=db(db.ratings_view).select(db.ratings_view.affirm_pkey,distinct=True)) def callback(): return SQLTABLE(db(db.ratings_view.affirm_pkey==request.args(0)).select()) and in view/default/index.html() {{extend 'layout.ht