malek Posted December 14, 2009 Share Posted December 14, 2009 in report parameters i have an option (always prompt), so it's ok to prompt parameter window by click on the report name, but when call the report and pass parameters by URL, i don't want this way.i need to generate the report without prompt the parameter windows first only when call it by URL any idea please Link to comment Share on other sites More sharing options...
suedonne123 Posted December 14, 2009 Share Posted December 14, 2009 I think what you want to do is set "Always prompt" to No, then set 1 or more of the individual parameters in the jrxml to Mandatory...that way, when URL has the param already set, it will pass right through...otherwise, it should prompt..At least, that is what I remember... Link to comment Share on other sites More sharing options...
malek Posted December 15, 2009 Author Share Posted December 15, 2009 thank you suedonne123but event if i put the parameters in jrxml as mandatory, it will not prompt parameters window until you set the option (Always Prompt) in jasperserver .. Link to comment Share on other sites More sharing options...
suedonne123 Posted December 15, 2009 Share Posted December 15, 2009 Obviously, my memory is not so good...I took a look at report that I have: Always prompt is OFFThere is a single input control: Mandatory is OFFinput control also has a default so when I run the report with no params on the URL, it will display the report with the default value when I run the report with the ¶mName=something on the URL, it will display the report with the value "something" The report will show the little "clicky" button to return to the parm input popup... Also, I am using the popup input controls window NOT the top of Page controls... Hope this helps... You will have to make sure all input controls are set similarly if you have multiple controls... 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