9 Replies Latest reply on Feb 8, 2012 2:53 AM by Gudril

    DataTip will not display in AdvancedDataGrid

    mwl_connexsus Level 1

      I am really at the end of my discovery abilities!

      I have dataTips properly defined in an AdvancedDataGrid component.  The dataTip simply will not display!  What in world am I missing?

      I have experimented with several different permutations of settings - but it simply will not display.  Even the default "Data Tip not Found!" will not display.

      Is there something higher up that may be preventing dataTip displaying?

       

       

       

                          private function getDataTip(object:Object):String                     {                          if( object is AdvancedDataGridColumn ) {                               if( object.hasOwnProperty("dataTipField") ) {                                    return(object.dataTipField);                               }                               else if( object.hasOwnProperty("headerText") ) {                                    switch(object.headerText) {                                         case "Cn":      return "Campaign Name";break;                                         case "Cb":      return "Date/Time Campaign Began";break;                                         case "MiH": return "Minimum Wait Time for Calls on Hold";break;                                         case "MaH": return "Maximum Wait Time for Calls on Hold";break;                                         case "AvH": return "Average Wait Time for Calls on Hold";break;                                         case "Ho":      return "Number of Calls Currently Holding";break;                                         case "MiT": return "Minimum Talk Time of Calls";break;                                         case "MaT": return "Maximum Talk Time of Calls";break;                                         case "AvT": return "Average Talk Time of Calls";break;                                         case "Tot": return "Total Calls in the Campaign";break;                                         case "Dr":      return "Dropped Calls";break;                                         case "%Dr": return "% of Calls Dropped";break;                                         case "Co":      return "Completed Calls";break;                                         case "%Co": return "% of Calls Completed";break;                                         case "Sta": return "Campaign Status";break;                                    }                               }                          }                          else {                               if( object.hasOwnProperty("dataTipField") ) {                                    return(object.dataTipField);                               }                               else if( object.hasOwnProperty("dataField") ) {                                    switch(object.dataField) {                                         case "campName":       return "Campaign Name";break;                                         case "started":       return "Date/Time Campaign Began";break;                                         case "minhold":       return "Minimum Wait Time for Calls on Hold";break;                                         case "maxhold":       return "Maximum Wait Time for Calls on Hold";break;                                         case "avghold":       return "Average Wait Time for Calls on Hold";break;                                         case "holding":       return "Number of Calls Currently Holding";break;                                         case "mincall":       return "Minimum Talk Time of Calls";break;                                         case "maxcall":       return "Maximum Talk Time of Calls";break;                                         case "avgcall":       return "Average Talk Time of Calls";break;                                         case "totalcalls": return "Total Calls in the Campaign";break;                                         case "abandon":       return "Dropped Calls";break;                                         case "pdropped":       return "% of Calls Dropped";break;                                         case "completed":  return "Completed Calls";break;                                         case "pcomp":            return "% of Calls Completed";break;                                         case "status":            return "Campaign Status";break;                                    }                               }                          }                          return "Data Tip Not Found!";                     }

       

       

       

      <mx:AdvancedDataGrid id="cCalls" dataProvider="{ArrayCamps}" dataTipFunction="{getDataTip}" sortExpertMode="true" editable="false" enabled="true" width="100%" height="100%" textAlign="center" styleName="DatagridComp" bottom="0">
           <mx:columns>
           <mx:AdvancedDataGridColumn headerText="Cn"  dataField="campName"   dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Campaign Name" headerWordWrap="false" />
           <mx:AdvancedDataGridColumn headerText="Cb"  dataField="started"    dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Date/Time Campaign Began" width="140" headerWordWrap="false" />
           <mx:AdvancedDataGridColumn headerText="MiH" dataField="minhold"    dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Minimum Wait Time for Calls on Hold" headerWordWrap="true" />
           <mx:AdvancedDataGridColumn headerText="MaH" dataField="maxhold"    dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Maximum Wait Time for Calls on Hold" headerWordWrap="true" />
           <mx:AdvancedDataGridColumn headerText="AvH" dataField="avghold"    dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Average Wait Time for Calls on Hold" headerWordWrap="true" />
           <mx:AdvancedDataGridColumn headerText="Ho"  dataField="holding"    dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Number of Calls Currently Holding" headerWordWrap="false" />
           <mx:AdvancedDataGridColumn headerText="MiT" dataField="mincall"    dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Minimum Talk Time of Calls" headerWordWrap="true" />
           <mx:AdvancedDataGridColumn headerText="MaT" dataField="maxcall"    dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Maximum Talk Time of Calls" headerWordWrap="true" />
           <mx:AdvancedDataGridColumn headerText="AvT" dataField="avgcall"    dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Average Talk Time of Calls" headerWordWrap="true" />
           <mx:AdvancedDataGridColumn headerText="Tot" dataField="totalcalls" dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Total Calls in the Campaign" headerWordWrap="false" />
           <mx:AdvancedDataGridColumn headerText="Dr"  dataField="abandon"    dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Dropped Calls" headerWordWrap="false" />
           <mx:AdvancedDataGridColumn headerText="%Dr" dataField="pdropped"   dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="% of Calls Dropped" headerWordWrap="false" />
           <mx:AdvancedDataGridColumn headerText="Co"  dataField="completed"  dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Completed Calls" headerWordWrap="false" />
           <mx:AdvancedDataGridColumn headerText="%Co" dataField="pcomp"      dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="% of Calls Completed" headerWordWrap="false" />
           <mx:AdvancedDataGridColumn headerText="Sta" dataField="status"     dataTipFunction="{getDataTip}" showDataTips="true" dataTipField="Campaign Status" headerWordWrap="false">
                <mx:itemRenderer>
                     <mx:Component>
                     <mx:HBox width="100%" horizontalAlign="center">
                          <mx:Image horizontalAlign="center" verticalAlign="middle" width="16" source="images/{data.status}.png" />                                                            
                     </mx:HBox>
                     </mx:Component>
                </mx:itemRenderer>
           </mx:AdvancedDataGridColumn>                
           </mx:columns>
      </mx:AdvancedDataGrid>