Lookups with Mappings and CHF2

I was about at wits end tryiong to get Reactor and ModelGlue set up on my server and could not get it to work. Thanks to Sean Corfield, it is now up and running!

The secret: Cummulative Hotfix 2. This hotfix breaks certain CFC lookups with mappings. So all I did was go update my CF server to the previous hot fix and away we went.

Flex 2 & SharedObjects

Hehe –

I was being bad today playing with SharedObjects and large amounts of data. I ended up being able to store about 10,000 records in a SharedObject with no problem at all. The only thing is that arises as an issue is the security dialog that pops up when the app tries to store 3 MEGs of SharedObject.

We actually do have a valid reason for wanting to store a ton of data locally with our Flex app, so I guess I wasn’t being really bad.

But now we know we can store mass amounts of data in SharedObjects.

Basically the gist is:

  1. Get a ton of data
  2. Create your SharedObject
  3. Transform the data to an Array
  4. Store the array in the SharedObject.
  5. Get the SharedObject
  6. Transform the array from the SharedObject into an ArrayCollection or whatever you are using.

Mixing Series Types in Flex 2 Charts

Becareful when you mix series types in the Flex 2 (BETA 2) Charting Components. All of the documentation says that any chart that extends the CartesianChart can use other series types. This is true but you run into issues beacuse the chart tries to format the series data based on its chart type (makes sense, except we now what to combine series types).

For example if you had an <mx:ColumnChart> with a <mx:ColumnSeries> and <mx:LineSeries> , the chart would result in something like the following:
Notice how the line doesn’t quite line up with the column chart.

If we change the <mx:ColumnChart> to an <mx:CartesianChart>, problem solved. The CartesianChart takes the data for what it is and doesn’t try to shoehorn the series in to a specific display. Now check out the ColumnChart, the line series lines up with the column chart.


Update: It should be becareful what type of chart you use. Basically if you are mixing series types, then use the CartesianChart and you won’t run into this problem. Basically what happened below is we tried to force data displayed as a line into a ColumnChart because we used the ColumnChart control. If you use the CartesianChart you won’t have this problem. Thank you Ely!