Skip to content
This repository has been archived by the owner on Mar 23, 2019. It is now read-only.

As3 Dynamiclly created Schedule don't display entry #344

Open
nicoulaj opened this issue Jun 19, 2011 · 0 comments
Open

As3 Dynamiclly created Schedule don't display entry #344

nicoulaj opened this issue Jun 19, 2011 · 0 comments

Comments

@nicoulaj
Copy link
Member

Originally filed by [email protected] on 2010-12-29T14:07:15

What steps will reproduce the problem?

  1. Create (trougth a loop)Array that contain SimpleScheduleEntry (startDate,endDate,label).
  2. Create (trough a loop) ScheduleViewer.
  3. Assigne Array[n] to ScheduleViewer[n] via ScheduleViewer.dataProvider = new ArrayCollection(array).

What is the expected output? What do you see instead?
Output is n scheduleViewer with entry.
Instead: Nothing Appear inside any schedule.

What version of the product are you using? On what operating system?
Flexib Schedule 2.5 for flex3 on Windows XP

Please provide any additional information below.
I've tried exactlly the same code with list instead of ScheduleViewer and all data are displayed in there respective list.

The logic is :

private function render ():void {

/*_scheduleStack contains object that old scheduleViewer(obj.view) and Array with entries (obj.data)*/

 for each (var obj:Object in _scheduleStack){

     /*Don't work but when tracing dataProvider.length it display the right value*/
      (obj.view as ScheduleViewer).dataProvider = new ArrayCollection(obj.data);
      _scheduleContainer.addChild(obj.view as DisplayObject);

      //Work exactlly as expected
      var l:List = new List()
      l.dataProvider = new ArrayCollection(obj.data);
      _scheduleContainer.addChild   (l)

} 

}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant