CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge -> Programming

 checkboxes

Print topic Send  topic

Author Message
Desiree
Posted: 03/02/2004, 8:20 AM

I have reveiewed the ccs example about many to many checkboxes but because I am unfamiliar with ccs it seems different to add to cc ..

I have lists of personality traits or other items that I want to have as checkboxes that people can choose multiple items... and conncect to their record.

I also want to be able to search with these as well..

Can someone help me with the code and how to do it.. I have the db broken into listbox merging tables, checkbox merging tables and the actual record table..

Thanks
Desiree
Nicole

Posts: 586
Posted: 03/03/2004, 6:58 AM

Desiree,
I try to get you an idea how it could be done. I created multi select listbox with CC.
You can download modified Classifieds example and refer to Categories page to find out how to create Multi-select listbox:
http://www.gotocode.com/UserImages/Elena/Classifieds.zip
In spite of the fact it implements the search functionality to approach is similar for Record type form.
On the search form you can select several categories from listbox and get the results in Grid form.
How to make it work:
1. global function is created (see Site->Modules-> Global Functions section). Function returns a part of WHERE clause that could be used on Grid.
2. Categories.html file (you'll find one in .zip file) requires some modifications. Namely, you should modify <select> tag. Generated one is:
<select name="category_id">
add size, MULTIPLE attribute and set array name:
<select size = 10 multiple name="category_id[]">
3. well, the last step is to add conditions returned by function to Grid form WHERE. You'll find the code in the Open event of Grid form.

Hope it helps.

_________________
Regards,
Nicole
View profile  Send private message
rose436

Posts: 1
Posted: 03/04/2004, 8:12 AM

I guess for some reason I am just doing something wrong when I try to open the default page to the example that you sent me, it only opens it as a text file and i do not see any formating only the code..
Ideas?
Desiree
View profile  Send private message
peterr


Posts: 5971
Posted: 03/04/2004, 1:00 PM

Desiree,
I just downloaded the same project. It requires PHP. If you cannot see the page then possibly you don't have PHP installed.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
desiree rose
Posted: 03/23/2004, 7:04 AM

How do I get the right files to view this?

Desiree
tonyk

Posts: 163
Posted: 03/26/2004, 8:31 PM

If you are using windows use the php installer at
http://www.php.net/downloads.php
It works well.

If you are using a remote linux based server check with your ISP that php and server side includes (SSI) are enabled.

Tony
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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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