Support > Repository > Screen function > Calendar view (classic)
ja | en

Displays an arbitrary model on the calendar with the date type item as the axis. It is compatible with Wagby R6.

An example of preparing a "schedule" model with the calendar view function enabled is shown below.In the menu, buttons for transitioning directly to the calendar view are prepared.(Figure 1)

Figure 1 Button for opening the calendar view

Figure 2 shows the screen just after opening the calendar view.By standard, "Monthly" is displayed, but it can be displayed as "day" or "week".

Figure 2 Calendar view

A pencil type icon is prepared in the date column.By clicking on this, you can register the data for that day.(FIGS. 3 and 4)

Figure 3 Click the pencil type icon
Figure 4 Schedule new registration screen opens

After registering the schedule, we will return to the calendar view again.

Figure 5 Schedule registered

Click on the pencil icon prepared for each schedule, the screen for updating the schedule opens.(FIG. 6, FIG. 7)

Figure 6 Click the pencil type icon for update
Figure 7 Schedule update screen opens

I changed the end time here.When you hover over the title, the summary of the schedule is displayed.(Figure 8) You can see that the end time has been changed.

Fig. 8 Displaying the summary of the schedule

Model definition

Figure 9 shows the definition of the schedule model.

Figure 9 Definition of schedule model

Start time and end time are "time".The search item is date and person in charge.(The time portion is not included in the search item.)

Fig. 10 Date and time type details, select time

For the item of person in charge, we use the name of account information (juser) provided by Wagby.

Figure 11 Browse account model

Set details of start time and end time.Both of them allow you to enter in the list box.

Fig. 12 Input the start time and end time in the list box

The personnel item is linked to the logon account.It is read-only so as not to input it.(Fig. 13) In addition, the initial value is "logon ID".(FIG. 14)

Fig. 13 Person in charge sets it to be read only for automatic setting
Figure 14 Person in charge will default to logon account

Setting the calendar view

Open "Screen> View> Calendar View".Check "Create screen" and set the page title.

"Display method" "Classic" I will.

Figure 15 Calendar view settings

Assign item of model to item setting field.There are the following rules.

Setting value Type of corresponding item Description Required
date Date type Based on this date information, display in calendar view. β—‹
title String, integer, model reference It is defined as an item to be displayed in the calendar view. β—‹
Start time Times of Day When displaying in the calendar view, sort by time. -
End time Times of Day - -
Person in charge String, integer, model reference It is defined as an item to be displayed in the calendar view. -
place -
Remarks -

Menu setting

Prepare the "Schedule Calendar View" button in the menu.(Figure 16)

Figure 16 Menu settings

You can display information on multiple models in one calendar.Figure 17 shows an example of displaying two models "event" and "inquiry".The search condition part can be switched by tab.

Figure 17 Displaying Multiple Models in One Calendar

Definition method

Let's prepare the "event" model.Set the date and title in the calendar view.

Figure 18 Event model
Figure 19 Apply calendar view to event model.

I will prepare another "inquiry" model.Here, specify the event model as "Simultaneously display model" in the calendar view of the query model.(The model ID "event" is described.)

Figure 20 Calendar View Definition for Query Model
In the event model, we do not specify a model to display at the same time.In this case, only the user (event model) is displayed in the calendar view of the event model.

Multiple models can also be specified.If more than one is specified, describe the model ID with ", (comma)" delimiter.
Example: model A, model B

You can display "Six Sundays (Lokyu)" such as "Daan".

Figure 21 Example displaying Sixth

Definition method

Activate "Show" Rokuyo "on the screen.

Figure 22 Enable Display on Sixth Day

You can select the calendar moving method from "year/month" "step".

Year/month method (standard)

A list box is provided to select year and month.The screen redraws as soon as you change the choice.

Figure 23 Moving with year and month specified

Step method

After specifying the numerical value of how long you want to go back and forth from now on, press the "Previous" "Next" button.For example, as of November 2014, if you move the step to "2" and press the "Next" button, January 2015 will be displayed.

Move with specified step in Figure 24

Definition method

Select "Calendar transfer method".The standard is the year/month method.

Figure 25 Calendar movement method setting

In calendar view, date items specified as axes are not normally displayed in the search condition part.This is because the function to switch the display by date is interpreted as equivalent to the search.

This date item can be included in the search condition part.By doing this, you will be able to use it, for example, "to narrow down and display data from 1st to 10th in the calendar display of November."

Fig. 26 Display by date

Definition method

Add date item to search condition.

Figure 27 Using date items as search conditions

Activate "Set date item in calendar view as search condition".

Figure 28 Setting Date Items in Calendar View as Search Conditions

The schedule model prepared here can be displayed on the portal screen. For details see "Portal>Calendar portletPlease read.

Included holiday information

Wagby is Japan holiday information "JapanHolidays.ics" provided by mozilla Are bundled. It is described in iCalendar format.

When using another holiday file, please save it as customize/webpage/WEB-INF/JapanHoliday.ics.(The file name is fixed.) After saving, build will be reflected.

Set your own holiday

You can also set your own holiday information such as company's anniversary of founding.I will explain the method.

Holiday management

Wagby has a holiday model jholiday (in the system tab) by default. Open "Master Management> Holidays ..." in the menu.

Figure 29 Holiday Icons Prepared for Master Management

We have prepared settings from the screen or bulk registration function by CSV file on holidays.I will explain registration from the screen here.

Figure 30 Holidays setting icon

From the calendar, select the pencil icon for the day you want to make a holiday.

Figure 31 Selecting days for holidays

Set holiday information.

Figure 32 Registering a new holiday

A holiday will be added.The background does not become red at this stage.(The background is red is standard holiday information prepared at JapanHoliday.ics, so we can distinguish it from our own registered holiday.)

Figure 33 New holiday has been registered
When the holiday information enclosed and the holidays registered by the user overlap, the holiday information registered by the user takes precedence.

Confirm by calendar view

Here is an example of displaying the calendar view of the "query" model.The background is red in the holidays that you registered earlier.

Figure 34 Checking holidays in calendar view
  • Items specified in "Date" in the calendar view are "Mandatory check of search controlCan not be set.
  • Items specified in "Date" in the calendar view are ""Save values ​​in database"You need to specify.
  • Items specified in "Date" in the calendar view are "repetitionCan not be set.
  • Items specified in "Date" in the calendar view are "Repeat containerIt can not be included in.
  • When displaying the calendar view in "in charge/week" format, vertically aligned accounts are arranged in dictionary order.(If the name is written in alphabetical order, it will be alphabetical order, but if the name is displayed in kanji it will be in dictionary order with character code.)

Registered data in classic calendar view,Modern calendar viewYou can convert to.(The reverse does not correspond.)

Specific methods are "Support> import and export function utilization guide (R7)> Import data of classic calendar view into modern calendar viewPlease read.