D
DylanM
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 boxes and saving to the database at the end with the 'Submit' command button.
Is it possible to save the changes as the checkboxes are clicked? I suppose I'd need to write some dynamic ASP event handling at the same time as creating the checkboxes...
So something like...
<td><input type = "checkbox" name = "chk<%= rstSearch("Product_Group") %>+<%= rstSearch("Depth_Flag") %>" > Select </td>
Function chk87101500
'// Event handler for dynamic checkbox above...
End Function
Scenario:
This is an internal IIS application for selecting stock to send to stores. The page with the checkboxes on is a top level summary, it shows how much is currently stocked / how much available etc. Each check box represents a product line and 'chart ranking', eg;
Feature Films DVD Ranked 1-100 50 Titles Available CheckBoxHere!
Rock & Pop CD Ranked 1-100 47 Titles Available CheckBoxHere!
Users click the checkboxes to select all the products within the line, so by clicking in the above example they would stock 50 or 47 titles. Next to each of these lines is a link to view the products in detail and only select certain ones, in a lot of cases they wouldn't want all 50. In the detail page, they select the titles they want, submit that form, then are redirected back to the summary page which is reloaded and all the totals updated.
Here's the problem! Because the page is being reloaded and changes haven't been committed to the database, I'm losing all of the ticks on the page. The user will work through the summary page ticking certain product lines, then come to a line which they want to view in detail. They go to the detail page, make changes, redirected to summary page & all their work so far has been lost!
I'm not sure on the best way to go about it? Either commit changes on the summary page as they are made or use session variables to keep record of the ticks the user has made? Any other suggestions?!
Thanks
Is it possible to save the changes as the checkboxes are clicked? I suppose I'd need to write some dynamic ASP event handling at the same time as creating the checkboxes...
So something like...
<td><input type = "checkbox" name = "chk<%= rstSearch("Product_Group") %>+<%= rstSearch("Depth_Flag") %>" > Select </td>
Function chk87101500
'// Event handler for dynamic checkbox above...
End Function
Scenario:
This is an internal IIS application for selecting stock to send to stores. The page with the checkboxes on is a top level summary, it shows how much is currently stocked / how much available etc. Each check box represents a product line and 'chart ranking', eg;
Feature Films DVD Ranked 1-100 50 Titles Available CheckBoxHere!
Rock & Pop CD Ranked 1-100 47 Titles Available CheckBoxHere!
Users click the checkboxes to select all the products within the line, so by clicking in the above example they would stock 50 or 47 titles. Next to each of these lines is a link to view the products in detail and only select certain ones, in a lot of cases they wouldn't want all 50. In the detail page, they select the titles they want, submit that form, then are redirected back to the summary page which is reloaded and all the totals updated.
Here's the problem! Because the page is being reloaded and changes haven't been committed to the database, I'm losing all of the ticks on the page. The user will work through the summary page ticking certain product lines, then come to a line which they want to view in detail. They go to the detail page, make changes, redirected to summary page & all their work so far has been lost!
I'm not sure on the best way to go about it? Either commit changes on the summary page as they are made or use session variables to keep record of the ticks the user has made? Any other suggestions?!
Thanks