I've got a little problem here using dataproviders...

Basically, I have a remoteobject in my main application.  One of the
methods - getListData() fires when the app starts up.

Inside one of my components, I have a list that uses something from
the results as itts dataprovider... I basically do this in the
component:

[Bindable]
private var listData:Object;

private function init():void { // called via creationComplete
        listData = parentDocument.ro.getListData.lastResult;
}

And then in my mxml.... I'm binding to a piece of listData

<mx:List width="250" height="180" id="cboOfficers"
dataProvider="{listData.OFFICERS}" labelField="NAMSTAT"
dragMoveEnabled="true" dragEnabled="true" dropEnabled="true"
dragDrop="dropHandler(event);"/>

There is another list that I use for drag and drop...  and a button
that I want to use to "reset" the lists... empty the second one, and
reset the first to its original content.

However, since I'm using all this databinding, the contents of
listData is changed - and since it's linked to
parentDocument.ro.getListData.lastResult, the contents of the data
THERE are also changed.

So "resetting" the data is impossible without re-running the request.

How do I handle this?

-- 
Rick Root
Check out CFMBB, BlogCFM, ImageCFC, ImapCFC, CFFM, and more at
www.opensourcecf.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
CF 8 – Scorpio beta now available, 
easily build great internet experiences – Try it now on Labs
http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4390
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to