CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 linking radio button to search field

Print topic Send  topic

Author Message
sage
Posted: 03/10/2004, 9:56 AM

Does anyone know if this can be done in CCS. I would like to tie a radio button to a search field so that a person would select the item they want to search and then enter a partial string in the search field. I know I this can be done just using the search fields but I was trying this method due to space limitations.
DonB
Posted: 03/10/2004, 1:33 PM

It could be done with out too much difficulty. The search mechanism is
nothing more that attaching query parameters to the submit. The receiving
page (probably the same one doing the submit) can check these in the
BeforeBuildSelect and alter the query that the results-query uses. You
would get an additional parameter from the radio buttons with a value
indicating which was selected. This can be as simple as numbering their
"value" properties as 1, 2, 3, ... - for however many radio buttons you
have. In the BeforeBuildSelect add a Select-Case statement for cases 1
through 'n' and change the .Where property of your datasource accordingly.

--
DonB

http://www.gotodon.com/ccbth


"sage" <sage@forum.codecharge> wrote in message
news:6404f56c252b70@news.codecharge.com...
> Does anyone know if this can be done in CCS. I would like to tie a radio
button to a search field so that a person would select the item they want to
search and then enter a partial string in the search field. I know I this
can be done just using the search fields but I was trying this method due to
space limitations.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

peterr


Posts: 5971
Posted: 03/10/2004, 2:41 PM

Also, many of our examples show how to use the ListBox in the search form, while RadioList should not be much different. You may even setup a ListBox in the search form and then right-click and select Change To -> Radio Button.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.