Hi all,
I am currently working on jasper reporting. Designing reports using iReport Designer. Everything is working fine, but what I want to know is what is the way to use JavaScript in Reports (designing in iReport).
For example, if i want to add the below code (clicking the button shows date info) to report, how can that be done.
I have seen people helping (in iReport) others here, but not able find a solution for this.
Thanks in advance for the quick reply :).
<html>
<head>
<script type="text/javascript">
function displayDate()
{
document.getElementById("demo").innerHTML=Date();
}
</script>
</head>
<body>
<p id="demo">Show</p>
<button type="button" onclick="displayDate()">Display Date</button>
</body>
</html>