I've tried the following query in Flash Builder 4.6 : <esri:Query id="query1FR" where = " pw_fre <= '{qText2FR.text}' " which causes an error while compiling with a warning message telling that the value of atribute "where" associated to an element type "esri:query" must not contain the character '<'
How do I query properly in Flex using operators "<" and "<=" , can anybody show me how to do it the right way ? Thanks already, Pierre
You may better off setting your where clause and the expression in the actionscript instead of the mxml. Have a look at ths older post from Robert where he help someone else out with querying dates:
Ignore my post above that relates to using the greater than and less than symbols in an xml config. You should be able to use the <=, your problem maybe that you are trying to do a less than or equal to against a text input.
Anthony, thanks for the quick reply but I don't use an external XML config. The faulting query code is written in a Flash Builder mxml module within the <fx : Declarations> tag.
Anthony, the TextInput catch a date (dd/mm/yyyy) as value for querying. What I try to do is to retrieve all dates that are <= than the date entered in the TextInput.
You may better off setting your where clause and the expression in the actionscript instead of the mxml. Have a look at ths older post from Robert where he help someone else out with querying dates: