Top
Systemwalker Runbook Automation Reference Guide
Systemwalker

4.2.3 Calendar Widgets

Calendar widgets are widgets for displaying calendars. You can display a calendar directly in the form or display a pop-up calendar.

This section explains how to use calendar widgets.

4.2.3.1 Calendar

Calendar is the widget for displaying a calendar. Users can select a date in the displayed calendar.

Sample Display

Format

<div rcf:type="IBPMCalendar" ... ></div>

Point

Properties

The meaning of the column headers is explained in Properties topic of the section 4.2.1.1 Text.

Name

Data Type

Description

Required

Default Value

year

Number

Specifies the year to display in the calendar (1 or more).

No

Current year of the system date

month

Number

Specifies the month to display in the calendar (0-11).

No

Current month of system date

firstDayOfWeek

Number

Specifies the first day of the week to display in the first day column.

The range of values is from 0 (Sunday) to 6 (Saturday).

No

0 (Sunday)

selectedDates

-

Cannot be specified in Systemwalker Runbook Automation Studio.
You can specify a UDA in the id property to specify the selected date. And the value selected in the calendar is saved to the UDA value.
Refer to 4.2.4 Common Properties for Screen Widgets for information on how to specify a UDA.

-

-

daysOfWeek

String array

Specifies the days of the week listed across the top of the Calendar (from Sunday to Saturday). You can specify a sequence of seven day-of-the-week character strings separated by semi-colon starting from Sunday.
If you specify more or less than seven day-of-the-week character strings, an error occurs.
For example: "S;M;T;W;T;F;S"

No

["Su.", "Mo.", "Tu.", "We.", "Th.","Fr.","Sa."]

holidays

-

Cannot be specified in Systemwalker Runbook Automation Studio.

-

-

specialDates

-

Cannot be specified in Systemwalker Runbook Automation Studio.

-

-

dateToolTips

-

Cannot be specified in Systemwalker Runbook Automation Studio.

-

-

naviType

String

Specifies how to display the navigator.

  • ALL: Displays Previous Month button, Next Month button and title.

  • TITLE: Displays title only.

  • NONE: Does not display the navigator.

No

ALL

naviButtonRenderer

-

Cannot be specified in Systemwalker Runbook Automation Studio.

-

-

naviTitleLabelProvider

-

Cannot be specified in Systemwalker Runbook Automation Studio.

-

-

dayOfWeekCellRenderer

-

Cannot be specified in Systemwalker Runbook Automation Studio.

-

-

dateCellRenderer

-

Cannot be specified in Systemwalker Runbook Automation Studio.

-

-

tabIndex

Number

Specifies the tab order when moving the focus with the Tab key.
You can specify it in the same way as the tabindex attribute in HTML. The focus moves in ascending order if you specify integers greater than zero.

No

0

selectable

Boolean

Specifies whether or not the date can be selected.

  • true: Selectable

  • false: Not selectable

No

true

selectMode

-

Cannot be specified in Systemwalker Runbook Automation Studio. Users can only select one date.

-

-

utc

-

Cannot be specified in Systemwalker Runbook Automation Studio.

-

-

You can also specify common properties for widgets. Refer to 4.2.4 Common Properties for Screen Widgets for details.

Point

When you want to change the character string displayed as a day of the week, specify the character string in the daysOfWeek property.
Example: When you want to change the day of the week to Sun;Mon;Tues;Wed;Thurs;Fri;Sat, describe the following.

<div rcf:type="IBPMCalendar" rcf:daysOfWeek=Sun;Mon;Tues;Wed;Thurs;Fri;Sat ></div>
Mouse operations

Operation

Process

Clicking on Previous Month button

Displays the previous month.

Clicking on Next Month button

Displays the next month.

Clicking on a date

Toggles the selection status of the clicked date.

Double-clicking on a date

Selects the clicked date.

Hovering over a date

The date over which the mouse is hovering gets the focus.

Keyboard operations

Operation

Process

Space

Toggles the selection status of the focused date.

Left cursor

-

Shifts the focus to the previous day (within the displayed range).

+ SHIFT

Displays the previous month.

Right cursor

-

Shifts the focus to the next day (within the displayed range).

+ SHIFT

Displays the next month.

Up cursor

Shifts the focus back one week (within the displayed range).

Down cursor

Shifts the focus forward one week (within the displayed range).

Home

Shifts the focus to the first day of the displayed month.

End

Shifts the focus to the last day of the displayed month.

PageUp

Displays the previous month.

PageDown

Displays the next month.

Style Properties

Part Name

Prefix

Class Name

Available Styles

Whole widget (external frame)

None

rcf-IBPMCalendar

  • Size

  • Border

Cell (common to all)

cell

rcf-IBPMCalendar-cell

  • Size

  • Color

  • Font

  • Border

  • Cell

Navigation title

naviTitle

rcf-IBPMCalendar-naviTitle

  • Size (except width)

  • Color

  • Font

  • Border

  • Cell

Navigation button

naviButton

rcf-IBPMCalendar-naviButton

  • Size (except width)

  • Color

  • Font

  • Border

  • Cell

Day of the week header (common)

dayOfWeek

rcf-IBPMCalendar-dayOfWeek

  • Size (except width)

  • Color

  • Font

  • Border

  • Cell

Day of the week header (individual)

dayOfWeek0
-
dayOfWeek6

rcf-IBPMCalendar-dayOfWeek0
-

rcf-IBPMCalendar-dayOfWeek6

  • Color

  • Font

  • Border

  • Cell

Date (common within the current month)

date

rcf-IBPMCalendar-date

  • Color

  • Font

  • Border

  • Cell

Date (per day of the week within the current month)

date0
-
date6

rcf-IBPMCalendar-date0
-
rcf-IBPMCalendar-date6

  • Color

  • Font

  • Border

  • Cell

Date (common except within the current month)

otherMonth

rcf-IBPMCalendar-otherMonth

  • Color

  • Font

  • Border

  • Cell

Date (per day of the week except within the current month)

otherMonth0
-
otherMonth6

rcf-IBPMCalendar-otherMonth0
-
rcf-IBPMCalendar-otherMonth6

  • Color

  • Font

  • Border

  • Cell

Focused date

focus

rcf-IBPMCalendar-focus

  • Color

  • Font

  • Border

  • Cell

Selected date

selected

rcf-IBPMCalendar-selected

  • Color

  • Font

  • Border

  • Cell

Holiday

holiday

rcf-IBPMCalendar-holiday

  • Color

  • Font

  • Border

  • Cell

Special day

special0
-
special9

rcf-IBPMCalendar-special0
-
rcf-IBPMCalendar-special9

  • Color

  • Font

  • Border

  • Cell

Refer to 4.2.5 Style Properties for details.

Note

  • The calendar is a table with TD elements for each day.

  • You can also specify custom styles for days of the week in Date (within the current month), Date (except within the current month) and Day of the week header.
    In such a case, add a numerical value denoting the day of the week after the prefix and class name.
    (For example: Sunday0...Saturday6)

  • The default order of priority for date cell styles is as follows:

    1. selected

    2. focus

    3. special0..9

    4. holiday

    5. date0..6 / otherMonth0..6

    6. date / otherMonth

    7. cell

  • Apart from whole widget (external frame), you can only set styles using CSS. When setting styles in CSS, specify the styles in reverse order of priority.

  • Styles set in CSS take precedence over default styles. If you only define styles of low priority (such as cell or date) in CSS, default styles of higher priority (such as selected or focus) may be ignored. To avoid this, define all required styles in the correct order of priority.

4.2.3.2 PopupCalendar

PopupCalendar is the widget for displaying a pop-up calendar. PopupCalendar is used with CalendarButton to create a pop-up window in which users can select a date.

Sample Display

Format

<span rcf:id="uda_var1" rcf:type="IBPMDateInput" ...></span>
<div rcf:id="IBPMPopupCalendar_1" rcf:type="IBPMPopupCalendar" rcf:targetDateInputId="uda_var1" ...></div>
<span rcf:id="CalendarButton_1" rcf:type="CalendarButton" rcf:target="IBPMPopupCalendar_1" ...></span>

Properties

The meaning of the column headers is explained in Properties topic of the section 4.2.1.1 Text.

Name

Data Type

Description

Required

Default Value

selectedDate

-

Cannot be specified in Systemwalker Runbook Automation Studio.
You can specify a UDA in the id property to specify the selected date. And the value selected in the calendar is saved to the UDA value.
Refer to 4.2.4 Common Properties for Screen Widgets for information on how to specify a UDA.

-

-

labelOK

String

Specifies the label text on the OK button. If you specify an empty string (""), the button is not displayed. (*)

No

"OK"

labelCancel

String

Specifies the label text on the cancel button. If you specify an empty string (""), the button is not displayed. (*)

No

"Cancel"

targetDateInputId

String

Specifies the ID of the DateInput to display the date selected in the calendar.

No

""

(*)If you specify an empty string for both labelOK and labelCancel, the footer part (where the OK button and cancel button are displayed) is not displayed.

You can also specify common properties for widgets. Refer to 4.2.4 Common Properties for Screen Widgets for details.

Note

You can not specify the following properties of Calendar:

-firstDayOfWeek

-daysOfWeek

Point

When you want to change the character string displayed in the button of the footer, specify it in the labelOK property or in the labelCancel property.
Example: When you want to change the character string of the cancel button to "CANCEL", write the following description.

<div rcf:id="IBPMPopupCalendar_1" rcf:type="IBPMPopupCalendar" rcf:targetDateInputId="uda_var1" rcf:labelCancel="CANCEL"></div>

Style Properties

Style properties of this widget are shown below.

Part Name

Prefix

Class Name

Available Styles

OK/Cancel button

button

rcf-PopupCalendar-button

  • Color

  • Font (except lineHeight)

You can also specify Calendar style properties. Refer to Style Properties in 4.2.3.1 Calendar for details.
However, note that the prefix and class name of the style property for the whole widget (external frame) is as follows:

Refer to 4.2.5 Style Properties for details.

Additional Notes

4.2.3.3 CalendarButton

CalendarButton is the widget to display a pop-up calendar. CalendarButton is used with PopupCalendar.

PopupCalendar is displayed when CalendarButton is clicked or when the Enter key or space key is pressed with focused CalendarButton.

Sample Display

Format

<div rcf:type="CalendarButton" rcf:target="popupCalendar1" ... ></div>

Or

<span rcf:type="CalendarButton" rcf:target="popupCalendar1" ... ></span>

Point

This widget is displayed as follows:

  • Using with <div> tag, line feed is inserted before and after the widget.

  • Using with <span> tag, line feed is not inserted before and after the widget.

Properties

The meaning of the column headers is explained in Properties topic of the section 4.2.1.1 Text.

Name

Data Type

Description

Required

Default Value

alt

String

Specifies alternative text for the image.

No

CalendarButton

enabled

Boolean

Specifies whether or not the button is active (enabled).

  • true: Active

  • false: Inactive

No

true

target

String

Specifies the ID of the displayed PopupCalendar.

Yes

-

tabIndex

Number

Specifies the tab order when moving the focus with the Tab key.
You can specify it in the same way as the tabindex attribute in HTML. The focus moves in ascending order if you specify integers greater than zero.

No

0

You can also specify common properties for widgets. Refer to 4.2.4 Common Properties for Screen Widgets for details.

Example

A sample display and corresponding specification of PopupCalendar, DateInput and Text (for displaying an error message) are as follows:

 ...
<span rcf:id="uda_var1" rcf:type="IBPMDateInput" ...></span>
<div rcf:id="IBPMPopupCalendar_1" rcf:type="IBPMPopupCalendar" rcf:targetDateInputId="uda_var1" ...></div>
<span rcf:id="CalendarButton_1" rcf:type="CalendarButton" rcf:target="IBPMPopupCalendar_1" ...></span>
...

The input order is as follows:

  1. Click CalendarButton.
    PopupCalendar is displayed.

  2. Select a date in PopupCalendar.
    The date is input in DateInput through the UDA var1.

Style Properties

Part Name

Prefix

Class Name

Available Styles

Whole widget

None

rcf-CalendarButton

  • Border

  • verticalAlign

Details of the verticalAlign style are as follows:

Name

Data Type

Description

Default Value

verticalAlign

String

Specifies the vertical alignment of the button.
You can specify the CSS vertical-align property value.

baseline

Refer to 4.2.5 Style Properties for details.