+  Flower Platform
|-+  Gantt4Flex
| |-+  Gantt4Flex
| | |-+  #6133-FI: Gantt diagram inside flex 4 container generates errors
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

« previous next »
Pages: [1] Print
Author Topic: #6133-FI: Gantt diagram inside flex 4 container generates errors  (Read 1049 times)
StanislavZ
Newbie
*
Posts: 7


Email
« on: March 26, 2012, 02:14:18 PM »

When chart located inside mx:Box container everything works fine, however if we remove mx:Box it doesn't.

Test project located here: http://dl.dropbox.com/u/16113866/gantt_test.fxp
« Last Edit: March 27, 2012, 03:54:29 PM by Luiza » Logged
Luiza
Flower Platform Developer
Global Moderator
*****
Posts: 228



« Reply #1 on: March 27, 2012, 09:05:55 AM »

Hello,

Any details about the errors you obtain?
Do you work on flex 4 or on flex 3?

Regards,
Luiza
Logged
StanislavZ
Newbie
*
Posts: 7


Email
« Reply #2 on: March 27, 2012, 10:28:06 AM »

Luiza,

As you see from attached project, I'm working on Flex 4, when you run the application you will see 2 charts, one is populated with data and another is not.

Thanks,
Logged
Luiza
Flower Platform Developer
Global Moderator
*****
Posts: 228



« Reply #3 on: March 27, 2012, 11:07:04 AM »

Hello,

I'll investigate this problem.
From backward experience, when working with flex 4, it is better to place your gantt in a flex 3 container (Box, Panel etc).
Also printing will generate errors if you don't do that.

Regards,
Luiza
Logged
StanislavZ
Newbie
*
Posts: 7


Email
« Reply #4 on: March 27, 2012, 11:23:55 AM »

Luiza,

Thanks for answer! I gues this is a bug?

Do the team plan to fix it?
Logged
Luiza
Flower Platform Developer
Global Moderator
*****
Posts: 228



« Reply #5 on: March 27, 2012, 11:30:53 AM »

Yes,

But this is not a high priority issue.


Regards,
Luiza
Logged
Daniela
Flower Platform Developer
Global Moderator
*****
Posts: 10



« Reply #6 on: May 02, 2012, 04:03:32 PM »

Hello,

I am currently working on fixing this bug but I can't reproduce your problem because the link that you have given us (http://dl.dropbox.com/u/16113866/gantt_test.fxp) is not active anymore. Can you please give us another location for your project ?

Thank you in advance and I will wait for your answer,
Dana.
Logged
StanislavZ
Newbie
*
Posts: 7


Email
« Reply #7 on: May 02, 2012, 04:11:59 PM »

Hello Dana,

Here it is http://dl.dropbox.com/u/16113866/gantt_test.fxp

Thanks!
Logged
ghorwitchsmith
Newbie
*
Posts: 2


Email
« Reply #8 on: June 25, 2012, 02:11:36 PM »

Hi there.

We are experiencing the same problem. Our app used TabNavigators so the gantt chart is in a tab. I tried wrapping the gantt in an mx:Box as suggested above but am getting an error.

Help would be very appreciated here as we intend to release soon!

Code from MXML...

Quote

<s:NavigatorContent   xmlns:local="*" ... removed for ease of post>

<s:VGroup width="100%" height="100%">   
      <s:HGroup width="100%" height="100%">
         <s:Scroller width="100%" height="100%">
             <s:HGroup width="100%" height="100%">
               <s:VGroup width="100%" height="100%" horizontalAlign="center">
                  <s:VGroup>
                     <filter:EnquirySearchFilter id="searchFilter"  maxWidth="1200"
                                                      enabled="{!pm.complete}"
                                                     creationComplete="searchFilter_creationCompleteHandler(event)"
                                                     pm="{this.pm}" width="100%"/>
                     <filter:EnquiryAdvancedSearchFilter width="100%"  maxWidth="1200"
                                                      enabled="{!pm.complete}"
                                                      pm="{this.pm}"/>
                  </s:VGroup>
                  
                  <s:Group width="100%" height="100%">
                     <s:Button right="131" top="0" width="60" label="View"
                             click="view_clickHandler(event)"/>
                     
                     <s:Button right="0" top="0" width="130"
                             label="Add to Basket &gt;&gt;"
                             enabled="{!pm.complete}"
                             click="addToBasket_clickHandler(event)"/>
                     <mx:TabNavigator left="0" top="0" width="100%" height="100%">
                        <s:NavigatorContent label="Managed Apartments">
                           <mx:Box width="100%" height="100%">
                                        <!-- Wrapped in MX Box to resolve bug in Gantt4Flex sitting in a spark component!! -->
                                        <gantt4flex:GanttDiagramFigure id="gantt" width="100%"
                                                   height="100%"...

...
</s:NavigatorContent>

Error coming from Flex on close of tab navigator...

Quote
[Fault] exception, information=TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.crispico.flower.flexdiagram.gantt.figure::AbstractGanttDiagramFigure/_-5T()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:13152]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:844]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]
« Last Edit: June 25, 2012, 02:13:35 PM by ghorwitchsmith » Logged
Luiza
Flower Platform Developer
Global Moderator
*****
Posts: 228



« Reply #9 on: June 28, 2012, 09:11:13 AM »

Hello,

This problem will be fixed in the next gantt version.

Regards,
Luiza
Logged
ghorwitchsmith
Newbie
*
Posts: 2


Email
« Reply #10 on: June 28, 2012, 10:57:04 AM »

Hi Luiza

That is good news, I saw on another post that Cristian gave a prerelease to someone, is that possible? / When is the next release? To fix this issue, I've temporarily switched the WindowedApplication to mx, but that plays havoc with our application in terms of styling.

All the best


Giles

Hello,

This problem will be fixed in the next gantt version.

Regards,
Luiza
Logged
Pages: [1] Print 
« previous next »
Jump to: