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

AVEVA™ Work Tasks

Custom Control with Standard Properties

  • Last UpdatedMar 12, 2021
  • 1 minute read

You can create a custom control with a standard property.

The Data Lookup property can be used for consuming the Data Lookups

  1. Create a custom control (Tree).

    1. To use the DataLookupProperty as a property (Configuration Details) for the Tree View control, code in the Tree.cs control initialization file
      as follows:
      private DataLookupProperty dataLookupDetails = null;/// <summary>
      /// Gets or Sets the configurationDetails property that holds lookup name and the parameter collection
      /// </summary>
      [DefaultValue(null)]
      [DesignerProperty(775000, Categories.Behaviour,
      [BindingAttribute(882700, "Skelta.Forms.Core.CommonObjects.DataLookupBindingProperty")]
      public DataLookupProperty DataLookupDetails
      {
      get
      {
      return dataLookupDetails;
      }
      set
      {
      dataLookupDetails = value;
      }
      }

  2. Build the custom control.

  3. In Forms Designer, add the TreeView control to the form.

  4. Modify the properties of the TreeView control as follows:

    1. In the Basic tab, click the Data Source icon. The Lookup Source Configuration page appears.

    2. In the Data Source Type drop-down, select a database.

    3. In the Data Source drop-down, select a lookup.

    4. Save the form.

  5. Preview the form.
    You can see the the data lookup name and the parameter collection in the preview.

    Note: The Tree control is available as a standard control in Forms. This example is given to demonstrate the use of DataLookupBindingProperty.

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