How to add attribute to JasperServer Adhoc Views under the subject.
search cancel

How to add attribute to JasperServer Adhoc Views under the subject.

book

Article ID: 248890

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager

Issue/Introduction

Is there a way so that i can put in title of an adhoc view a variable ? For example the date today ? 

Cause

Jasper server  :7.9 

Resolution

# There cannot be directly use of variable such as date/time in the subject line of adhoc view, However there is an alternative solution.
#
Instead of using in the adhoc view directly we can use the Text element inside a Dashboard to display Date and Time with the Ad Hoc View in the Dashboard using the $Date{...} and $Time{...} syntax.
#Reference article : 
https://community.jaspersoft.com/documentation/tibco-jasperreports-server-user-guide/v790/tips-designing-dashboards