Add Controls in the Application
- Last UpdatedJun 12, 2024
- 1 minute read
AVEVA Work Tasks provides out-of-box server controls. You can configure the properties of AVEVA Work Tasks server controls to suit diverse applications.
The controls should be added using a panel.
To add Controls using a Panel
-
Drag and drop a panel.
-
In the underlying code, create a new instance of control and add the instance to the panel as in the example below:
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:
- To load all the controls separately on aspx page, set the user context first. For
example: Skelta.Entity.UserContext uContext = new Skelta.Entity.UserContext(loggedinUserId,
application, "skeltalist").
- When utilizing these controls embedded in a custom application, a separate Client
Connection License is used upon accessing the custom application.
Server Controls
AVEVA Work Tasks provides the following server controls out of box: