<?xml version="1.0" encoding="utf-8"?> <mx:TitleWindow xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300" xmlns:components="org.example.components.*"> <fx:Script> <![CDATA[ import mx.core.Application; import mx.core.FlexGlobals; import spark.components.Application; protected function exExcelMedidores_clickHandler(event:MouseEvent):void { // TODO Auto-generated method stub } ]]> </fx:Script> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> </fx:Declarations> <s:VGroup width="100%" bottom="5" height="100%"> <s:HGroup width="100%" verticalAlign="middle"> <components:SearchBar id="searchBar" width="100%"/> <s:Button id="exExcelMedidores" click="generateXLS()" label="Exportar" width="20%" height="22" /> </s:HGroup> <s:DataGrid id="dgridEquipos" resizableColumns="true" skinClass="dataGridSkin" sortableColumns="true" contentBackgroundAlpha="1" width="100%" height="90%" visible="true" editable="false" bottom="1" click="dgridEquipos_clickHandler(event)" > <s:columns> <s:ArrayList> <s:GridColumn dataField="id_medidor" headerText="ID Equipo"></s:GridColumn> <s:GridColumn dataField="nis" headerText="NIS"></s:GridColumn> <s:GridColumn dataField="luminarias" headerText="Cant. Luminarias"></s:GridColumn> <s:GridColumn dataField="tramos_ap" headerText="Cant. Tramos"></s:GridColumn> <s:GridColumn dataField="tipo_equipo" headerText="Tipo"></s:GridColumn> </s:ArrayList> </s:columns> </s:DataGrid> </s:VGroup> </mx:TitleWindow>
Solved! Go to Solution.