I assume you make the drop down with

IS_IN_DB(db, 'auth_group.id', '%(role)s')

You can change it to

IS_IN_DB(db(query), 'auth_group.id', '%(role)s')

where query could be ~db.auth_group.role.like('user_%%') or something
else.

Massimo

On Feb 25, 4:04 am, Joe  Barnhart <joe.barnh...@gmail.com> wrote:
> I find i need to limit the available choices seen in a form during a
> crud.create() operation.  My specific case is I want to assign groups
> to users, but I first want to eliminate all of the automatically-
> generated group names such as "user_xx".  Is there a way I can still
> use the crud.create() but limit the choices of the drop-down box to
> just a few instead of the entire set of group names?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to