Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Limit rows based on column value

Limit rows based on column value

Limit rows based on column value


I have a link that when I click it, only those who are status is Active will appear in the table.


<form name = "BankAcctHistory">
     <legend>Bank Account Information</legend>
      <table width="100%" cellpadding="1" cellspacing="2">
       <a href="javascript:saveBank()" id="btnSave" title="Save" disabled><img src = "images/Save.jpg" id="ImgSave" width="22" height="22" align="right"></a>
       <a href="javascript:editBank()" id="btnEdit" title="Edit"><img src = "images/Edit.jpg" id="ImgEdit" width="22" height="22" align="right" ></a>
       <a href="javascript:addBank('$!polno')" title="New"><img src = "images/Add.jpg" width="22" height="22" align="right" ></a>
       <div>[<a href="javascript:viewActive()">view active accounts</a>]</div>
	<tr align="center">
	 <th width="10%">Account Status</th>
	 <th width="13%">Account No.</th>
         <th width="30%">Bank Info</th>
	 <th width="13%">Type</th>
	 <th width="13%">Date Added</th>
	 <th width="13%">Last Modified</th>
       <div id ="bnkact">
	#foreach($ba in $bankaccntInfoList)   	
	  <tr align="center" name="$!ba.get('ACCTSTATUS')">			    		
	   <td width="10%">$!ba.get("ACCTSTATUS")</td>		  			
	   <td width="13%">$!ba.get("ACCTNO")</td>
	   <td width="30%">$!ba.get("BANKINFO")</td>
	   <td width="13%">$!ba.get("ACCTTYPE")</td>
	   <td width="13%">$!ba.get("DATE_ADDED")</td>
	   <td width="13%">$!ba.get("LAST_MODIFIED")</td>
	   #if("$!ba.get('PAYOUT')"=="10019911" && "$!ba.get('ENDDATE')" == "" && "$!ba.get('ACCTSTATUS')"=="Active")
	   <td><input type="radio" value="$!ba.get('BNKACCT_SEQNO')" id="$!ba.get('BNKACCT_SEQNO')" disabled="true" name="bnklist" checked></td>
	   <td><input type="radio" value="$!ba.get('BNKACCT_SEQNO')" id="$!ba.get('BNKACCT_SEQNO')" disabled="true" name="bnklist"></td>
	   #if("$!ba.get('ACCTSTATUS')"=="Invalid" && "$!ba.get('ENDDATE')" != "")	
	   <td><a href="javascript:BankStat('$!ba.get('BNKACCT_SEQNO')')" name="bnkstat" title="click to invalidate account"><img src = "images/record_cancel.gif" id="ImgEdit" width="17" height="17" align="center" ></a></td>



function viewActive() {

Thanks in advance!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close