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

 multi select list box - preselected values

Print topic Send  topic

Author Message
NewUser

Posts: 6
Posted: 08/07/2013, 3:53 AM

Hi ,

I recently started using codecharge. I have issues with multi select listbox.
I am able to read the values and add to database when user selects multiple values in list box.
But i am not able to preselect the values and display when the user visits the page again.
I use PHP.


when user visits again -- i use edit mode and do the following with the same control :
the list box contains - books,bags

$recordname->controlname->Values = $firstarray;
$recordname->controlname->Value = $secondarray;

format of first array :

Array
(
[0] => Array
(
[0] => 19
[1] => books
)

[1] => Array
(
[0] => 20
[1] => bags
)
)


format of second array :

Array
(
[0] => Array
(
[0] => 19
[1] => books
)

)

I want books to be preselected. but both books and bags are preselected
anything wrong with format of the array.. why are both values preselected in list box.. can anyone help me out please?
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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.