Bob,
I removed the additional canvas and still get no reload on the dataGrid. I can load the parms when the app first starts, or leave the parms off and have an empty dataGrid. But either way the dataGrid will not reload when I click my button.
Here's my entire mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="955" minHeight="600" xmlns:ibi="http://www.informationbuilders.com" width="1000" height="1000">
<mx:Script>
< ![CDATA[
//not using all these imports right now
import mx.charts.HitData;
import mx.charts.chartClasses.IAxis;
import mx.charts.events.ChartItemEvent;
import mx.collections.ArrayCollection;
import mx.collections.ICollectionView;
import mx.collections.Sort;
import mx.collections.SortField;
import mx.controls.Alert;
import mx.controls.DataGrid;
import mx.controls.HSlider;
import mx.controls.List;
import mx.controls.dataGridClasses.DataGridColumn;
import mx.core.IUIComponent;
import mx.events.ListEvent;
import mx.events.SliderEvent;
[Bindable]protected var selectedProduct:String="2-Wheel Tractors";
[Bindable]protected var selectedOERegion:String="Eastern Europe";
[Bindable]protected var selectedDate:String="2008";
//protected var fexString:String;
protected function btnChart_clickHandler(event:MouseEvent):void
{
txtSegment.text=listSegment.selectedItems.toString();
txtApplication.text=listApplication.selectedItems.toString();
selectedProduct=listProduct.selectedItems.toString();
txtProduct.text=selectedProduct;
selectedDate=cbDate.selectedLabel;
txtDate.text=selectedDate;
selectedOERegion=listRegion.selectedItems.toString();
txtRegion.text=selectedOERegion;
filteredData.ibiUrlParms="PRODYR=" + selectedDate +
",SELPROD=" + selectedProduct +
",SELOEREGION=" + selectedOERegion;
mainCanvas.reloadData("filteredData","");
}
]]>
</mx:Script>
<ibi:ibiCanvas id="mainCanvas" height="1000" width="1000" x="0" y="0">
<ibi:ibiDataGrid x="39" y="421" width="547" id="mainData" seturl="http://v-devserver03/ibi_apps/WFServlet?IBIMR_domain=commonfi%2Fcommonfi.htm&IBIMR_action=MR_RUN_FEX&IBIMR_sub_action=MR_STD_REPORT&IBIMR_fex=app%2Fdashboard.fex&IBIF_ex=app%2Fdashboard.fex&IBIMR_flags=&IBIMR_folder=%23commonrpttot" visible="false"/>
<ibi:ibiDataGrid x="411" y="222" width="547" id="filteredData" seturl="http://v-devserver03/ibi_apps/WFServlet?IBIMR_domain=commonfi%2Fcommonfi.htm&IBIMR_action=MR_RUN_FEX&IBIMR_sub_action=MR_STD_REPORT&IBIMR_fex=app%2Fdashdefault.fex&IBIF_ex=app%2Fdashdefault.fex&IBIMR_flags=&IBIMR_folder=%23commonrpttot" ibiAddRandom="true" visible="true" ibiUrlParms="PRODYR={int[selectedDate)},SELPROD={selectedProduct},SELOEREGION={selectedOERegion}"/>
<ibi:ibiList x="10" y="48" id="listSegment" ibiParent="mainData" ibiColumn="SEGMENT" ibiFilterAble="true" ibiFilterShowALL="false"/>
<ibi:ibiList x="208" y="48" id="listApplication" ibiColumn="APPLICATION" ibiFilterParent="listSegment" ibiParent="mainData" ibiFilterAble="true" ibiFilterShowALL="false"/>
<ibi:ibiList x="411" y="48" id="listProduct" ibiColumn="PRODUCT" ibiFilterParent="listApplication" ibiParent="mainData" ibiFilterShowALL="false"/>
<ibi:ibiList x="206" y="247" id="listRegion" ibiParent="mainOEMRegion" ibiFilterAble="true" ibiColumn="OEMREGION" ibiFilterShowALL="false" ibiFilterValsReverse="true" ibiSortValues="true"/>
<ibi:ibiDataGrid x="609" y="72" id="mainOEMRegion" seturl="http://v-devserver03/ibi_apps/WFServlet?IBIMR_domain=commonfi%2Fcommonfi.htm&IBIMR_action=MR_RUN_FEX&IBIMR_sub_action=MR_STD_REPORT&IBIMR_fex=app%2Ffexoemregion.fex&IBIF_ex=app%2Ffexoemregion.fex&IBIMR_flags=&IBIMR_folder=%23commonrpttot" visible="false"/>
<ibi:ibiDataGrid x="627" y="421" seturl="http://v-devserver03/ibi_apps/WFServlet?IBIMR_domain=commonfi%2Fcommonfi.htm&IBIMR_action=MR_RUN_FEX&IBIMR_sub_action=MR_STD_REPORT&IBIMR_fex=app%2Ffexdate.fex&IBIF_ex=app%2Ffexdate.fex&IBIMR_flags=&IBIMR_folder=%23commonrpttot" id="mainDate" visible="false"/>
<ibi:ibiComboBox x="10" y="248" ibiParent="mainDate" ibiColumn="PRODUCTIONYEAR" ibiFilterAble="true" id="cbDate" ibiFilterShowALL="false"/>
<mx:Button x="411" y="381" label="Chart it" id="btnChart" click="btnChart_clickHandler[event)"/>
<mx:Label x="72" y="22" text="Segment" id="txtSegment"/>
<mx:Label x="281" y="22" text="Application" id="txtApplication"/>
<mx:Label x="465" y="22" text="Product" id="txtProduct"/>
<mx:Label x="60" y="222" text="Date" id="txtDate"/>
<mx:Label x="260" y="222" text="Region" id="txtRegion"/>
<mx:Label x="10" y="22" text="Segment" id="lblSegment" fontWeight="bold"/>
<mx:Label x="208" y="22" text="Application" id="lblApplication" fontWeight="bold"/>
<mx:Label x="411" y="22" text="Product" id="lblProduct" fontWeight="bold"/>
<mx:Label x="10" y="222" text="Date" id="lblDate" fontWeight="bold"/>
<mx:Label x="208" y="222" text="Region" id="lblRegion" fontWeight="bold"/>
<mx:Panel x="10" y="413" width="627" height="524" layout="absolute" title="OEM Model Brand">
<ibi:ibiColumnChart left="0" top="0" bottom="0" right="0" id="colModel" ibiParent="dataGroup" ibiGroupBy="OEMMODELBRAND" ibiUseFiltered="true" ibiXField="OEMMODELBRAND" ibiYField="Sum.PRODUCTIONQUANTITYBYYEAR" fontSize="10" visible="false"/>
<ibi:ibiBarChart id="barModel" ibiGroupBy="OEMMODELBRAND" ibiParent="filteredData" ibiUseFiltered="true" ibiXField="Sum.PRODUCTIONQUANTITYBYYEAR" top="0" left="0" bottom="0" right="0" ibiDelayLoad="true" ibiYField="OEMMODELBRAND"/>
</mx:Panel>
<mx:Panel x="645" y="413" width="345" height="285" layout="absolute" title="By Region">
<ibi:ibiPieChart left="-21" top="33" bottom="39.816345" right="127" id="pieRegion" ibiParent="filteredData" ibiGroupBy="OEMREGION" ibiUseFiltered="true" ibiField="Sum.PRODUCTIONQUANTITYBYYEAR" ibiNameField="OEMREGION" showDataTips="true"/>
<ibi:ibiLegend x="167" y="5" width="158" height="245" id="pieRegionLegend" ibiParent="pieRegion" fontSize="6" direction="vertical">
</ibi:ibiLegend>
</mx:Panel>
</ibi:ibiCanvas>
</mx:Application>
Here's my fex:
-DEFAULT &PRODYR = 2008;
-SET &PRODYR = IF(&PRODYR EQ 2008) THEN (&DATEYY) ELSE(&PRODYR);
-DEFAULT &SELPROD = '2-Wheel Tractors';
-SET &SELPROD = IF(&SELPROD EQ '2-Wheel Tractors') THEN ('2-Wheel Tractors') ELSE(&SELPROD);
-DEFAULT &SELOEREGION = 'Western Europe';
-SET &SELOEREGION = IF(&SELOEREGION EQ 'Western Europe') THEN ('Western Europe') ELSE(&SELOEREGION);
TABLE FILE OELINKV2
SUM
PRODUCTIONQUANTITYBYYEAR
BY SEGMENT
BY APPLICATION
BY PRODUCT
BY OEMMODELBRAND
BY OEMREGION
BY PRODUCTIONYEAR
WHERE PRODUCTIONYEAR EQ &PRODYR;
WHERE PRODUCT EQ &SELPROD.QUOTEDSTRING;
WHERE OEMREGION EQ &SELOEREGION.QUOTEDSTRING;
ON TABLE PCHOLD FORMAT XML
END
I put in defaults and matched them to see if the data changes when the app runs, and it does. The mxml file sets the region to Eastern Europe and that is what is displayed if I use the ibiUrlParms property of the dataGrid. The fex runs fine on its own too. I can pass different data in and it will change.
Any other thoughts? I really appreciate your help.
Joy
7.7.2, Windows, html