openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Bird eye not working in gantt chart 2.0 and issue with display button

Open ThorOkenshield opened this issue 6 years ago • 7 comments

Version 1.71.21, 1.71.23

Step to reproduce issue

Open gantt chart 2.0 and set property showBirdEyeButton true. Now click on eye button nothing happens

image

Next Issue is the Table display buttons just click all buttons randomly
image

example "Click display table Click display chart Click display table and chart Click display chart Click display table" keep on repeating this Clicks

You get an error in console image

When such error occurs when iam in display table and chart mode the table wont be rendered image

image

ThorOkenshield avatar Aug 26 '20 11:08 ThorOkenshield

Hello @ThorOkenshield ,

Thank you for sharing this finding. I've created an internal incident 2070273326. The status of the issue will be updated here in GitHub.

Regards, Alexandar Mitsev

alexandar-mitsev avatar Aug 26 '20 14:08 alexandar-mitsev

Hello @ThorOkenshield ,

We see that you have mentioned 2 issues.

Issue1: Click of BirdEye not working. The Bird Eye works based on Shapes and on click of it the GanttChart tries to accommodate all the shapes within the Visible Area of the screen. Along with showBirdEyeButton = true, we need to set an additional property on the Shape countInBirdEye = true for this to work. The Documentaion can be found here: https://sapui5.hana.ondemand.com/#/api/sap.gantt.simple.BaseShape%23controlProperties DemoKit sample of a similar working scenario: https://sapui5.hana.ondemand.com/#/entity/sap.gantt.simple.GanttChartContainer/sample/sap.gantt.sample.GanttChartContainer

  1. Table display buttons throw error on click. I have tried to replicate the same issue using multiple scenarios in different Versions 1.71.21, 1.71.23 as well as the latest. But unable to replicate the same.

If you could get/provide the exact scenario it would be helpfull

Thanks, Ashwin

AshwinKumarBolar avatar Aug 27 '20 07:08 AshwinKumarBolar

Issue2: After specifying height="20" error was vanished. If you dont specify height it will give -0.25px error

Issue1: I set the countInBirdEye="true" still i didnt work. I have used the conditional shape logic

image

ThorOkenshield avatar Aug 27 '20 13:08 ThorOkenshield

Hello @ThorOkenshield,

Solution for Issue1: As mentioned in the documentation, the property countInBirdEye is overwritten by property countInBirdEye of the activeShape shape from the shapes aggregation..

As the default value of countInBirdEye = false the Shapes: Task, BaseRectangle, BaseChevron are not considered when u click on the Bird Eye. Requesting you to set the countInBirdEye for the Shapes specified within the Shapes Aggregation.

You can refer to the documentation here: https://sapui5.hana.ondemand.com/#/api/sap.gantt.simple.BaseConditionalShape%23controlProperties

Issue2: Can you please help us in understanding your scenario. We are not able to replicate it in the DemoKit samples.

Thanks, Ashwin

AshwinKumarBolar avatar Aug 31 '20 06:08 AshwinKumarBolar

sap.gantt.sample.GanttChart2ConditionalShape.zip

@AshwinKumarBolar @alexandar-mitsev I have provided live example of Bird eye not working here.

ThorOkenshield avatar Sep 09 '20 08:09 ThorOkenshield

Hello @ThorOkenshield,,

We were able to replicate the issue from our end and also provide a fix for the same. The fix will be available in the next release of SAPUI5

Thanks, Ashwin.

AshwinKumarBolar avatar Sep 16 '20 08:09 AshwinKumarBolar

Hello @ThorOkenshield,

Since fix is already provided I am closing the ticket.

Regards, Yana

yanaminkova avatar Sep 25 '20 12:09 yanaminkova