Hello again,

I make an app that populate an datagrid with data from a remote object, the
data is loaded perfectly, but the function enter in a infinite loop. Looking
in the debbuger, I see the RPC are call and work, and work, and work,
forever and ever :(

I'd try use a webservice to this, but the performance is very slow.

Where is my error? Anyone can explain how to use remote objects in flex with
examples?

Thanks,

Kleber Voigt

<!--ControleTempos.mxml-->
<mx:Script source="../com/ControleTemposAS.as" />
<mx:RemoteObject id="temposCFC"
endpoint="http://qualidade/flashservices/gateway";
source="weiler.intranet.components.controleTempos" showBusyCursor="true">
<mx:method name="getDesenho" result="gDesenho(event.result)"
fault="gDesenho(event.fault)" />
</mx:RemoteObject>

<mx:DataGrid id="dg_desenhos" width="100%" height="100%"
dataProvider="{temposCFC.getDesenho.result}" load="gDesenho()" >
<mx:columns>
<mx:Array>
<mx:DataGridColumn columnName="DESENHO" headerText="Desenho"/>
<mx:DataGridColumn columnName="DESCRICAO" headerText="Descri��o"/>
<mx:DataGridColumn width="70" columnName="USINAGEM"
headerText="Usinagem"/>
<mx:DataGridColumn width="70" columnName="MONTAGEM"
headerText="Montagem"/>
<mx:DataGridColumn width="70" columnName="TOTAL" headerText="Total"/>
</mx:Array>
</mx:columns>
</mx:DataGrid>

<!--ControleTemposAS.as-->
function gDesenho(){
temposCFC.getDesenho.send();
}




Reply via email to