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:

CategoryDescription
CommandsExecute WebView commands that are typically associated with application menuitems and toolbar buttons.
Data PointsGet a list of data point names that match filter criteria, and get a specific data point.
Symbol Maps and SymbolsGet lists of symbol sets, categories and symbols that match various criteria.
User Options and Script CookiesGet and set user options and script cookies, both of which persist to the user's local storage (Silverlight Isolated Storage).
HelpersGet enum lists and values, and the list of all available colors.
WebRequestRequest server-side resources from the DataHub server.
Interaction DialogsDisplay interactive MsgBox and non-interactive Wait messages.
DiagnosticsEmit 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);