What steps will reproduce the problem?
1. Place ScheduleViewer in mxml app:
<scheduling:ScheduleViewer id="scheduleViewer"
width="100%"
height="400"
backgroundColor="#BBBBBB"
dataProvider="{ entries }"
...
/>
- key being dataProvider is bound to ArrayCollection
2. Instantiate dataProvider in 'creationComplete' event. Works Fine.
- i used supplied code, such as:
entries = new ArrayCollection();
var entry : ColoredScheduleEntry;
var startDt : Date;
var campaignDuration : Number = DateUtil.MONTH_IN_MILLISECONDS * 3;
entry = new ColoredScheduleEntry();
entry.startDate = new Date( "May 10 2007" );
entry.endDate = new Date( entry.startDate.getTime() + campaignDuration);
entry.label = "Campaign 1";
entry.backgroundColor = 0xf3ac09;
entries.addItem( entry );
3. Instantiate dataProvider in 'initialize' event. Throws error.
What is the expected output? What do you see instead?
- Expect no error!
- Error received:
> TypeError: Error #1009: Cannot access a property or method of a null
object reference.
> at flexlib.scheduling.scheduleClasses::ScheduleNavigator/moveToEntry()
What version of the product are you using? On what operating system?
Flex 2.0.1 (Hotfix 2?)
Please provide any additional information below.
- From what i could see, it seems to have something to do with not picking
up change event in dataprovider - problem is lack of setup in 'rowLocator'
Dictionary within AbstractEntryLayout class (near as I can tell!).
Original issue reported on code.google.com by slangeb...@gmail.com on 23 Oct 2007 at 8:48
Original issue reported on code.google.com by
slangeb...@gmail.com
on 23 Oct 2007 at 8:48