CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 getting selected value of master listbox (ajax sytle)

Print topic Send  topic

Author Message
aalkan

Posts: 9
Posted: 01/18/2009, 1:47 AM

Hi,

How can I get the selected value of master listbox in "before execute select" event of slave listbox. For now, I stored it in "before show" event of master listbox by using a session value, but it is not safe.

Best regards.

Alpay Alkan
View profile  Send private message
jjrjr1


Posts: 942
Posted: 01/18/2009, 6:31 AM

Hi

Have you tried in your before execute select

$Container->slavelistboxname->SetValue($Container->masterlistboxname->GetValue());

Or am I missing something.

Let me know.


_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com
View profile  Send private message
aalkan

Posts: 9
Posted: 01/18/2009, 9:41 PM

No, it does not work; because it is just selected and the page not refreshed yet after this selection; because of ajax I think...It returns null.
View profile  Send private message
jjrjr1


Posts: 942
Posted: 01/21/2009, 5:41 AM

Ok Maybe this

Then try in client side events.

OnChange for the master listbox get the value and put it into the slave.

something like this possibly

var temp=document.getElementById("MasterListBox").selected();

document.getElementById("SlaveListBox").selected()=temp;

Maybe this will do what you want.


_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.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.