Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
EvolvedDSM #1
Can a component use a main app's dataservice?
I have several components that require the same dataservice and arraycollection
to populate a control on each component.
Here's how my dataservice and arrayCollection are declared and populated
private var ds:DataService;
private var items:ArrayCollection;
private var item:ItemTable;
items = new ArrayCollection;
ds = new DataService("someDS");
ds.fill(items);
item = new ItemTable;
I'd like to have this all in my main application, and then let my components
use it. How can I call this dataservice and arraycollection from my main app
to my components?
EvolvedDSM Guest
-
Problem accessing results from DataService fill method
I've set up an application that gets data from a data service configured with a java-dao adapter. If I define a DataGrid with the array populated... -
How do I change the state of a component outside ofthat component?
worked perfectly, thank you!! -
Component function returntype as component name.
How does the returntype as a component effect the function and the actual return? Is this the same as extending another component? Can someone... -
How to make a protected property in the base component public in the derived component?
I have a base component, from which several components derive. What I want is to just publish some of the protected properties in the base... -
Need Tab Component - Flash MX DevNet Kit #3 / UI Component Set 5
I need the Tab Component that comes with DevNet Kit #3 (UI Component Set 5). I don't need anything else, just the Tab Component., and I can't afford... -
Greg Lafrance #2
Re: Can a component use a main app's dataservice?
I would think that using parentDocument.items, etc. or Application.aplication.items you could do this, but I wonder if the fact that they are private may prevent access. They might need to be public.
Greg Lafrance Guest
-
EvolvedDSM #3
Re: Can a component use a main app's dataservice?
Thanks Greg. Turning the variables public and using parentDocument did the trick!
EvolvedDSM Guest
-
Greg Lafrance #4
Re: Can a component use a main app's dataservice?
I would think that as long as the array collection has an id, such as myAC, then it would be compName.myAC.refresh().
Greg Lafrance Guest



Reply With Quote

