Hello everyone
 
WARNING:- l-o-n-g problem description; questions w-a-y down below...
 
I have a cfc with a function getSources.  This function talks to SQL server and returns an array of structures to Flash.
 
I need to call this function twice, and handle the response differently each time I call it.
 
The first time I call it, I want to populate a combo box.
 
The second time I call it, I want to populate a datagrid so I can add/edit/delete values.
 
I can do either of these individually.  It's when I try to have both available that one or the other stops responding.
 
Basically, I am aiming to do something like this
 
myService1 = net_conn.getService("staff.white");
myService2 = net_conn.getService("staff.white");
 
myService1.getSources(); // onResult, populate the combo box
myService2.getSources(); // onResult, populate the datagrid
 
I have tried experimenting with responders
 
eg
 
var SourcesComboResponder = new Object();
 
SourcesComboResponder.>
  // add to combo box ...
}
 
var SourcesDataGridResponder= new Object();
 
SourcesDataGridResponder.>
  // add to datagrid
}
 
and I have tried putting the custom responder in the getService call eg getService("staff.white", responder);
 
i have also tried putting it in the function call eg myService.getSources(responder);
 
and only one responder will run.
 
Finally, after all that, here are my questions:
- did any of that make sense?
- is what i am attempting possible?
- is there a better way to achieve what I am trying to do?  my only thought has been to have two functions in the cfc, but I don't really want to do that.
 
any help muchly appreciated.
 
Antony
 
 
---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
----------------------------------------------------------------------
Maddocks
Melbourne - Tel: (61 3) 9288 0555 Fax: (61 3) 9288 0666
Sydney - Tel: (61 2) 8223 4100 Fax: (61 2) 9221 0872
Web: http://www.maddocks.com.au
----------------------------------------------------------------------
The information in this electronic mail is privileged
and confidential, intended only for use of the individual
or entity named. If you are not the intended recipient,
any dissemination, copying or use of the information is
strictly prohibited. If you have received this transmission
in error please delete it immediately from your system
and inform us by email on [EMAIL PROTECTED]
----------------------------------------------------------------------
---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to