Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SinglePlanningCalendar StartDateChange event does not contain the actual startDate #4169

Open
daletman opened this issue Nov 25, 2024 · 4 comments

Comments

@daletman
Copy link

OpenUI5 version: 1.130.1 and 1.120.23 tested

Browser/version (+device/version): any

URL (minimal example if possible):
https://ui5.sap.com/#/entity/sap.m.SinglePlanningCalendar/sample/sap.m.sample.SinglePlanningCalendar

Steps to reproduce the problem:

  • In Month View use the arrows besides 'Today' button to change the month
  • The MessageToast shows the carried date object in the oEvent

What is the expected result?

The showed date should be the first day showed by the calendar (in this case Aug 29 2018)

What happens instead?

Aug 09 2018 is showed instead

Screenshot 2024-11-25 at 14 23 21
@s-todorova
Copy link
Contributor

Hello @daletman,

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

Regards,
Siyana

@didip1000
Copy link
Contributor

Hey @daletman,

The startDate property from the startDateChange event doesn’t always match the start of the visible grid. It can be set to any date (defaulting to today) and shifts by a day, week, or month depending on the view when using the navigation arrows.

As we can see that it might be misleading, we will work on implementing a feature to show the grid's first visible date more clearly. This improvement is tracked in the backlog item BGSOFUIBALKAN-7274. Thank you for your patience.

Best,
Diana P

@didip1000 didip1000 added enhancement and removed bug labels Dec 3, 2024
@didip1000 didip1000 removed their assignment Dec 3, 2024
@daletman
Copy link
Author

daletman commented Dec 4, 2024

Hi @didip1000,

thank you for the update. Would it be possible to also get the last visible date in the Event?

My use case is, that I have an OData Model and I want to select only the dates that are currently visible by the calendar.

Best,
daletman

@didip1000
Copy link
Contributor

Hey @daletman,

We will be investigating that option as well, but we can’t guarantee this feature will make it in. You can calculate the end date using the start date and the known number of cells in the view (e.g., 42 for a month view).

Best,
Diana

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

No branches or pull requests

3 participants