I have a field in a database called 'l_rank' which stores the "importance" of the lesson learned on a scale of 1-5
I want the user to have many different search options such as >=3, <=2, 2-4 etc... to show only lessons that have an importance of greater than or equal to 3, less than or equal to 2, in the range 2-4 etc...
How is best to go about this in InfoPath?
I tried letting the user type in the operators into the query field like the examples given above. Then using JScript i was able to build the correct SQL statement. The problem lies in the fact that InfoPath seems to be doing some automatic checking of the fields, and because the l_rank field is set to the number type, as soon as it sees any sybols such as <>=! then it throws an error. At the moment, when i try to run a query with any of these symbols in the l_rank query field, i get the query field highlighted in red and an error saying
File Cannot be validated by XML schema
Union doesn't support this value
The attribute with 'l_rank' with value '<=5' failed to parse
Anyone got any ideas on how to solve this problem?