Feedback Print

Calendar Configuration

Update applications already created to support Google Calendar

To update the structure and configuration of the application access our article: Adding new columns in the table for Calendar

Fixing SSL certificate error

To correct the error cURL error 60: SSL certificate problem: unable to get local issuer certificate access our article: Calendar displays in execution: cURL error 60

Settings

All the options that can be configured will be reflected in the Calendar Application.

Calendar Configuration Calendar setup screen

  • Margins : Allows you to arrange the display of the application in the page, according to the values entered in the margins. These values must be informed in pixels.
  • Form Iframe Width : Allows you to set the form width that will open in the calendar application. These values must be informed in pixels.
  • Form Iframe Height : Allows you to set the form height that will open in the calendar application. These values must be informed in pixels.
  • Time Format : Allows you to choose which time format you want. You can choose between “13:00” (24 hours) or “1:00 pm” (12 AM / PM).
  • Start Mode : Allows you to choose how the calendar will start. The list of events can start in month, day, week, or calendar.
  • Disable Drag & Drop : Allows you to disable the option to drag events to other days or months.
  • Disable option ‘all day’ : Allows you to disable the ‘All Day’ option when registering an event. This option is available in the calendar form.
  • Minimum Time Limit : Allows you to limit the minimum time displayed in the Week and Day tabs.
  • Maximum Time Limit : Allows you to limit the maximum time displayed in the Week and Day tabs.
  • Mini calendar and category position : Allows you to position the mini calendar and category in the generated application. This positioning can only be done together to the left or right side.
  • Display mini calendar : Allows the display of a mini calendar to navigate independently from the main calendar.
  • Full day - hide time : Allows you to hide the time fields when the “whole day” is selected in the generated application.
  • Recurrence - hide fields : Allows you to hide period fields and recurrence information in the generated application.
  • Time interval : Allows you to enter the time interval you want to display on the calendar in week or day mode.

Calendar Fields

This interface displays the fields relationship that will be used in the application.

You need to relate the table fields to the form application fields.

Calendar Fields Configuration Calendar Fields Configuration Screen

Google API

The Google Calendar API will allow you to synchronize your Google calendar with the application developed in Scriptcase.

First you must activate the Google Calendar API by clicking on https://console.developers.google.com/apis/api/calendar-json.googleapis.com/overview.

After activation you need to configure the “OAuth consent screen” by clicking on https://console.developers.google.com/apis/credentials/consent.

OAuth Consent Screen Configuration OAuth consent screen

  • E-mail Address : Select the email that will be used as the source for the google calendar. The application will use this data for synchronization.
  • Product name shown to users : Allows you to enter the consent name that will be displayed to the clients. Make sure the name accurately describes your product and be careful not to use names that suggest that the product is from Google or another company.
  • Home URL : Allows you to enter a URL to homepage. (optional)
  • Product Logo URL : Lets you enter a URL that contains an image that will serve as the product logo. (optional)
  • Privacy Policy URL : Lets you enter the URL of the product privacy policy. (optional)
  • Terms of Service URL : Lets you inform the URL of the terms of service of the product. (optional)

Note: You only need to inform the e-mail address and the product name. All other items are optional.

Now you need to create aCredential> OAuth client ID

Select the “Web Application” option and follow the setup below.

Customer ID configuration OAuth OAuth Client ID Configuration Screen

  • Name: Enter a name for the OAuth client ID.
  • Authorized JavaScripts Origins : Insert the root URL of your system. For example: http://yourdomain.com or http://localhost
  • Authorized redirect URLs : Enter the full URL until your calendar application.

After entering the above data, click “Save.”



Now let’s configure the Scriptcase application.

Google Calendar API Settings Google Calendar API Settings Screen

  • Integrate with Google Calendar: Synchronize with Google calendar events, allowing you to import or export events.
  • OAuth Client Json : Json from Google OAuth with the credential to access the project. To get this content, open the OAuth Client ID of the previously configured OAuth__ client and download the JSON.
  • Login on Google OAuth : Choose if you want to store the login made in the application to not ask again or if you will request session authentication.
  • Integrate form : Enables the form to insert, delete or update events in Google Calendar.
  • Insert : When inserting an event in the form, it also inserts in google calendar.
  • Update: When updating an event on the form, it also updates in google calendar.  * Delete: When deleting an event in the form, it also excludes in the google calendar.