Update cookies preferences

onAddRecord - event of the PmaTrendGroup object

The event is triggered on the request for saving the values (in the form of new record), but before the saving is done. This event can be used for preparing the data to be saved.
pMe(Object) Reference to the PmaTrendGroup object where the event rises.
pEvent(Object) Reference to the object describing detailed information about the specific event.
The pEvent parameter is not used here because this event does not need any additional information.
The record saving request can be triggered:
- automatically by the internal timer (see the "Automatic saving after launch is enabled" configurator) or
- by calling the Run or RunTime methods.
Conversion trend unit before saving. The value is obtained by data extension ExtTrend of the PmaData object.
JavaScriptVBScriptSelect and copy to clipboard

var oPressure = pMe.Pm("../Data/#vars/pressure");
oPressure.Value = oPressure.Value / 100;   // 150 kPa / 100 = 1.5 bar

Pm8.00.04: Created
PROMOTIC 9.0.28 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.