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

 How do I retrieve the value of the bound column of a listbox???

Print topic Send  topic

Author Message
Gena

Posts: 591
Posted: 10/19/2005, 6:11 AM

I have a Record page, on that page there is a record Product. One filed is populated using Listbox. I want to retrieve the value of the bound column of this listbox. What event I can use to get the value after user have selected value from this drop list?

Client - OnChange event seems does nothing....
_________________
Gena
View profile  Send private message
Alvaro Cobo
Posted: 10/19/2005, 10:20 AM

Hi Gena:

I am not sure, but you could try something like this custom code in the
BeforeInsert or AfterInsert event of the form, depending of your needs.

global $Record1;
global $test_variable;
$test_variable = $Record1->ListBox1->GetValue();

What we are doing here is retrieving the value (GetValue()) of the ListBox1
which is inside the form Record1 into the variable $test_variable.

I hope this helps you.

Best regards,

Alvaro.

"Gena" <Gena@forum.codecharge> escribió en el mensaje
news:54356461baf1ae@news.codecharge.com...
> I have a Record page, on that page there is a record Product. One filed is
> populated using Listbox. I want to retrieve the value of the bound column
of
> this listbox. What event I can use to get the value after user have
selected
> value from this drop list?
>
> Client - OnChange event seems does nothing....
> _________________
> Gena
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Gena

Posts: 591
Posted: 10/19/2005, 12:59 PM

Quote Alvaro Cobo:
Hi Gena:

I am not sure, but you could try something like this custom code in the
BeforeInsert or AfterInsert event of the form, depending of your needs.

global $Record1;
global $test_variable;
$test_variable = $Record1->ListBox1->GetValue();

What we are doing here is retrieving the value (GetValue()) of the ListBox1
which is inside the form Record1 into the variable $test_variable.

I hope this helps you.

Best regards,

Alvaro.

"Gena" <Gena@forum.codecharge> escribió en el mensaje
news:54356461baf1ae@news.codecharge.com...
> I have a Record page, on that page there is a record Product. One filed is
> populated using Listbox. I want to retrieve the value of the bound column
of
> this listbox. What event I can use to get the value after user have
selected
> value from this drop list?
>
> Client - OnChange event seems does nothing....

Thank you for your suggestion BUT... I need exactly what I wrote: get value when user Select something from the Listbox.

Anybody?

_________________
Gena
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.