I am working with my party manager, I finally got it laid out correctly.
However, I have ran into one last problem, when a user finds the party
they want to tag to the file, I am trying to populate the party display
DG with the party they just added. However, I think I am going about
this the wrong way. I am trying to do this with out having to use an
array collection. I want to add directly to the dg.
This is the code that I am trying.
// CALL LISTING ADD AGENT METHOD
private function
PartyManager_Listing_Add_Agent(fileNum,uuid,name){
PartyManager.Listing_Add_Agent(fileNum, uuid,name)
}
// HANDLE LISTING ADD AGENT METHOD
private function
PartyManager_Listing_Add_Agent_Result(result):void{
Alert.show(result);
parentApplication.mainDisplay.ntcl.partyDG.addItem({partyName:agentSearc\
hDG.selectedItem.FLD_AGENTFULLNAME})
}
// HANDLE LISTING ADD AGENT ERRORS
private function
PartyManager_Listing_Add_Agent_Fault(event:FaultEvent):void{
Alert.show("Test Error","Program Error")
}
This is the error that I am getting.
ReferenceError: Error #1069: Property addItem not found on
mx.controls.DataGrid and there is no default value.
at
components.views.transactions.widgets::actionNewListAgentPanel/::PartyMa\
nager_Listing_Add_Agent_Result()
at
components.views.transactions.widgets::actionNewListAgentPanel/___Operat\
ion4_result()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven\
tFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::di\
spatchRpcEvent()
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resu\
ltHandler()
at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
at ::DirectHTTPMessageResponder/completeHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEven\
tFunction()
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/