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


Hi, all,

Is there any good idea to implement like this?

Peter
import-bot (20212) [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