mqayyumm Posted August 28 Share Posted August 28 Hi, i have i report in .jrxml format where i need to run the file by daily but i need to do manipulation the query before run the file.. therefore i using create parameter for the date to make it dynamic based on user input. Therefore its possible to declare the variable in python and pass the variable to the .jxrml file before trigger the file? Or, its anywhere how to run the .jxrml with parameter using python.example: /> </field></subDataset><parameter name="dateFilter" class="java.util.Date"/><parameter name="Parameter1" class="java.lang.String"/><queryString> <![CDATA[select * from sampleDatawhere created_at >= $P{dateFilter}]]>how i can define the variable "dateFilter" using python and pass the variable into the script? or is there any different ways i can do that?[/code] Link to comment Share on other sites More sharing options...
anish.rai Posted August 29 Share Posted August 29 Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times. Link to comment Share on other sites More sharing options...
mbielkiewicz Posted October 13 Share Posted October 13 We don't have a lot of Python experience, but I would suggest looking into our REST API. If you can make a call to JRS via REST, you can pass anything you want and run any report you have access to. 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