Provides helper functions available to all scripts.
public class WV
The WV object is globally accessible (i.e., all methods are static). _members--Members support functionality in the following categories:
| Category | Description |
|---|---|
| Commands | Execute WebView commands that are typically associated with application menuitems and toolbar buttons. |
| Data Points | Get a list of data point names that match filter criteria, and get a specific data point. |
| Symbol Maps and Symbols | Get lists of symbol sets, categories and symbols that match various criteria. |
| User Options and Script Cookies | Get and set user options and script cookies, both of which persist to the user's local storage (Silverlight Isolated Storage). |
| Helpers | Get enum lists and values, and the list of all available colors. |
| WebRequest | Request server-side resources from the DataHub server. |
| Interaction Dialogs | Display interactive MsgBox and non-interactive Wait messages. |
| Diagnostics | Emit trace messages to the Trace History log. |
This example shows how to retrieve a point from the DataHub and display it's current attributes in a message dialog.
var pv = WV.GetPoint("DataPid:PID1.Pv");
var msg = string.Format("{0} was updated to {1:0.000} at {2:hh:mm:ss tt}.",
pv.PointName, pv.Value, pv.TimestampAsLocalTime);
WV.MsgBox(msg, pv.PointName);

