This also does it http://www.web2py.com/AlterEgo/default/show/258
and could easily be turned into a plugin. On Apr 11, 2:28 pm, Rafael Pinheiro <moriarty.pinhe...@gmail.com> wrote: > Nice, this slice does way closer to what i had in mind than my approach. > > Haven't tested it, but it's is a lot better to open as a modal jquery > dialog, update the combo without refresh and select the new record > automatically. > > In my opinion it should be a feature in web2py, it gives the apps a better > usability(including appadmin). > > 2010/4/11 mdipierro <mdipie...@cs.depaul.edu> > > > > > There is also this: > > >http://www.web2pyslices.com/main/slices/take_slice/11 > > > but I think we can do better than both by merging both approaches. > > Massimo > > > On Apr 11, 1:36 pm, Rafael Pinheiro <moriarty.pinhe...@gmail.com> > > wrote: > > > It expects an url where you could insert a new record. Right now all it > > does > > > is open a link on a new tab, so anything that could go into a href would > > > work. > > > > On my model i did like that: > > > requires=IS_IN_DB(db, db.auth_user.id, > > insert_url=URL(a=request.application, > > > c='appadmin', f= 'insert', args=['db','auth_user'])) > > > > so a link will be inserted like that next to the options: > > > A("New", _target='_blank', _href=item.insert_url) > > > > where item is the IS_IN_DB validator. > > > > -- > > > ►Rafael Pinheiro > > > ►Email: moriarty.pinhe...@gmail.com > > > ►Email: pinheiro....@gmail.com > > > ►MSN: rafae...@hotmail.com > > > ►Blog:http://rbpinheiro.wordpress.com/ > > > -- > > To unsubscribe, reply using "remove me" as the subject. > > -- > ►Rafael Pinheiro > ►Email: moriarty.pinhe...@gmail.com > ►Email: pinheiro....@gmail.com > ►MSN: rafae...@hotmail.com > ►Blog:http://rbpinheiro.wordpress.com/