CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 Form grid and 'non bound' listbox question

Print topic Send  topic

Author Message
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
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.

Web Database

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.