Login
Register
Tutorials
Forum
Career Development
Resources
Reviews
Jobs
Interview
Communities
Projects
Training
Silverlight Games
|
Bookmarks
|
New Members FAQ
|
Mentor
|
Code Converter
|
IT Companies
|
Peer Appraisal
|
Members
|
Revenue Sharing
|
Computer Jokes
|
New Posts
|
Social
|
Online Members
Shine S
More...
Resources
»
Technical Tips
»
Web Development
Achieve checking multiple selections and batch deletions in row input report
Posted Date:
27-Oct-2009
Category:
Web Development
Author:
freezea
Member Level:
Silver
Points
: 3
Background
For users of report, efficiency is very important. However, sometimes users have to do some simple operation time and again.
For example, there are a lot of data on a web page when making a row input report. Users may want to delete the data of 28 rows. If they have to click the “Delete” button every time when they delete a row, the page will be refreshed 28 times. That’s very inefficiency.
Then, how to solve it?
Solution
RAQ Report is a pure Web-based Java reporting tool. As it is a professional Web reporting tool, RAQ Report can help users to achieve batch selection and deletion in a row input easily.
Operation
With RAQ Report, you only need 4 steps.
Step 1: Create a new report.
Step 2: In the jsp file, add batch deletion javascript as follows:
function deleteRows(){
var report = document.getElementById(’report1');
for(var i=report.rows.length-2;i>0;i–){
var row = report.rows[i];
if(!row.all.tags(”input”)[0].checked) continue;
var cell = row.cells[1];
report.currCell = cell;
_deleteRow(report);
}
}
Step 3: In the jsp file, add checkbox javascript as follows:
function selcheck() {
var objs = report1.getElementsByTagName(”input”);
for(var i=0; i<objs.length; i++) {
if(objs[i].type.toLowerCase() == “checkbox” )
objs[i].checked =event.srcElement.checked;
}
}
Step 4: In the jsp file, add operating button javascript as follows:
<table>
<tr>
<td style=”background-color:”>
<div noWrap style=”font-family: Ming;font-size:13px;color:;”>
Select all:<INPUT type=”checkbox” onclick=”selcheck()”>
<span style=”cursor:pointer” onclick=”_insertRow( report1 )”>Insert</span>
<span style=”cursor:pointer” onclick=”_appendRow( report1 )”>Add</span>
<span style=”cursor:pointer” onclick=”deleteRows()”>Delete</span> <span style=”cursor:pointer” onclick=”_submitRowInput( report1 )”>Submit</span>
</div>
</td>
</tr>
</table>
Reference
http://freezea.blogspot.com/
Did you like this resource? Share it with your friends and show your love!
Tweet
Responses to "Achieve checking multiple selections and batch deletions in row input report"
No responses found. Be the first to respond...
Feedbacks
Post Comment:
Notify me by email when others post comments to this article.
Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
No HTML formatting and links to other web sites are allowed.
This is a strictly moderated site. Absolutely no spam allowed.
Name:
Sign In
to fill automatically.
Email:
(Will not be published, but
required
to validate comment)
Type the numbers and letters shown on the left.
Next Resource:
Code to Get a snap shot of window using c#.net
Previous Resource:
Changing Meta tags dynamically
Return to Resources
Post New Resource
Category:
Web Development
Post resources and
earn money
!
More Resources
Code to Get a snap shot of window using c#.net
Dynamically add or delete a row when inputting data
Sort DataGridView in Run Time
Attach Files to mail using C#
Bing...........
how to apply true / false with out using keywords
Popular Tags
Tag posting guidelines
Search Tags
Batch deletions
.
Check multiple selections
.
Row input report
.
Active Members
Today
Prachi Kulkarn...
(37)
Hemanth
(25)
Prasad kulkarn...
(25)
Last 7 Days
Naved Hasan ...
(255)
naveensanagase...
(230)
Pawan Awasthi
(176)
more...
Awards & Gifts
Email subscription
.NET Jobs
.NET Articles
.NET Forums
Articles Rss Feeds
Forum Rss Feeds
Talk to Webmaster Tony John