almkolmakov Posted September 14, 2018 Share Posted September 14, 2018 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 User1if user login JasperReport Server is "User2", report name "Contarcts" then set in Email notification To: User2@gmail.com, in Subject: Report Contracts for User2What is the way to solve this problem? Link to comment Share on other sites More sharing options...
hozawa Posted September 17, 2018 Share Posted September 17, 2018 Have you tried using buid in parameters?https://community.jaspersoft.com/blog/how-display-username-user-who-logged-jasperserver Link to comment Share on other sites More sharing options...
almkolmakov Posted September 17, 2018 Author Share Posted September 17, 2018 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 workHow to get LoggedInUsername here? 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