RE: [flexcoders] Best DataProvider for Combo Box

2007-09-06 Thread Tracy Spratt
Array is fine if you do not plan to programatically update parts of the
data.  If you do, use ArrayCollection, because its API dispatches the
events necessary to sync the visual control with the changed data.

 

There is no problem calling multiple functions.

 

However, remember that all the RPC data service calls are asynchronous.
You must use a result handler to access the result data.  So the
functions you call immediately after the data service call can not
access the data of that call.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Sumner
Sent: Thursday, September 06, 2007 1:04 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Best DataProvider for Combo Box

 

I am using CF remote objects

 

I want to populate a Combo Box from the result of the CFC method -
TermsList which will be a query with two fields TermDesc, and TermCode.

 

Should this be an ArrayCollection or just an Array or something else?

 

I want to display the TermDesc and use TermCode as the value.

 

AS something related  -- after the creationComplete I have this
function:

 

public function initMe():void{

//this runs when the application is first
created

  getMembers();

  

  itemNum=Application.application.parameters.itemNum;

 
submittedby=Application.application.parameters.submittedby;

  getWorksfor();

  fetchPO();

  //  getTerms();

  }

 

Is there any problem calling multiple functions - getMember(),
fetchPO(), getTerms()?

 

These functions in turn call service_ro.getMember etc.

 

Thanks,

 

Michael Sumner

Nations Best Sports

817-788-0034 ext 244

817-788-8542 fax

 

 



[flexcoders] Best DataProvider for Combo Box

2007-09-06 Thread Michael Sumner
I am using CF remote objects

 

I want to populate a Combo Box from the result of the CFC method - TermsList
which will be a query with two fields TermDesc, and TermCode.

 

Should this be an ArrayCollection or just an Array or something else?

 

I want to display the TermDesc and use TermCode as the value.

 

AS something related  -- after the creationComplete I have this function:

 

public function initMe():void{

//this runs when the application is first created

  getMembers();

  

  itemNum=Application.application.parameters.itemNum;

 
submittedby=Application.application.parameters.submittedby;

  getWorksfor();

  fetchPO();

  //  getTerms();

  }

 

Is there any problem calling multiple functions - getMember(), fetchPO(),
getTerms()?

 

These functions in turn call service_ro.getMember etc.

 

Thanks,

 

Michael Sumner

Nations Best Sports

817-788-0034 ext 244

817-788-8542 fax