Wow, thanks! Atenciosamente,
Elcimar Leandro - http://elcimar.blogspot.com Portal Net Fácil - http://www.nfacil.com.br 2009/5/23 Pystar <[email protected]> > > You can try this: > ********************* Model.py *********************** > db.define_table("Foo", > db.Field("foo1", "string", length=32, default=None, > requires=IS_NOT_EMPTY()), > db.Field("foo2", "string", length=32, default=None, > requires=IS_NOT_EMPTY()), > db.Field("foo3", "string", length=32, default=None, > requires=IS_NOT_EMPTY()) > ) > > ******************** Controller.py ************************ > # To show only fields "foo1" and "foo2" in the SQLFORM do this: > form = SQLFORM(db.Foo, fields=["foo1"., "foo2"]) > if form.accepts(request.vars, session): > #whatever > return dict(form=form) > > > On May 23, 2:02 pm, Elcimar <[email protected]> wrote: > > Sorry my laziness on searching a little more into this forum/ > > documentation/web. > > > > I think I understand the way web2py creates forms from model's tables. > > But I didn't figure out yet how to show only a few fields from a > > table... Or mix fields from various tables in only one form. Any > > advice? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

