On Jul 20, 1:49 pm, David Zejda <[email protected]> wrote: > Hello, > > for > IS_NULL_OR(IS_IN_DB(db, 'table.id', 'table.name')) > SQLForm generates a combo with a None as a selectable value. > > There is also a relatively new support for multiple fields: > IS_IN_DB(db, 'table.id', 'table.name', multiple=True) > It generates a simple multi-select widget. > > It would be nice to combine both functionalities to have a SQLForm > support for: > IS_NULL_OR(IS_IN_DB(db, 'table.id', 'table.name', multiple=True)) > I think, the easiest way would be to add None to the multi-select values. > > Thank you... > > With regards > David
Hi David, you can already do: IS_NULL_OR(IS_IN_DB(db, 'table.id', 'table.name', multiple=True)) just change the requires before calling SQLFORM, if that is what you need. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" 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 -~----------~----~----~----~------~----~------~--~---

