CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 Listbox dynamic population

Print topic Send  topic

Author Message
Vladimiro Paredes
Posted: 10/20/2003, 8:13 AM

Hi all,



I am using ASP/VBScript



I was wondering if someone has knows how to do the following:



Basically I need to dynamically add values to a list box.

I will have a set of fixed values coming from the database. But depending on
the record, I would like to add a few more entries.



Thanks



DonB
Posted: 10/20/2003, 4:00 PM

You will need to refetch the data for the listbox. See
http://www.gotodon.com/ccbth/Features/Knowledgebase.asp?find=dynamic for a
start. The real trick is making the refetch occur, which is dependent upon
how your page is constructed. You need to change the listbox's recordsource
(probably) in the AfterExecuteSelect of whatever control holds the records
that the Listbox is dependent upon. Until that recordset has been SELECTed,
you won't know what value to specify for the Listbox. You will likely need
to ensure the Listbox is physically located further down the HTML than the
"selecting" recordset.

Look for "Dependent Listboxes" on this forum or one of the Codecharge
knowledgebases. It's been covered a lot, using several different
approaches.

--
DonB

http://www.gotodon.com/ccbth


"Vladimiro Paredes" <vparedes@exodusgroup.net> wrote in message
news:bn0u3h$j46$1@news.codecharge.com...
> Hi all,
>
>
>
> I am using ASP/VBScript
>
>
>
> I was wondering if someone has knows how to do the following:
>
>
>
> Basically I need to dynamically add values to a list box.
>
> I will have a set of fixed values coming from the database. But depending
on
> the record, I would like to add a few more entries.
>
>
>
> Thanks
>
>
>
>


   


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.