Jump to content
Changes to the Jaspersoft community edition download ×

how to pass parameter using python


mqayyumm

Recommended Posts

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 month later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...