Our pure JavaScript Scheduler component


Post by thierry mear »

Hi,

We must install our platform with your "scheduler pro" tool this month, with an interface in French.
You told me that the French version would be available Q2 but we are in a hurry. So we have translated the terms present in the file "schedulerpro.localeFR.js" from the UK version, but we have javascript errors that we cannot fix.

If i send you the file can you help us?

Best regard


Post by alex.l »

Hi thierry mear,

Yes, we can help you with that, but better to send a runnable application, not just a file, since if there are JS errors, the cause may be as well in the app itself.

All the best,
Alex


Post by thierry mear »

Hello Alex,

We fixed the problem know we have a French version.

But i have another question : we have a list of national Day of, Day where our customer close his company, Holydays, weekend (sathurday and sunday).
and i don't want any user to be able to create events on those days. I did not find the answer in the forum and in the documentation.

Can you help us ?

Thanks fot you answer

Best Regard


Post by tasnim »

Hi,
To reach that, you need to set up a calendar that will provide information about all desired non-working periods.
Please check this: https://www.bryntum.com/docs/scheduler-pro/guide/SchedulerPro/basics/calendars

And here is an example of how you can achieve it:

calendarsData : [
            // Calendar definition
            {
                id        : 'weekends',
                name      : 'Weekends',
                // Intervals to define all SA and SU as non-working days
                intervals : [
                    {
                        recurrentStartDate : 'on Sat at 0:00',
                        recurrentEndDate   : 'on Mon at 0:00',
                        isWorking          : false
                    }
                ]
            }
        ]

Best regards,
Tasnim


Post by thierry mear »

Hi,
We have problems with dayoff in the scheduler pro tool.
The days are not showed in the scheduler, can you help us?

You can see the json file that we use to built if at this address: https://91.235.138.107/Scheduler_pro.txt

Thanks for the help

Best Regard


Post by tasnim »


Post by thierry mear »

We dont have interval date but a liste of "day of" (french national day off)
In this case do you have an example?
Regards


Post by alex.l »

Hi thierry mear,

In any case you have to add days off as non working intervals with startDate and endDate.
For national holidays you can use startDate equals to holidayDate, and for endDate = holidayDate + 1 day.

        calendarsData : [
            // Calendar definition
            {
                id        : 'birthday',
                name      : 'Company\'s burthday',
                intervals : [
                    {
                        startDate       : '2022-02-02T00:00:00',
                        endDate         : '2022-02-03T00:00:00',
                        isWorking          : false
                    }
                ]
            }
        ]

All the best,
Alex


Post by thierry mear »

Hi

We formatted the json file as you told us, but it doesn't work.
I can make you a demo, here is the json file used : https://91.235.138.107/calendar.json

Thanks for the answer

Best regards


Post by marcio »

Hey Thierry,

There is a wrong propety "Days" on that JSON.

If you check the documentation here https://www.bryntum.com/docs/scheduler-pro/guide/SchedulerPro/basics/calendars#defining-project-calendar

You'll be able to check that you need to return a JSON without that "Days" property, like this

"calendars": {
            // Calendar definition
            "rows": [
              {
                "Id": "7",
                "Name": "14 juillet",
                "Intervals": [
                  {
                    "startDate": "2022-07-14T00:00:00",
                    "endDate": "2022-07-15T00:00:00",
                    "isWorking": false
                  }
                ]
              },
              {
                "Id": "8",
                "Name": "Assomption",
                "Intervals": [
                  {
                    "startDate": "2022-08-15T00:00:00",
                    "endDate": "2022-08-16T00:00:00",
                    "isWorking": false
                  }
                ]
              },
              {
                "Id": "68",
                "Name": "Fermeture ONISEP",
                "Intervals": [
                  {
                    "startDate": "2022-07-15T00:00:00",
                    "endDate": "2022-07-16T00:00:00",
                    "isWorking": false
                  }
                ]
              },
              {
                "Id": "69",
                "Name": "Fermeture ONISEP",
                "Intervals": [
                  {
                    "startDate": "2022-08-01T00:00:00",
                    "endDate": "2022-08-02T00:00:00",
                    "isWorking": false
                  }
                ]
              },
              {
                "Id": "70",
                "Name": "Fermeture ONISEP",
                "Intervals": [
                  {
                    "startDate": "2022-08-02T00:00:00",
                    "endDate": "2022-08-03T00:00:00",
                    "isWorking": false
                  }
                ]
              },
              {
                "Id": "71",
                "Name": "Fermeture ONISEP",
                "Intervals": [
                  {
                    "startDate": "2022-08-03T00:00:00",
                    "endDate": "2022-08-04T00:00:00",
                    "isWorking": false
                  }
                ]
              },
              {
                "Id": "72",
                "Name": "Fermeture ONISEP",
                "Intervals": [
                  {
                    "startDate": "2022-08-04T00:00:00",
                    "endDate": "2022-08-05T00:00:00",
                    "isWorking": false
                  }
                ]
              },
              {
                "Id": "73",
                "Name": "Fermeture ONISEP",
                "Intervals": [
                  {
                    "startDate": "2022-08-05T00:00:00",
                    "endDate": "2022-08-06T00:00:00",
                    "isWorking": false
                  }
                ]
              },
              {
                "Id": "74",
                "Name": "Fermeture ONISEP",
                "Intervals": [
                  {
                    "startDate": "2022-08-06T00:00:00",
                    "endDate": "2022-08-07T00:00:00",
                    "isWorking": false
                  }
                ]
              },
              {
                "Id": "75",
                "Name": "Fermeture ONISEP",
                "Intervals": [
                  {
                    "startDate": "2022-08-07T00:00:00",
                    "endDate": "2022-08-08T00:00:00",
                    "isWorking": false
                  }
                ]
              },
              {
                "Id": "76",
                "Name": "Fermeture ONISEP",
                "Intervals": [
                  {
                    "startDate": "2022-08-08T00:00:00",
                    "endDate": "2022-08-09T00:00:00",
                    "isWorking": false
                  }
                ]
              },
              {
                "Id": "77",
                "Name": "Fermeture ONISEP",
                "Intervals": [
                  {
                    "startDate": "2022-08-09T00:00:00",
                    "endDate": "2022-08-10T00:00:00",
                    "isWorking": false
                  }
                ]
              },
              {
                "Id": "78",
                "Name": "Fermeture ONISEP",
                "Intervals": [
                  {
                    "startDate": "2022-08-10T00:00:00",
                    "endDate": "2022-08-11T00:00:00",
                    "isWorking": false
                  }
                ]
              },
              {
                "Id": "79",
                "Name": "Fermeture ONISEP",
                "Intervals": [
                  {
                    "startDate": "2022-08-11T00:00:00",
                    "endDate": "2022-08-12T00:00:00",
                    "isWorking": false
                  }
                ]
              },
              {
                "Id": "80",
                "Name": "Fermeture ONISEP",
                "Intervals": [
                  {
                    "startDate": "2022-08-12T00:00:00",
                    "endDate": "2022-08-13T00:00:00",
                    "isWorking": false
                  }
                ]
              },
              {
                "Id": "81",
                "Name": "Fermeture ONISEP",
                "Intervals": [
                  {
                    "startDate": "2022-08-13T00:00:00",
                    "endDate": "2022-08-14T00:00:00",
                    "isWorking": false
                  }
                ]
              },
              {
                "Id": "82",
                "Name": "Fermeture ONISEP",
                "Intervals": [
                  {
                    "startDate": "2022-08-14T00:00:00",
                    "endDate": "2022-08-15T00:00:00",
                    "isWorking": false
                  }
                ]
              }
        ]
    }

Please let me know if that worked as you expected.

Best regards,
Márcio


Post Reply