The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

This topic is READ ONLY
import-bot (20211) [Avatar] Offline
#1
[Originally posted by mckan]


Hi, all,

Is there any good idea to implement like this?

Peter
import-bot (20211) [Avatar] Offline
#2
Re: How can I add a lot of data into a comobox in browser?
[Originally posted by yannick]

Is the combobox for a browser you're talking about the same as an HTML select
list box? If it is the same thing, then here is a solution to create a select
list box from a datastore (lds). It is simply a looping procedure that build
an HTML string for the list box, based on data in the datastore.

String ls_HTML, ls_string
Integer li_count
//concatenate the SELECT tags
ls_HTML = '

Select employee from list box:'
ls_HTML = ls_HTML + '<SELECT NAME="ldsdata">'

//build the list of OPTION from datastore
For li_count = 1 to lds.RowCount()
ls_string = ls_string + '<OPTION>' + lds.Object.employee_name[ll_count]
Next

//Append list of OPTION and close tags
ls_HTML = ls_HTML + ls_string
ls_HTML = ls_HTML + '</SELECT>

'



>
> Hi, all,
>
> Is there any good idea to implement like this?
>
> Peter