DataProvider syntax error -why cant 2 components have the same dataProvider

Hi,
I am getting the following error:
Multiple Initializers for property 'dataProvider' (note:
'dataProvider' is the default property of
mx.controls.TitleList').
setup
i have two components one that is a lineChart the other is a
titleList. for each I have identified the dataProvider property as
the same arrayCollection (dataPoints) so my code looks like:
<mx:LineChart
id="linechart"
dataProvider="{ dataPoints }" .... other properties>
for both components. I had this same error when i tried to
add a legend component yesterday so it is not limited to just these
two components. I tried instantiating a variable as a type
dataProvider, so that it was not being instantiated twice, but no
such primitive type was available via the auto-complete code
function. I am not sure what else to try. Thanks,
Jed

Greg,
Thanks again, I figured out the problem. In the mxml I was
using the category axis tag without having a parent horizontal axis
tag. So for others here is how a chart needs to be structured.
correct syntax:
<LineChart id="linechart1" dataProvider=" {
myArrayCollection } ">
<mx:horizontalAxis>
<!--use the category axis tag to tell the chart what value
in your array collection you want to use for the x axis-->
<mx:CategoryAxis categoryField="x"/>
</mx:horizontalAxis>
<mx:series>
<!--Use the line series within a series tag to tell the
LineChart which y field it should use to draw the line-->
<mx:LineSeries id="yourFirstYvalues" yField="y"/>
</mx:series>
</mx:LineChart>
<mx:Legend dataProvider = "linechart1" />
Jed

Similar Messages

  • Why cant I have the date format like this:  1/2/07, it converts to Jan 2

    Why cant I have the date format like this: 1/2/07, it converts to Jan 2, 2007
    I want to keep it like that because, I transported a huge spreadsheet from my PC, and it has like this: 1/1/07, and there is way to many, to go back and change. Please help. Thank you.

    Hello
    Welcome to the club.
    The response seems to be simple.
    Those who wrote the Help are not those who wrote the PDF User's Guide which are not those who coded the application.
    As on this forum you will met only users trying to help other users, no one would be able to tell you if what we got is a bug or a design flaw.
    Like many of us,
    *Go to "Provide Numbers Feedback" in the "Numbers" menu*, describe what you wish: a way to define the default format used as Automatic date/time.
    Then, cross your fingers, and wait for iWork'09
    Yvan KOENIG (from FRANCE mardi 15 janvier 2008 15:10:17)

  • I can send tv shows from my ipad to my apple tv without any issues.  Why cant i do the same with a movie rental?

    I can send tv shows from my ipad to my apple tv without any issues.  Why cant i do the same with a movie rental?  Or how do i do the same with a movie rental?

    Personally I think the iOS devices are poor at reconnecting  - Airplay establishes that a link is available but when the iPhone/iPad has been away from the house and rejoins the network i think AppleTV already thinks it's connected with a different IP address and fails to recognise it has joined the network again with new credentials.
    Something along those lines anyway.
    I find that a combination of restarting AppleTV, router and iOS device tends to fix it, but not for everyone.
    AC

  • May i ask why all linksys have the same password.

    May i ask why all linksys have the same password. i just edit my password. some one did hack in to my router. next time you make a router. give password out that not the same. some just hack in to my. it fix now. i lost net for 3hr.

    You have to understand that linksys produces an amazing amount of routers.  They frequently come out with new models and revisions.  It would be a very confusing process for each model/version to have a different username and password. 
    Using a shared default username and password makes the life of computer techs easier because we know what it will be, assuming the user hasn't changed the defaults.
    It's absolutely your responsibility to change your default password when you setup your router.  Just as it's essential to setup security on your wireless router when you install it.  If you're router is being hacked from the outside I would greatly recommend setting up WPA encryption on your router to help stop this in the future.
    www.PCTServicesWestPalm.com
    www.SouthFloridaSmallBusiness.com
    Message Edited by pc-t services on 04-21-2008 09:43 AM

  • Facebook IM - Why cant we have the IM head bubble on the home screen?  That would be such a great feature..

    I know you can Facebook head bubble on android and Jailbreak to have on the home screen.  It's just an easy feature to enhance the experience.

    Thanks!  I know they dont have the access, I just wish they did.  Messenger just keeps evolving, they just pushed out another huge update today.  I find myself using it often.  Dont get me wrong, I enjoy being on messenger, just wish it was more alive in IOS.  If they did iMessage bubble on the home screens and apps to fast reply, that would appease me, just something more than an app.

  • Why do I have the same photos in two "albums" after sync?

    After upgrading my 3GS to iOS5 this evening (and fixing all the other issues that came along), I have noticed that after syncing with the photo folder I keep on my PC that those same photos now have two albums in my photos app.  Can anyone explain this and is there a fix?  I tried deleting them but that removed both folders, and a quick browsing of the forums brought no other threads addressing this issue.

    Not sure how this did not happen with the previous iOS version on your iPhone. It has been this way on the various iPhones I've used - original, 3G, and now an iPhone 4, and I've used every iOS version beginning with 1.0.
    All photos transferred from your computer are stored in the Photo Library. The folders or albums below include a pointer to the original photos that are stored in the Photo Library - the photos are not duplicated.
    With multple folders or albums transferred, this way you can view the photos in a folder or album only by selecting the folder or album, or you can view all photos in all folders or albums by selecting Photo Library.
    You cannot remove this.

  • Two classes have the same XML type name??? Please, help...

    Hello!
    I have a simple web service class. I generated the ws server-side classes using wsgen.
    I created a jar file from the generated code.
    Then :
    Endpoint endPoint = Endpoint.create(
    new WebServicesUnitImpl()
    String wsFinalName = "http://localhost:9999/akarmi";
    endPoint.publish( wsFinalName );
    The web service started fine.
    Then called wsimport, and the generated classes have been placed into a jar file.
    Then called the code like this:
    WebServicesUnitImplService service = new WebServicesUnitImplService();
    WebServicesUnitImpl unit = service.getWebServicesUnitImplPort();
    unit.serviceXXX();
    but the code doesn't work at all, resulting this error message:
    Two classes have the same XML type name "{http://ws.components.core.ilogique.vii.com/}getMessages". Use @XmlType.name and @XmlType.namespace to assign different names to them.
         this problem is related to the following location:
              at com.vii.ilogique.core.components.ws.GetMessages
              at public com.vii.ilogique.core.components.ws.GetMessages com.vii.ilogique.core.components.ws.ObjectFactory.createGetMessages()
              at com.vii.ilogique.core.components.ws.ObjectFactory
         this problem is related to the following location:
              at com.vii.ilogique.core.components.ws.GetMessages
    I have this error report on all generated class file! How can i fix this?
    What is the main problem? The SE usage? I copied the lates jax-ws jars into endorsed lib resulting the same.
    Any help is appreciate.

    Hello!
    I have a simple web service class. I generated the ws server-side classes using wsgen.
    I created a jar file from the generated code.
    Then :
    Endpoint endPoint = Endpoint.create(
    new WebServicesUnitImpl()
    String wsFinalName = "http://localhost:9999/akarmi";
    endPoint.publish( wsFinalName );
    The web service started fine.
    Then called wsimport, and the generated classes have been placed into a jar file.
    Then called the code like this:
    WebServicesUnitImplService service = new WebServicesUnitImplService();
    WebServicesUnitImpl unit = service.getWebServicesUnitImplPort();
    unit.serviceXXX();
    but the code doesn't work at all, resulting this error message:
    Two classes have the same XML type name "{http://ws.components.core.ilogique.vii.com/}getMessages". Use @XmlType.name and @XmlType.namespace to assign different names to them.
         this problem is related to the following location:
              at com.vii.ilogique.core.components.ws.GetMessages
              at public com.vii.ilogique.core.components.ws.GetMessages com.vii.ilogique.core.components.ws.ObjectFactory.createGetMessages()
              at com.vii.ilogique.core.components.ws.ObjectFactory
         this problem is related to the following location:
              at com.vii.ilogique.core.components.ws.GetMessages
    I have this error report on all generated class file! How can i fix this?
    What is the main problem? The SE usage? I copied the lates jax-ws jars into endorsed lib resulting the same.
    Any help is appreciate.

  • After I updated lion to 10.7.4, app store does not recognize my ID APPLE and it unable to connect me to app store in order to update/download apps? What have I to do? I have the same problem with mac mini e mac book air. Please help me!

    After I updated lion to 10.7.4, app store does not recognize my ID APPLE and it unable to connect me to app store in order to update/download apps? What have I to do? I have the same problem with mac mini e mac book air. Please help me!

    Your advice did not help me. I also installed 10.7.4 combo but the situation is the same.
    my internet connection is ok, mail is ok, but app store after 3 resets does not recognize my ID and it says "connection is not possible". Why? I have the same problem in both my mac mini late 2009 and mac book air 2010? Is it a problem of 10.7.4 update? I have to solve this problem and how can i return to 10.7.3 if my last backup was not with 10.7.3???thank you for your kind collaboration...

  • TS3297 Error message: 'Cant connect to the itunes store. An unknown error occured (-3212) please check you have an active internet connection and try again'. Help !

    Can someone help me please ? I was using itunes (downloading albums etc) just half an hour ago. I had a pop up asking me if i'd like to download the latest version of itunes, which i accepted. When the update had finshed downloading, i then restarted my computer, as i usually would. Tried to re access the itunes store, and received the following error message: 'Cant connect to the itunes store. An unknown error occurred (-3212) please check you have an active internet connection and try again.
    Needless to say, i have an active internet connection and cant see any reason why this would be happening, it has never happened before ?
    Any help would be appreciated.

    Do you have PeerBlock installed/    >  TS3297 Error message: 'Cant connect to the itunes store.

  • TS3694 I cant get my ipad 2 out of recovery. The apple icon stays on and nothing happens. I tried restoring it through Itunes but it comes up with a 3194 error code. I have the latest Itunes being 10.6.1.7 and the latest windows update.Can someone please

    I cant get my ipad 2 out of recovery. The apple icon stays on and nothing happens. I tried restoring it through Itunes but it comes up with a 3194 error code. I have the latest Itunes being 10.6.1.7 and the latest windows update.Can someone please help?

    Recovery Mode
    1. Disconnect the USB cable from the device, but leave the other end of the cable connected to your computer's USB port.
    2. Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for the device to turn off.
    3.While pressing and holding the Home button, reconnect the USB cable to the device. The device should turn on.
    4. Continue holding the Home button until you see the "Connect to iTunes" screen. When this screen appears, release the Home button. iTunes should alert you that it has detected a device in recovery mode. Click OK, and then click Restore to restore the device.
    Note: Data will be lost. You may have to repeat the above many times.

  • Why cant I open a PDF file from a cd-r that I burned into this cd myself at work on my personal laptop? I have the same version of Adobe.

    Why cant I open a PDF file from a cd-r that I burned into this cd myself at work on my personal laptop? I have the same version of Adobe.

    What happens when you try? Have you saved to your computer and then tried to open it?

  • Why does Apple not give a list of error messages and possible solutions? I have the (-54) error continually that has suddenly appeared and cannot find a solution, even though other users seem to have the same problem.

    Why does Apple not give a list of error messages and possible solutions? I have the (-54) error continually that has suddenly appeared and cannot find a solution, even though other users seem to have the same problem.

    This is a user to user forum.  Apple isn't here and won't answer you.  You need to contact Apple directly.  You can use the Contact button at the bottom of the screen.

  • Why cant i have my twitter timeline pushed to me like on android

    why cant i have my twitter timeline pushed to me like on android? This is really frustrating.

    Error 3194: Resolve error 3194 by updating to the latest version of iTunes. "This device is not eligible for the requested build" in the updater logs confirms this is the root of the issue. For more Error 3194 steps see: This device is not eligible for the requested build above.
    Above is from:
    http://support.apple.com/kb/TS3694
    If you need further help. try the using the search communities feature in the upper right.  Search for 3194.

  • Why cant i have more than one movie at a time

    why cant i have more than one movie at one time

    It may be how much space is available on your iPad. The average movie is around 2.5 gigabytes. If you reach your space limit then you can't download anything until you clear space.

  • I am using iWeb '08 2.0.4 to create a web page...since I will not be able to publish to Mobileme I am trying to publish to another server...I keep getting this error message " Parse error: syntax error, unexpected T_STRING"  I have no idea what to do????

    I am using iWeb '08 2.0.4 to create a web page...since I will not be able to publish to Mobileme I am trying to publish to another server...I keep getting this error message " Parse error: syntax error, unexpected T_STRING"  I have no idea what to do???? Any Suggestions?

    This is to do with the .htaccess file on your server.
    You either need to deal with this and open it with an html editor or change your web host.
    Do a search of this forum and there are plenty of posts that relate to parse error and .htaccess pages.  Have a look on the right hand side of this post and you will see similar ones like yours.

Maybe you are looking for

  • Nokia strips out speed camera warnings from the Ma...

    On both my 808s I have just realised the audio warnings have stopped totally. There was a recent maps update. I did an update check and it said that the whole lot (3GB in my case) needed updating, so I did it. That was probably a bad idea, because it

  • IMac crashes since new keyboard and mouse arrived

    Recently picked up the new wireless keyboard and mouse after my old set finally died and once I got them both working I started to experience constant system crashes including restart messeges and random software just quitting out without cause. The

  • How to connect SAP R3 system to BW system

    please give me step by step  guidance how to connect SAP R3 system to BW system with example.

  • How to stop FIM from Deleting Connections?

    There is something that i need, but have ben unable to do... and that is to keep my BDC data even when there is no connection. I have not been able to figure out how to stop deletes from happening... this is what happens when my service is down This

  • Configuration item to create a registry key in every HKEY_USERS key

    Hi, Would it be possible to create a configuration item that will create a registry key if not existing in every users under HKEY_USERS? Would a wildcard symbol (% or *) work for this? Ex.Check if the following registry keys is existing, if not remed