In this case study, we will be showing the user the steps to execute in order to have a customized HTML page for user to enter the parameter(s) when rendering a report.
<html> <head><title>Custom Parameter Entry Page</title></head> <body> <h1>Custom Parameter Entry Page</h1> <form method="get" action="/report/ElixirSamples/Report/ Components/Parameters.rml?mode=parameters"> <table cellspacing="2" cellpadding="2" border="0"> <tr> <td align="right">Date</td> <td><input type="text" name="Date"></td> </tr> <tr> <td align="right">Password</td> <td><input type="password" name="Password"/></td> </tr> <tr> <td align="right">Text</td> <td><input type="text" name="Text"></td> </tr> <tr> <td align="right">Choice</td> <td><input type="text" name="Choice"></td> </tr> <tr> <td align="right"></td> <td><input type="submit" value="Submit"></td> <input type="hidden" name="mime-type" value="application/pdf"/> </tr> </table> </form> </body> </html>
Administration
then FileSystems
.
From there, refresh the filesystem.
Repertoire
, the filesystems available will be listed. In
/ElixirSamples/Report/Components, find Parameter.rml. When clicked,
end-user will be led to the HTML page created as seen in Figure 6.17, “Parameters Entry Page Customized”.
If the parameters entry is not customized, it will look similar to
Figure 6.16, “Parameters Entry Page Not Customized”.
Submit
button.
At the bottom of the rendered PDF, the values for the respective fields will be displayed
according to the text entered by the end-user.
<script language="JavaScript" src="JScriptFile.js" type="text/javascript"></script> <link type="text/css" rel="stylesheet" href="CSSFile.css" />