reddog
|
| Posted: 05/10/2005, 6:37 AM |
|
Hi all,
I am evaluating CC and want to display a grid of various fields from a table, having a listbox column that is not bound to a table field (it contains number ie 0, 1, 2,3...). The user can thus select a number from the listbox for any row. So I have a NewEditableGrid1 and have added a listbox column, Quantity, and a button, Button1, to the botton of the grid.
#1. What is the best way to be able to 'walk' the form and pull out the rows that have listbox with numbers that are not 0?
#2. Is it possible to get the form to return an array that contain the column
values (like a PHP array) ?
#3. Also I notice if I click the button the listbox's are reset, I donot want this to happen.
Thanks.
|
|
|
 |
peterr
Posts: 5971
|
| Posted: 05/10/2005, 10:54 PM |
|
You can select "ListOfValues" in the listboxe's Data Source Type property. Then semicolon-separated values into the Data Source property, with the listbox value first and the text value second. For example:
1;High;2;Medium;3;Low
Or in you case: 0;0;1;1;2;2;3;3
Or you can set those values dynamically: http://docs.codecharge.com/studio/html/ProgrammingTechn...stOfValues.html
I am not sure if Web browsers submit form values as an array, but you could try examining the submitted values ($HTTP_GET_VARS) in your code, or refer to some online tutorials, like at http://www.opensourcetutorials.com/tutorials/Server-Sid...-php/page3.html
There may be a better or more specific way that works with CCS, therefore if you don't hear from other users on the forums you may contact CCS product support and they should be able to guide you.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
|