Creating a new attribute in the System group

JViews TGO defines a specific attribute group to store SNMP System attributes. You can retrieve this attribute group with the method GetSystemAttributeGroup. The attributes present in this group are business object attributes, as defined in IlpAttribute.
JViews TGO provides an attribute class IltAttribute, which you can use directly when customizing the SNMP System group.
To extend the attributes in the SNMP System group:
  • Create a new attribute with its type and attribute group.
    IltAttribyte myAttribute = new IltAttribute("address", 
                               String.class, 
                               IltSNMP.GetSystemAttributeGroup());
    
  • Register the attribute in the SNMP System Group.
    To do so, use the method SetAttributeMapping. This method allows the attribute to be automatically represented in the object System Window.
    IltSNMP.SetAttributeMapping(myAttribute, defaultValue, "Address");
    
  • Customize the representation of this attribute through cascading style sheets.
    When adding a new attribute to the System Window, create a selector for the object and attribute ( object."ilog.tgo.model.IltObject/address" ). This selector contains the following properties:
    • visibleInSystemWindow : indicates that the attribute is an entry in the System window
    • captionLabelVisible : indicates that a label prefixes the attribute value
    • captionLabel : indicates the value of the label
    • label : indicates the value of the attribute to be displayed in the System window
    The following example illustrates the way to customize an attribute inside the System Window.
    object."ilog.tgo.model.IltObject/address" {
      visibleInSystemWindow: true;
      captionLabel: Address;
      captionLabelVisible: true;
      label: @address;
    }