AlterEgo
old web2py blog
Useful Links
List all entries
Book
Interactive Examples
F.A.Q.
Free Applications
Plugins
Recipes
Demo of Admin Interface
Semantic web extension
Some of the information here may be outdated, please check the book instead
Edit page
Title:
Security Code:
Body:
(use
this
wiki markup)
def hideid2(): # Given a model named mod2, and a table named tbusers # that has a field called lastn, you can hide # the record id during an edit using SQLFORM() , # by adding the option showid=False # # 05/24/2008 Sterling Hankins # record=mod2(mod2.tbusers.lastn=='Smith').select()[0] # # Note: showid below form=SQLFORM(mod2.tbusers, record, showid=False) if form.accepts(request.vars): response.flash=request.vars.lastn return dict(form=form)
© 2008-2010 by Massimo Di Pierro - All rights reserved - Powered by
web2py
- design derived from a theme by
the earlybird
The content of this book is released under the
Artistic License 2.0
- Modified content cannot be reproduced.