Skip to Content

Calendar panels in Jitterbit App Builder

Overview

Calendar panels populate a calendar with information from a data source, using three required control types: Description, Event Start, and Event End. The Description control designates what appears on the calendar, typically an event's name. Event Start and Event End designate the day each event starts and ends on, optionally including timestamps shown alongside the event description. Like Chart panels, Calendar panels can be linked to another panel to display greater detail about an event on the calendar. See Panels for the complete list of Calendar panel control types.

By default, a Calendar panel displays based on the data in its business rule, honoring whatever sort the rule applies; review your business rule to verify its sort. If the business rule has no data yet, the calendar shows the current month, day, or year instead. Once you add data, you'll likely want to add a sort to the business rule too — see Display the current month by default below.

For example, the following screenshot shows a Calendar panel:

ordercalendar.png

This page also covers the following tasks:

Display the current month by default

To make sure the panel returns the current month, day, or year, add a column called Sort with logical type numeric, and apply an ascending sort on that column. For example, if your business object supporting the calendar panel has a column called StartDate that you'd like to use, and it's a SQL data source, you can use a SQL escape function:

${ABS(DateDiff(day, getdate(), StartDate))}

or an App Builder IIF statement:

IIF(DateDiff(dd, Now(), StartDate) < 0, (DateDiff(dd, Now(), StartDate))*-1, DateDiff(dd, Now(), StartDate))

Note

The SQL escape method is more efficient, but IIF doesn't rely on SQL syntax. Both produce identical output.

To view other months, click the forward and backward chevron buttons in the panel's upper left-hand corner. To toggle between Day, Week, and Monthly views, click the corresponding buttons in the panel's upper right-hand corner. Calendar panels can't be edited directly; however, a separate panel that displays the event's controls can be.

Change the date and time of an event

To change the date and time of an event:

  1. Select the event.
  2. In the panel that displays the event's information, click the Pencil icon.
  3. Adjust the date and time as necessary, then click the Checkmark icon to save.

Add a new event to the calendar

To add a new event to the calendar:

  1. Select any pre-existing event and click the Create button.
  2. Enter a title for the event, then select a date from the calendar drop-down menu.
  3. For controls with time and date enabled, click the Time icon to bring up a clock.
  4. Click the Checkmark icon to save.
  5. After making any revisions to the calendar, refresh the page to confirm the update.

Create a calendar using the Northwinds database

This example adds a new Calendar panel to visually represent the dates that orders get logged into the Northwinds sample database.

  1. Create a business object to use with the calendar panel:

    1. Create a new business rule.
    2. Give the rule a Name. For example: Order (Calendar).
    3. Set the Purpose field to Calendar.
    4. Target the Order table.
    5. Click Save.
    6. From the Order table, select the OrderID and OrderDate columns.
    7. Click the Where tab. Add the OrderDate column to the Left field, choose IS NOT NULL as the Operator, and leave the Right field blank.
    8. If desired, add a column that supports sorting to the Columns tab. For example: DatePart(mm, O.OrderDate).
  2. Create the calendar:

    1. Go to App Workbench > Pages.
    2. Name the page Order Calendar and click Create.
    3. Select the single column layout, then click + Add Panel.
    4. Select Calendar.
    5. Locate the business rule you created above and click Select.
    6. Click Customize Page.
    7. Enter Order Calendar for the Name, select Calendar Panel as the Type, and select Monthly as the Sub Type.
    8. Add two controls with the following settings:

      Column Name Usage Type
      Control #1: OrderID Order Description
      Control #2: OrderDate Order Date Event Start
    9. Navigate to the app view and confirm you now see the calendar.

To configure a calendar's events to link to another page:

  1. From the calendar page in your app, select Action Drawer > Live Designer.
  2. Click the Controls button on the Calendar panel.
  3. Click the Open Record icon for the control to link from.
  4. From the Update and Linking, set Link To Page to Orders.
  5. Verify that it is bound by OrderID in the Criteria.
  6. Navigate to the application view and confirm the update.

See Configure how linked pages open for how Link Target and Replace Page In History affect the linked page's behavior.

Enable 24-hour time format

Since App Builder 4.60, calendar panels support a 24-hour time format. By default, event times are displayed in 12-hour format. To switch to 24-hour format:

  1. Navigate to the calendar page in your app and select Action Drawer > Live Designer.
  2. Click the Controls button on the calendar panel.
  3. Click the Edge Case tab.
  4. Under the General section, enable the Use 24-Hour Clock setting.
  5. Navigate to the application view and confirm the update.

Use the color control to change the color of events

To use the color control to change the color of events:

  1. Add a new column to the calendar's business rule. For example, enter '#000343' in the Column or Expression field, and enter Color in the Alias field.
  2. Navigate to the calendar page of your app and select Action Drawer > Live Designer.
  3. Add a new control:

    • Select Color for the Column.
    • Name the control Color.
    • Select Color for the Control Type.
  4. Navigate to the application view and confirm the update.