The modelChanged event is dispatched from
the dataProvider itself (which can be the Array class). I’m notfamiliar
with flashorb so I don’t know how it goes about populating its results. In
order for the modelChanged event to fire you need to use the DataProvider
methods like addItem and removeItem. If the flashorb code does that you’ll
be fine, otherwise you’ll need to find another way.
Matt
From: bhaq1972
[mailto:[EMAIL PROTECTED]
Sent: Friday, February 04, 2005
8:33 AM
To: [email protected]
Subject: [flexcoders] Want to know
when all records retrieved in remoting
Hi
I'm using flashorb remoting to retrieve datafrom
my .net middle
tier. My flashorb is configured to return an
initial 10 records and
then retrieve the rest as needed.
This is fine and is exactly what i want when(for
example) i am
populating a datagrid or any other UI.
However, if i am populating a non-visual variable,
i want all the
records to be returned.
So I use setDeliveryMode("fetchall", 10)
to get all records, but the
problem i have is i dont know when all the records
have been
retrieved.
I read somewhere that the modelChanged() event
would be fired when
more data is returned. However i have no idea
where this event is
(or should be trapped) in my mxml/actionscript.
any advise welcomed
<mx:Script>
var myResult;
function dataRetrieval_Handler(result)
{
result.setDeliveryMode("fetchall", 10);
myResult = result;
}
</mx:Script>
|