pwp69
08-25-2004, 11:11 PM
Hello, I'm having some problems getting my data to display in a MX2004 ComboBox (dept_cbx). The data is retrieve via Flash Remoting:
function getDepts_Result(re:ResultEvent):Void {
DataGlue.bindFormatStrings(this.dept_cbx, re.result,"#DeptName#","#DeptID#" );
}
I tested the movie and using Debug > List Variables see dept_cbx.dataProvider does contain the expected values.
Variable _level0.mainContent_mc.employees_mc.dept_cbx.dataP rovider = [object #598] {
__dataProv:[object #599] {
serverinfo:[object #600, class 'Array'] [
cursor:1,
columnNames:[object #601, class 'Array'] [
0:"DeptID",
1:"DeptName"
],
serviceName:"PageableResultSet",
totalCount:3,
id:null,
version:1,
initialData:[object #602, class 'Array'] [
0:[object #603, class 'Array'] [
0:1,
1:"Sales"
],
1:[object #604, class 'Array'] [
0:2,
1:"Parts"
],
2:[object #605, class 'Array'] [
0:3,
1:"Shop"
]
]
],
...
...
...
What am I doing wrong? I have applied the 7.2 updater.
thx
pwp
function getDepts_Result(re:ResultEvent):Void {
DataGlue.bindFormatStrings(this.dept_cbx, re.result,"#DeptName#","#DeptID#" );
}
I tested the movie and using Debug > List Variables see dept_cbx.dataProvider does contain the expected values.
Variable _level0.mainContent_mc.employees_mc.dept_cbx.dataP rovider = [object #598] {
__dataProv:[object #599] {
serverinfo:[object #600, class 'Array'] [
cursor:1,
columnNames:[object #601, class 'Array'] [
0:"DeptID",
1:"DeptName"
],
serviceName:"PageableResultSet",
totalCount:3,
id:null,
version:1,
initialData:[object #602, class 'Array'] [
0:[object #603, class 'Array'] [
0:1,
1:"Sales"
],
1:[object #604, class 'Array'] [
0:2,
1:"Parts"
],
2:[object #605, class 'Array'] [
0:3,
1:"Shop"
]
]
],
...
...
...
What am I doing wrong? I have applied the 7.2 updater.
thx
pwp