giuliana.damiani Posted March 7, 2014 Share Posted March 7, 2014 Hi,I open "Cascading multi select example report" in the Sample folder and when I select "None" for the first input control "Country multi select", the second and third input control shows all the data!I want that if I don't select none country the second input control haven't show the data! So I change the query of the second input control adding the condition: "billing_address_state is not null" and the query become:select name from accounts where $X{IN, billing_address_country, Country_multi_select} and $X{IN, billing_address_state, Cascading_state_multi_select} and billing_address_state is not null order by nameBut also in this way the second input control shows all the data!! How can I do for fix this problem? Is a bug of jasperserver?Thank you so much. Link to comment Share on other sites More sharing options...
fcerbell Posted March 7, 2014 Share Posted March 7, 2014 Hi,I am not sure that the parameter would be null when you make no selection in a multi-select Input control. Could you try to change the query to something as :select name from accounts where $X{IN, billing_address_country, Country_multi_select} and $X{IN, billing_address_state, Cascading_state_multi_select} and ( billing_address_state is not null AND billing_address_state <> "" )order by name It is just a tryRegardsFrançois Link to comment Share on other sites More sharing options...
giuliana.damiani Posted March 7, 2014 Author Share Posted March 7, 2014 Thank you so much fcerbell for your answer! I follow your advice and I try this query:select distinct billing_address_state, billing_address_country from accounts where $X{IN, billing_address_country, Country_multi_select} and (billing_address_country is not null AND billing_address_country <> ' ') order by billing_address_country, billing_address_statebut nothing change, the problem is always the same.. I really don't know why it doesn't work...Do you have an other idea? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now