Announcement

Collapse
No announcement yet.

Modifying Layout View contents

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Modifying Layout View contents

    It is possible to edit the RMS software code and add more content to certain pages. This is only possible with On Premise and changing the RMS software files shoudl be undertaken with great care.
    Test all chanegs and note that Rotronic cannot formally support custom changes to the software of this nature. These changes are not recommended for validated users.

    By default layout view items only show MPT Name and results. But you can add additional data such as the measurement points Comment and Regulation status text.

    Edit the wPage/Layout.aspx file in notepad
    In v2.1.1 line 172 must be edited.

    Default Line 172 is below ... note that item.NAME is the MPT Name that is displayed in the layout view box.
    Code:
    $("#LabelContainer").append('<div class="valueLabel" id="position' + item.Id + '">' + GetMpAlarmImage(item.AlarmLevel, item.MeasurePointId, "float:left;") + '<div style="font-size:8pt;text-align:center;padding-left:16px;">' + [B]item.Name[/B] + '</div><div style="text-align:center;clear:left;"><span id="value' + item.MeasurePointId + '">' + item.Text + '</span><span style="font-size:8pt">' + item.Unit + '</span></div></div>');
    after item.NAME + '<div> add a new line of code...

    Code:
    <div style="font-size:8pt;text-align:center;padding-left:16px;">' + [B]item.Comment[/B] + '</div>
    Thus Line 172 now reads...
    Code:
    $("#LabelContainer").append('<div class="valueLabel" id="position' + item.Id + '">' + GetMpAlarmImage(item.AlarmLevel, item.MeasurePointId, "float:left;") + '<div style="font-size:8pt;text-align:center;padding-left:16px;">' + [B]item.Name[/B] + '</div><div style="font-size:8pt;text-align:center;padding-left:16px;">' + [B]item.Comment[/B] + '</div><div style="text-align:center;clear:left;"><span id="value' + item.MeasurePointId + '">' + item.Text + '</span><span style="font-size:8pt">' + item.Unit + '</span></div></div>');
    You can also use
    - item.RegulationStatus
    - item.Location
    - item.DeviceSerial
    - item.LimitHigh1
    - item.LimitHigh2
    ​​​​​​​- item.LimitLow1
    ​​​​​​​- item.LimitLow2

    and many more...

    Example below

    Click image for larger version

Name:	2021-03-26 13_56_29-Window.png
Views:	151
Size:	18.8 KB
ID:	1117
Working...
X