CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Applying checkbox or radio list to multiple column

Print topic Send  topic

Author Message
nagu
Posted: 02/24/2002, 12:29 PM

I am newbie to Codecharge. I am building a Record page where I have to edit a flag - the flag is actually stored in the db in three flags. For example, there are three columns : use_A_flag, use_B_flag and use_Both_flag

Is it possible to populate the three flags with one radiolist or listbox?

Or if I use checkbox, they should be exclusive(checking one should uncheck the others in the set)

So can anyone suggest the code to do the above. I am generating ASP.

thanks,

nagu
Nicole
Posted: 02/25/2002, 6:11 AM

Nagu,
you may use radio button field for 3 existing fields. Add all of them to the form and set their types to Hidden. The specify custom list of values for radio button field:
1;"&fldfield1&";2;"&fldfield2&"
nagu
Posted: 02/25/2002, 8:16 AM

Thanks for your response. I tried adding the three fields as hidden to the form.
When I tried 1;"&fldfield1&";2;"&fldfield2&" format, the screen showed the values.

Since I thought it is value;"screen text" format, I tried this format:
"&fldfield1&";Option One;"&fldfield2&";Option two;"&fldfield3&";Option three

The database columns are not updated when I click on the update. Is there anything more I need to do to update the field(any code in events to update the columns?). I thought the use of columns in the customized value would be enough to update the DB and fetch the values from the DB. Please let me know if I need to put sql queries for fetching the values to display the record in the screen.

thanks,

Nagu
CodeCharge Support
Posted: 02/26/2002, 12:04 AM

Nagu,
If you have assigned RadioButton field to any table field, it should be included to insert and update sql statements. Otherwise you should create Custom Action event and include field with corresponding value to sql statements. Take a look at generated code and check it.

   


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.