Jump to content
Changes to the Jaspersoft community edition download ×

Dynamically change schedule parameters in JasperReport Server


almkolmakov

Recommended Posts

Hello!

Is it possible for standard tools to dynamically change default value in the Schedule (Schedule, Output Options, Notification), depending on the report name, user name, etc?
Is it possible to substitute for example the user name, the name of the report in the schedule field?

For example:
if user login JasperReport Server is "User1", report name "Documents" then set in Email notification To: User1@mal.ru, in Subject: Report Documents for User1
if user login JasperReport Server is "User2", report name "Contarcts" then set in Email notification To: User2@gmail.com, in Subject: Report Contracts for User2

What is the way to solve this problem?

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Configure Default Values in Scheduler Notification Tab: https://community.jaspersoft.com/wiki/how-configure-default-values-scheduler-notification-tab.

    toAddresses:  { address: ['User@mail.ru'] } - work, static e-mail User@mail.ru
    toAddresses:  { address: [LoggedInUsername] } - no work
    toAddresses:  { address: LoggedInUsername } - no work

How to get LoggedInUsername here?
 

Link to comment
Share on other sites

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...