Folks,
I'm looking to build a piece of PHP5 UI that I'm pretty sure is common to a bunch of applications. Basically, it's an expression builder that allows users to specify expressions combined through logical operators (AND/OR), like this:
- FieldX > 3 AND FieldY = 5
- FieldY = "bob" and FieldZ is not null
- FieldX > '5/23/2007' OR (FieldY = 5 AND FieldY is not null)
Ideally, a system like that would allow me as a programmer to specify the list of parameters that the user can pick (columns) and the data type for each. It would also provide a nice, user-friendly interface for defining expressions like that - I'm imagining something like a table, where each row has several pickers:
[Column] [Condition] [Value] [AND/OR] [Column] [Condition] [Value] [AND/OR] ...
Do you know of an open-source component that does something like that? Or maybe a part of this kind of functionality?