That makes sense but doesn't IS_IN_DB create foreign keys in database or other relationships between the tables that might be effected?
On Sunday, September 4, 2016 at 5:08:23 AM UTC-4, Brian Boatright wrote: > > I'm using SQLFORM and was able to add an orderby to the original model > class to sort a resulted dropdown list sqlform was generating. > > Ideally I need to limit the items in the dropdown list by id to be id > > 10, as the first 10 are static types and those over id 10 are user > generated and assignable. > > I've seen a few posts that suggest adding a IS_IN_DB with a query to limit > what is returned for a dropdown list. I'm conserved that would change the > table definition or relations globally instead of just for this one form. > > *Is it possible to manipulate what is included in a dropdown list > generated by SQLFORM without effecting the actual database via a query?* > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

