- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hello Tom,
im doing model driven develpment, my model class service classes , forms are all generated.... im getting that Error message i open two datagrids that call the same method of the service.
i saw in the link that you posted
" If you do not use data binding in conjunction with lazy loading, you can catch the ItemPendingError in your code and handle it accordingly."
How do i do that?
I want to prevent this Alerts, i want two handle this error.
Im using tabmanager, i have two canvas that fetch data from the same service, when i open just one of them NOTHING happens, but when i open both at the same time i start getting those Alerts.
This one of them, the other one is similar but without the FORM " <forms:MoedaForm"
<?xml version="1.0" encoding="ISO-8859-1"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
label="Moedas"
icon="@Embed('/assets/my/Work19.png')"
width="100%" height="100%" xmlns:rh="sgrh.*" xmlns:forms="sgrh.forms.*">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.events.FlexEvent;
import sgrh.Moeda;
protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
{
getAllResult.token = moedaService.getAll();
}
]]>
</mx:Script>
<mx:HBox width="100%" height="100%" paddingBottom="10" paddingRight="10">
<forms:MoedaForm id="MoedaForm1" valueObject="{dataGrid.selectedItem as Moeda}">
</forms:MoedaForm>
<mx:DataGrid x="10" y="10" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{getAllResult.lastResult}">
<mx:columns>
<mx:DataGridColumn headerText="Código" dataField="codigo"/>
<mx:DataGridColumn headerText="Descrição" dataField="descricao"/>
<mx:DataGridColumn headerText="Símbolo" dataField="simbolo"/>
</mx:columns>
</mx:DataGrid>
</mx:HBox>
<mx:CallResponder id="getAllResult"/>
<rh:MoedaService id="moedaService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"/>
</mx:Canvas>
thanx for the reply
regards
Imraan
Views
Replies
Total Likes