hi,
is it able to do a selected drop menu in which if the boolean is
false, they will show the name in the table list and will not show the
list if the list menu is true
the code is
db.define_table('notebook',
SQLField('name'),SQLField
('archived','boolean',default=False))
db.define_table('entry',
SQLField('title'),
SQLField('notebook',db.notebook))
records=db(db.entry.notebook==request.vars.notebook)\
(db.entry.notebook==db.notebook.id)\
(db.notebook.archived==False)\
.select(db.entry.ALL,orderby=~cdb.entry.id)
the code however show all the list of name of the notebook table in
the form list whether false or true, but if it is true, it do not show
the list of entries for that notebook
but if it is false, the name will list out all the entries, yet, is it
able to show the name in the notebook that is "boolean = false" and
not show the name in the form which the archive is "boolean = true"?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---