girija.pinku.pp Posted October 11, 2013 Share Posted October 11, 2013 I want to have column as system date in my domain and want to use that column in my reporting so that i can see the current date every time a report runs.How can i make that possible in jasper report server??Is there any way i can crete that column in domain or can i have that in my report directly in jasper report serverPlease help me by providing necessary answers to this question Link to comment Share on other sites More sharing options...
Teodor Danciu Posted October 11, 2013 Share Posted October 11, 2013 Hi, Are you looking for a way to display the current date time in your report? Do you really need that as a value in a table column or you actually display it as a single value in your report somewhere?Thanks,Teodor Link to comment Share on other sites More sharing options...
ajinkya_c Posted October 11, 2013 Share Posted October 11, 2013 Hi,I think you can try to use java function in field which gives current date and time to the field. So that you can use that field as single field in report somewhere or use it in table column wherever suitable to your requirement. ThanksAjinkya Link to comment Share on other sites More sharing options...
girija.pinku.pp Posted October 11, 2013 Author Share Posted October 11, 2013 Hi Teodor, Yes i want a column current date time in the domain of jasper report server. can you please let me know how to get that date in the domain as a field ? Link to comment Share on other sites More sharing options...
Teodor Danciu Posted October 11, 2013 Share Posted October 11, 2013 Hi,Just to point out that latest JR Library releases introduce support for functions. If you put in the classpath, the JR produced by the /demo/samples/functions sample in the JR project distro, you could use an expression such as:<textFieldExpression>TODAY()</textFieldExpression>More details about built-in functions and the way you could create your own custom functions for JR, can be found here:http://jasperreports.sourceforge.net/sample.reference/functions/index.html#functions I hope this helps.Teodor 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