Skip to main content

Web Page Example

The following \topics provide a simple example of a web part page built with Pimsoft Web Data Entry Web Part, in combination with an OSIsoft TreeView Web Part.

In the example, a web page (i.e. Web Data Entry page or WDE page) is used to allow manual entry on a Pimsoft Sigmafine model that represents a plant with two areas called “A” and “B”, and units labeled as integers. Each unit can have one or more Solid Meters that require manual adjustment over measured mass.

The key components of the example are; 'Sigmafine Model', 'AF Hierarchy', 'OSISoft Tree View Web Part', and 'Pimsoft WDE Web Part'. These components are set up as follows:

Sigmafine Model

The starting point for this example model is an empty Sigmafine Model with four new attributes defined for template “SF_SolidMeterTemplate”. For better organization, the category has been set to a new one, called “Pimsoft WDE”.Figure 1825: Sigmafine Model, SF_SolidMeter Template

Based on the SF_SolidMeterTemplate, a meter has been configured with an Area attribute set to A or B and the Unit set to an integer.

Sigmafine Model, SF_SolidMeter Template

NameDescriptionAreaOriginalValueUnitUoM
Meter_A-1Meter1 AreaAA0 ton1Tons
Meter_A-2Meter2 AreaAA0 ton2Tons
Meter_A-3Meter3 AreaAA0 ton2Tons
Meter_A-4Meter4 AreaAA0 ton2Tons
Meter_A-5Meter5 AreaAA0 ton2Tons
Meter_B-1Meter1 AreaBB0 ton1Tons
Meter_B-2Meter2 AreaBB0 ton1Tons
Meter_B-3Meter3 AreaBB0 ton1Tons
Meter_B-4Meter4 AreaBB0 ton2Tons
Meter_B-5Meter5 AreaBB0 ton3Tons
Meter_B-6Meter6 AreaBB0 ton3Tons

[Return to top]

An AF Hierarchy

A hierarchy of AF Elements and attributes is used by the TreeView web part to build a tree menu and send it to the Pimsoft WDE Web Part parameters that are used to extract data from Sigmafine model. In this example, elements belong to the same AF database of the Sigmafine Model.

The structure is shown in the following figure:Figure 1826: AF Elements Hierarchy tree menuFigure 1827: Attributes tab

Non-null attribute values are defined as is indicated in the following table.

Non-null Attribute Values

Property NameWhereValue
AFAdvancedListAttributeAllSF_SolidMeterTemplate.MeasuredMass;SF_SolidMeterTemplate.Unit;SF_SolidMeterTemplate.OriginalValue;SF_SolidMeterTemplate.Area;SF_SolidMeterTemplate.UoM
AFAdvancedLockAll\\<AFServer>\WDEExample\CaseResults|Lock
AFTimeRulePathAll\ \<AFServer>\WDEExample\PlantModel\Mass
AFAdvancedRuleA[\<AFServer>\
AFAdvancedRuleB[\<AFServer>\
AFAdvancedSecurityA\\<AFServer>\ WDEExample \Meter_A-1
AFAdvancedSecurityB\\<AFServer>\ WDEExample \Meter_B-1
AreaAA
AreaBB
SortA
SortB

The characteristics of this configuration are:

  • Two elements, “Meter_A-1” and “Meter_B-1”, are used as security templates for respective areas.
  • Lock state affects all areas because AFAdvancedLock is the same in all branches
  • When selecting the root “WDETree”, nothing will be extracted because AFAdvancedRule is null
  • When selecting A or B branches, only AF elements based on SF_SolidMeterTemplate and with Attribute Area set to A or B respectively are extracted
  • MeasuredMass, Unit, OriginalValue, Area and UoM attributes of SF_SolidMeterTemplate elements are selected

[Return to top]

OsiSoft Tree View Web Part

As said before, our example WDE web page contains two web parts; an OSIsoft TreeView web part and its key configurations. The key configurations are provided in the following table.

TreeView Web Part Key Configurations

PropertyValue
Root Node Of Tree\\<PISystem>\<AFDatabase>\WDETree
Default Selected Node\\<PISystem>\<AFDatabase>\WDETree
PI Properties Template Node\\<PISystem>\<AFDatabase>\WDETree

Moreover, the web part is configured to provide parameters to the WDE Web Part via the SERVER connection.

[Return to top]

Pimsoft WDE Web Part

The last WDE example component is the WDE Web Part. The key configurations for this web part are provided in the following table.

WDE Web Part Key Configurations

Property GroupPropertyValue
Graphical PropertiesCase LabelWorking Day:
Data LabelData
User LabelUser:
Buttons LabelsSave;Refresh;Lock
Save Message LabelAre you sure you want to commit the following data?
TimeRange PropertiesCase Search Range Start*-15d
Case Search Range End*
Sigmafine-AF PropertiesSearch stringAFAdvancedRule
Attribute ListAFAdvancedListAttribute
Analysis settingAFTimeRulePath
Security settingAFAdvancedSecurity
Area settingArea
Sort
Group-By setting$@UNIT
Lock/Unlock settingAFAdvancedLock
Table Layout PropertiesColumn listElementName;X;Code;Left;R;120;S|ElementDesc;X;Meter; Left;R;500;S|UoM;X;UoM;Left;R;60;S|MeasuredMass;X; Value;Right;RW;120;N
Table Width / Height (in px)800 400

[Return to top]

WDE Web Part Final Appearance

With the “A” branch selected, the final aspect of our example page displays as depicted in the following figure.

WDE Example - Final Appearance

[Return to top]