I am trying to make a formatter for a column. So i call my format method. 

format method should call my service to get the category from the DB
return the category name

then, the category service sets the category var on results

If i try this it doesnt wait for the categoryService thread to finish
before
returning the value. How do I get it to return after the service call is
done?

   private function formatCategory(item:Object,
categoryId:AdvancedDataGridColumn):String{
       categoryService.flex_show.send({id: item.categoryId});
        return category.name
   }

Reply via email to