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

AVEVA™ Work Tasks

Define Global Layouts

  • Last UpdatedJun 25, 2024
  • 1 minute read

AVEVA Work Tasks enables Work items list layouts to be defined for the entire application. If the property GlobalLayout is set to true, the Work item list layout can be defined at the global level.

To add a Work items list layout using a panel:

  1. Drag and drop a panel.

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

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

    object loggedinUserId = "2d52b2c0-4cf8-4af6-acad-a0c9908eeab5";

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

    Skelta.HWS.WorkListChannel.Web.WorkItemListControl.WorkItemControl WIL = new Skelta.HWS.WorkListChannel.Web.WorkItemListControl.WorkItemControl();

    WIL.ApplicationName = uContext.Repository.ApplicationName;

    WIL.UserIdString = uContext.LoggedInUserId;

    WIL.ID = "WorkItemListControl";

    WIL.DisplayGroupUI = true;

    WIL.Height = Unit.Percentage(100);

    WIL.ReadingPaneInPopupWindow = true;

    Panel1.Controls.Add(WIL);//add control to the panel

    To load all the AVEVA Work Tasks controls separately on aspx page, set the user context first.For example:

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

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

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

    object loggedinUserId = "2d52b2c0-4cf8-4af6-acad-a0c9908eeab5";

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

    Skelta.HWS.WorkListChannel.Web.WorkItemListControl.WorkItemControl WIL = new Skelta.HWS.WorkListChannel.Web.WorkItemListControl.WorkItemControl();

    WIL.ApplicationName = uContext.Repository.ApplicationName;

    WIL.UserIdString = uContext.LoggedInUserId;

    WIL.ID = "WorkItemListControl";

    WIL.DisplayGroupUI = true;

    WIL.Height = Unit.Percentage(100);

    WIL.ReadingPaneInPopupWindow = true;

    Panel1.Controls.Add(WIL);//add control to the panel

    Note: The default view of the Work items list in the Enterprise Console can be customized. For more information about using Controls as a part of a project, see Using Controls in Applications in the Developing Business Processes section.

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