Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

Calendar Control

  • Last UpdatedJun 10, 2024
  • 2 minute read

AVEVA Work Tasks Calendar control allows you to define and configure multi-level organizational calendars. The Calendar interface enables creation of hierarchical organization and resource calendars. The Calendars are used to determine availability of resources, calculate time slots, and perform other scheduling functions.

To add Calendar control using a panel

  1. Before adding the Calendar control in a panel, create an ASP.NET project in Visual Studio .NET 2012.

  2. Open Calendar.aspx.cs page.

  3. Make sure that you have created the User Context object as per the steps given in Create User Context

  4. In the underlying code, create a new instance of control, and add the instance to the panel in the Page_Load as shown in the following example.

    Skelta.Core.ApplicationObject application = new Skelta.Core.ApplicationObject("ListRepo");//Repository name

    object loggedinUserId = "4952ffff-e0db-401b-bb7d-70a0fec1df07";

    Skelta.Entity.UserContext userContext = new Skelta.Entity.UserContext(loggedinUserId, application, "skeltalist");

    Skelta.HWS.Web.CalendarControl.CalendarControl cc = new Skelta.HWS.Web.CalendarControl.CalendarControl();

    cc.ApplicationName = userContext.Repository.ApplicationName; //Provide Application or Repository name. This is mandatory.

    cc.ID = "Calendar"; // This is mandatory.

    Panel1.Controls.Add(cc);

Properties that can be set for Calendar control

  • ApplicationName: Provide the name of the application in which you want to use the calendar.

  • CalendarName: Set the name of the calendar.

  • UserIdString: Calendar can be created for a specific actor by providing UserIdString of that actor. Click Create User Context to view the different UserIdString formats.

  • Can Add calendar: If CanAddCalendar property is set to false, the "Add New Calendar" button will not be displayed and you will not have the rights to add calendar. If the Can Add Calendar property is set to true then the user can also Add/Delete Calendar Workslot.

  • Can Add calendar workslot

  • Can Delete calendar workslot

  • Can Delete calendar: If CanDeleteCalendar property is set to false, the "Delete" button will not be displayed and you will not get rights to delete calendar.

  • Can List calendar: If CanListCalendar property is set to false, the "List" button will not be displayed and you cannot get the list of calendars.

  • Can View calendar: If the CanViewCalendar property is set to false, the "View" button will not be displayed and you will not have rights to view the inherited calendar.

  • SecurityUserIdString

Properties that are not used in Calendar control

  • CanAddCalendarWorkSlot

  • CanDeleteCalendarWorkSlot

 

In This Topic
TitleResults for “How to create a CRG?”Also Available in