CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 GetValue & Multiple Select Listbox

Print topic Send  topic

Author Message
amc

Posts: 22
Posted: 06/25/2013, 5:59 PM

Hi,

I need to get the values selected in a multiple listbox. I tried

$Container -> listbox -> GetValue();

but I only get the first selected value. I expected to get an array with all the values. Am I doing anything wrong? Is the only solution to get the values reading the form POST variable?

Thanks

View profile  Send private message
yusufakyol


Posts: 73
Posted: 06/25/2013, 7:46 PM

Hi,

You may get values from a multiselect listbox like this:

$ListBox = CCGetFromPost( "MyListbox" , array() ) ;
if ( is_array ($ListBox ) && count ( $ListBox ) ) {
.....
} else {
....
}

Best regards...

_________________
Best Regards
View profile  Send private message
yusufakyol


Posts: 73
Posted: 06/25/2013, 8:02 PM

Hi,

I found CodeChargeStudio's info about this subject:

http://docs.codecharge.com/studio50/html/

From the left menu, please select titles in these sequences:

Examples and Techniques / Programming / Customizing the Data Source / Retrieve Values From a Multi-Select ListBox

Best regards...
_________________
Best Regards
View profile  Send private message
amc

Posts: 22
Posted: 06/25/2013, 9:52 PM

Thank you very much for your help....
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.

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.