Categories
SAP Blogs

Planning Calendar in SAP UI5

Planning Calendar in SAP UI5

Hi All,

In this blog post, I am going to explain a business scenario that I had gone through and how I gave a solution to it.

Business Scenario:

Develop a web application that shows a calendar showing which agent is assigned to jobs on which days at which location.

Solution:

I have designed and developed SAP UI5 Responsive Web Application using sap.m.planningcalendar which displays rows with appointments for different entities (such as persons or teams) for the selected time interval.

About Planning Calendar:

Planning Calendar containing multiple rows with appointments, where each row represents a different person.

We can configure different time-interval views that make us switch between, such as hours or days, and even a whole week/month. The available navigation allows us to select a specific interval using a picker, or move to the previous/next interval using arrows.

The PlanningCalendar uses parts of the sap.ui.unified library.

Logon to the Business Application Studio and follow the below steps.

Step 1:

Create a Sample Application named “Planning Calendar”.

Step 2:

Open the View1.view.xml file and add the below libraries.

xmlns:core=”sap.ui.core”

xmlns:unified=”sap.ui.unified”

Step3:

Open the View1.controller.js file and add the code.

Step4:

Run the Application. The Output screen would be like below. By default Hours view will be selected.

We can navigate to different Views by selecting options available in the dropdown

Step5:

Sometimes in Month view, we can’t able to see the clear information (Location) of the appointment. For that, we are adding a message box to pops up while clicking on the selected appointment.

Reload the application and click on any of the appointments to show detailed info.

Conclusion: By the following, we have successfully visualized the Agent details clearly in different Views.

I hope it helps.

Thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *

×
Placement Report
Planning Calendar in SAP UI5

Planning Calendar in SAP UI5
×
Interview Questions
Planning Calendar in SAP UI5

Planning Calendar in SAP UI5
×
Learn More
Planning Calendar in SAP UI5

Planning Calendar in SAP UI5
×
Sign Up Now
Planning Calendar in SAP UI5

Planning Calendar in SAP UI5
×
Join Us
Planning Calendar in SAP UI5

Planning Calendar in SAP UI5
×
Get started
Planning Calendar in SAP UI5

Planning Calendar in SAP UI5
×
Buy Now
Planning Calendar in SAP UI5

Planning Calendar in SAP UI5
×
Download Course Content
Planning Calendar in SAP UI5

Planning Calendar in SAP UI5
×
Call Back
Planning Calendar in SAP UI5

Planning Calendar in SAP UI5
×
Ask for Demo
Planning Calendar in SAP UI5

Planning Calendar in SAP UI5
×
Enquiry
Planning Calendar in SAP UI5

Planning Calendar in SAP UI5
×
Please fill form to see Video
Planning Calendar in SAP UI5

Planning Calendar in SAP UI5
×
Schedule Your Demo
Planning Calendar in SAP UI5

Planning Calendar in SAP UI5
×
Apply for scholarship