Hi All
I have a relatively simple template, we are using XML data generated
and embedded into the template. The template has a combo box that is
initialized upon opening the template - it has a list of Departments
+ 'All'. The user can change the combo choice, the XML is filtered
and a chart and table are refreshed with the same data.
All is fine except when the user comes back to 'All' ... nothing is
rendered as if no data is returned. I have debugged and the code is
returning all XMLdata:
Code snippet
private function getEmployees(deptVal:String):void
{
if (deptVal == 'All')
{
// we want the complete data set again so use empty filter
EmpTable.dataProvider = dataXML.ROW.(DEPARTMENT_NAME != null);
deptChart.dataProvider = dataXML.ROW.(DEPARTMENT_NAME != null);
}
// Combo box selection has been made so filter by Deprtment
EmpTable.dataProvider = dataXML.ROW.(DEPARTMENT_NAME ==
deptVal);
deptChart.dataProvider = dataXML.ROW.(DEPARTMENT_NAME == deptVal);
}
Any ideas why the All option is not refreshing the output, I have
tried variations on this theme. Is there a method to force a refresh
of the components ?
Thanks for any help, Tim