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

AVEVA™ Work Tasks

List Control

  • Last UpdatedJun 10, 2024
  • 2 minute read

List Controls lists out the Workflows, Navigation Details, Users, Event Providers and Event Associations.

To add List control using a panel:

  1. Before adding the Process Designer control in a panel, Create an ASP.NET Project in Visual Studio .NET.

  2. Go to List.aspx.cs page.

  3. Make sure that you have initialized 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("Telematics Repository");//Repository name

    object loggedinUserId = "81734457-B3DB-4BC9-894A-C3149828C65C";

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

    Skelta.Repository.Web.ListControl listControl = new Skelta.Repository.Web.ListControl();

    listControl.RepositoryName = userContext.Repository.ApplicationName;

    listControl.ListName = "Users";

    listControl.ID = "listControl1";

    listControl.LoggedInUserId = userContext.LoggedInUserId;

    listControl.FilterColumn = "";

    listControl.FilterValue = "";

    listControl.Height = Unit.Percentage(100);

    Panel1.Controls.Add(listControl);

     

Different Properties that can be set for List Control:

  • Repository Name: Provide the repository name created by the user.

  • Filter Column: Provide column name for which user needs to apply filter. Example: Filter column = Title

  • Filter Value: Provide the value for filtering. Example: If Filter value=test then "test" is searched based on "List Name" provided. Suppose, if the List Name is 'Workflow' then the workflow with name 'test' will be searched.

  • Filter Query: Use the FilterQuery property if you want to filter with more than one condition.

    Sample code:

    Skelta.Entity.UserContext userContext = new Skelta.Entity.UserContext();

    Skelta.Repository.Web.ListControl listControl = new Skelta.Repository.Web.ListControl ();

    listControl.RepositoryName = userContext.Repository.ApplicationName;

    listControl.ListName = "Workflow";

    listControl.ID = "listControl1";

    listControl.LoggedInUserId = userContext.LoggedInUserId;

    ListControl1.FilterColumns = "ItemType";

    ListControl1.FilterQuery = "ItemType = 2 or ItemType = 3";

    Panel1.Controls.Add(listControl);

    In this example, the ItemType refers to the filter query conditions to be specified in order to categorize the list of workflows.

  • List Name: Provide the List Name.

    • Example1: If List Name= Workflow, then the workflows are displayed depending on List Id or List Item.

    • Example 2: If List Name= NavigationDetails, then information regarding the navigation of control is displayed.

    • Example 3: If List Name=Users, then all the "list provider" users are displayed.

    • Example 4: If List Name= Event Providers, then different providers for association are displayed.

    • Example 5 :If List Name = Event Associations, then all the workflows for which association is created is displayed.

  • LoggedInUserId: Provide the user ID of the user. Click here to view the different UserIdString formats.

 

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