473,387 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Handling checkboxes, a question of style?

Hi all,

I have an edit form for records that belong to numerous categories. Records
are joined to categories with a join table in a many-to-many relationship.

When displaying a record for editing I loop through the category recordset,
looping through the entire join-table recordset for each category, to tick
(or not) each checkbox as it's displayed.

This seems like a costly way of populating checkboxes.

Is there a more elegant solution?

--
Sean.
Oct 13 '06 #1
2 1179
"Sean S - Perth, WA" <Se**********@discussions.microsoft.comwrote in
message news:EB**********************************@microsof t.com...
Hi all,

I have an edit form for records that belong to numerous categories.
Records
are joined to categories with a join table in a many-to-many relationship.

When displaying a record for editing I loop through the category
recordset,
looping through the entire join-table recordset for each category, to tick
(or not) each checkbox as it's displayed.

This seems like a costly way of populating checkboxes.

Is there a more elegant solution?
That's the way I do it, except that I use GetRows to put both recordsets
into arrays. Then I do my looping.

--
Mike Brind
Oct 13 '06 #2
Hi, i really wish to help you.
But could you please explain more about what you are doing and what do
you want to be done?
Best Regards

On Oct 12, 11:51 pm, Sean S - Perth, WA
<SeanSPert...@discussions.microsoft.comwrote:
Hi all,

I have an edit form for records that belong to numerous categories. Records
are joined to categories with a join table in a many-to-many relationship.

When displaying a record for editing I loop through the category recordset,
looping through the entire join-table recordset for each category, to tick
(or not) each checkbox as it's displayed.

This seems like a costly way of populating checkboxes.

Is there a more elegant solution?

--
Sean.
Oct 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: DylanM | last post by:
I have some checkboxes that are generated from the results of a database search. At the moment, the checkboxes are part of a table making up a form. Users are going through the form, clicking the...
11
by: Jamie Jackson | last post by:
Two part question: 1) I'd like to do have nicely indented checkbox labels, even where wraps occur (for instance, the way <li> wrapping works). So, I'd like this (where "_" = checkbox): _...
5
by: @(none) | last post by:
I have a page which is a set of CheckBoxes generated daily and thus the number of Checkboxes changes each day. What I want to do is allow the user to select one or more checkboxes and the push a...
10
by: Steven | last post by:
I create the checkboxes dynamically on my webform (aspx). after I create them, when I check any of the checkboxes, nothing happens. Here is my code ... ArrayList LayerNameList1 = LayerNameList;...
5
by: Paul Morrison | last post by:
Hi, I have a set of 4 checkboxes and I want to have a button that will check all the boxes. I have looked on Google but can only find examples of it being in Javascript. Is there any way of...
5
by: Dabbler | last post by:
What is the best way to handle data interpolation between form controls and the actual sql data field. I have radio buttons that need to be interpreted, form values that have to be translated.....
13
by: PhpCool | last post by:
Hi, since sometime I'm stuck in a problem where I want to check or uncheck all the checkboxes. If I'm choosing name for the checkbox array as 'chkbx_ary' then I'm able to check/uncheck all the...
6
by: ahilar12 | last post by:
<html> <head> <script type="text/javascript"> function SetAllCheckBoxes(FormName, FieldName, CheckValue) { if(!document.forms) return; var objCheckBoxes = document.forms.elements;...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.