Promotic

WebClientIsReady - property of the PmaData object

Description:
Detects whether the object is ready to write/read to Web server. In this case the PmaData object is the Web client.
Syntax:
Boolean WebClientIsReady
Values:
true - the object is ready to transfer the Web data (i.e. the ReadFromWeb or WriteToWeb method can be called)
false - the object is not ready for data transfer (the data from the previous calling the referred methods is still transferring)
Note:
Property access for read only.
 
This method is not functional for PmFree.

The object gets in the transfer of data state by calling the methods ReadFromWeb or WriteToWeb. During the transfer these methods cannot be re-called over the object and the WebClientIsReady property then returns the false value. After the data transfer (i.e. after the onEndOfTransfer event is triggered) the methods can be called again and the WebClientIsReady property returns the true value.
See also:
Example:
JavaScriptVBScriptSelect and copy to clipboard

if (oData.WebClientIsReady)
{
oData.ReadFromWeb("http://compX/temperatures/data.xml?fmt=purevalue");
}
else
{
Pm.Debug("Web client is not ready (is still active)");
}
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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