Avatar

Level 6

Hello,

I've created page with two depend drop down lists, if data from one of lists selected, second list filling with dependent data.

Script example:

prodata.#subform[0].DropDownList2::exit - (JavaScript, client)

DropDownList1.clearItems()

var

fgid = DropDownList2.rawValue

var

len1 =xfa.resolveNodes("$record.projects.project_data.[fg_id=="+fgid+"]").length

var

userid= xfa.resolveNodes("$record.projects.project_data.[fg_id=="+fgid+"].empl_id");

var

usertxt= xfa.resolveNodes("$record.projects.project_data.[fg_id=="+fgid+"].empl_code");

for

(var i=0 ; i<=len1; i++) {

DropDownList1.addItem(usertxt.item(i).value

, userid.item(i).value);

}

Main problem is that i have big amount of data in lists, for example DropDownList1 could contain 200+ records.

Because of this filling data takes too much time, is there way to improve perfomance of adding data?

Thank you in advance,

Paul