Promotic

onEndOfTransfer - event of the PmaDataTable object

Description:
The event is triggered after ending the data transfer.
Parameters:
pMe(Object) Reference to the PmaDataTable object where the event rises.
pEvent(Object) Reference to the object describing detailed information about the specific event.
pEvent.Source - (Long) [for reading] Source from which the event is triggered. Can have the following values:
0 - The event is triggered locally by the EndOfTransfer method. The pEvent.Error parameter is always 0.
10 - Data was written into this object by XML communication. For example in this object the ReadFromWeb method was called or the client (other PmaDataTable object) called its WriteToWeb method.
20 - Data was read from this object by XML communication. For example in this object the WriteToWeb method was called or the client (other PmaDataTable object) called its ReadFromWeb method or Web browser (Chrome, Firefox, Edge, InternetExplorer ...) read this XML data.
pEvent.Error - (Long) [for reading] The value of the transfer error:
0 - Transmission passed successfully
24 - Transmission error - Web server is probably is not accessible
33 - Software error
40 - Operation (reading or writing) is disabled. When calling the method ReadFromWeb or WriteToWeb the parameter user or psw is probably set incorrectly.
61 - Web server cannot connect to client at URL
62 - Web server responded negatively (HTTP status is not 200=OK)
64 - Received data cannot be saved (probably incompatible formats)
66 - The received message doesn't have the required format
Example:
JavaScriptVBScriptSelect and copy to clipboard

if (pEvent.Error)
{
Pm.Debug("Error onEndOfTransfer Source number=" + pEvent.Source + ", Error number=" + pEvent.Error);
}
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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