<body>
<hr>
<h1>Click All or Search by Core ID</h1>
<form action = "call.jsp" onsubmit="return generateReport()" >
<label><input type="checkbox" /> ALL</label><p>Core ID : <input type= "text" name = "core" value = ""/></p>
<h1>Search by refresh Date From and To</h1>
<p>Date From: <input type="text" id="datepicker" name = "datef" value = ""></p>
<p>Date To : <input type="text" id="datepicker1" name = "datet" value = ""></p>
<h1>All Department except</h1>
<p>Department Code : <input type="text" name = "DepartM" value = ""></p>
<input type="submit" value="Search"/>
</form>
</body>
Above are the code for jsp and I want the checkbox once click it will select all id and date from and to and below are my jasper report query
SELECT
CI_ID,
Status,
"status-Reason",
CI_name,
Serial_num,
Manufacturer,
model,
receipT_date,
refresh,
core_id,
departm
FROM
`laptop` laptop
WHERE
Core_id = $P{core}
or refresh >= $P{datef}
and refresh <= $P{datet}
and departm <> $P{DepartM}
How can I use the checkbox as the select all function? Meaning to say once the user click the checkbox mean the user want to view all record (all id and from and to date etc).