I was thinking of extending SQLFORM.grid into a shopping cart application. The view form should be able to add an item to the cart. The grid should display an indicator that the item is in the cart.
Richard On Oct 26, 11:50 am, Cliff <cjk...@gmail.com> wrote: > Don't know about adding extra columns. What kind of columns do you > mean? > > As far as extending views, you can use any view you want to. > Somewhere in this group is a post about changing the target on the > 'view' and 'edit' buttons. > > You can also do something like this: > > def index(): > > if request.args(0) == 'edit': > # redefine field visibility in case there are some > # you don't want users to see or edit > # redefine db.mytable.myfield.represent > response.view = 'another_view.html' > > form=SQLFORM.grid > return form > > On Oct 26, 11:29 am, horridohobbyist <horrido.hobb...@gmail.com> > wrote: > > > > > > > > > Can SQLFORM.grid be customized/extended to add extra columns, and can > > the view form be extended to add additional logic? I guess what I'm > > asking is, can SQLFORM.grid be extended into a mini-app? > > > Richard > > > On Oct 26, 10:32 am, Cliff <cjk...@gmail.com> wrote: > > > > SQLFORM.grid is amazing. Many thanks Massimo, Bruno, Martin and > > > everyone involved. > > > > Is there a way to replace the contents of the <h2> tag at the top of > > > the view? All the pages show "Index." This is okay for the index > > > view, but I would like to change it to "Edit", "View" and so on. > > > > Do the "design", "request" and other buttons at the bottom of the form > > > go away when not on localhost? Or do I have to do something to > > > suppress them? > > > > Thanks, > > > Cliff Kachinske