Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use a checkbox to Select All

Status
Not open for further replies.

rcaesar

MIS
Sep 5, 2002
92
US
I have a dropdown with a list of managers. I would like to give the use the option to select all in the list by checking a checkbox.
Thanks a million.

 
I place a value in the table called ' All' and it will appear on the top of the drop down list.

Mark Stewart

Consultants Club Corp.
 
I actually do a UNION Select ' ALL' for the item I want to select all on in the SQL statement.

Consultants Club Corp.
 
Thanks - The problem though is I cannot include "ALL" in the table. The manager list comes from a different application.

Is there a way I can add a checkbox for the user to select all in the dropdown. BTW, I am using powerprompts (in COGNOS) -- here is a part of the code :

<form method=&quot;POST&quot;>

<select multiple name=&quot;Status&quot; size=&quot;10&quot;>
<%
var oConn = Server.CreateObject(&quot;ADODB.Connection&quot;);
// This is any valid ODBC DSN
oConn.Open(&quot;CATS-POWER-PROMPT&quot;);
// This is any value SQL for the above DSN



var oRs = oConn.Execute(&quot;Select distinct Sts_tx from CATW.VAMNDED_CNTRCT_W&quot;, &quot;CATS-POWER-PROMPT&quot;);
while(!oRs.EOF)
{
Response.Write(&quot;<option>&quot; + oRs.Fields(&quot;Sts_tx&quot;).Value + &quot;</option>&quot;);
oRs.MoveNext();

}
oRs.Close();

___
Thanks again.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top