The global data List item allows you to create a list of string values that can be referred to by WinGate services and components when they need to find a match for the value of a piece of event data.
When using a WinGate script system, or defining a policy in WinGate, you can have the script or policy check whether the value of a piece of current event data matches the value on a specified global data list.
You can create lists for such purposes as:
Lists can be created in several ways:
As the title implies, only an exact match of the data against the value on this list will be valid. This type of method is processed faster then the pattern match method.
When the exact match method is chosen all normal punctuation marks such as a period (.) or a comma (,) are considered as part of the value to be matched. This also includes the question mark(?) and asterisk(*).
Pattern matching will allow you to add a value pattern to the list using the standard WinGate wildcards of ? (question mark) or *(asterisk).
The question mark wildcard is used to indicate a match of a single character. While an asterisk allows you to widen the pattern match value further, as the match will include one or more characters from where the asterisk is placed in the value.
When using the pattern match method against a value on the list, normal punctuation marks such as a . (period) -(hyphen) or , (comma) etc. are considered as valid characters. This however excludes the WinGate wildcards, ? (question mark) or *(asterisk).
Link the content of a file to this list
Selecting this option allows you to have the list item match the value against the contents of a selected file. The global data list item will scan the file on a line by line basis (depending on the occurrence of newlines found in the file).
Link the content of another list to this list
Selecting this option allows you to have the global data list item match the value against the content of another global data list that you have created.
When using a WinGate scripting system (such as the Lua or Javascript event processors) or a configuration that has access to a Symbol browser, you can utilize the Data object published by the Data module to access and manage global data lists. The Data object provides the GetList(Text ListName) method which you can use to create a global data list.
If the list does not already exist it is created. This greatly simplifies script access to global data lists, since the script does not need to first check whether a particular global List item exists before using it.
e.g. A script could contain:
Data.GetList("testlist")
This would attempt to get the value of a global data list item called testlist. If this list did not exist, a new list would be created automatically with the name testlist.
After they are created, global data items are identified throughout WinGate by their type (string, boolean, list etc.) and the name you give them.
Global data items of the same type must each have a unique name. If you create a new global data item with the same name as an existing item of the same type, then the new item will replace the old one.
Like other global data items, global data lists can be created, referenced, modified, and deleted whenever you are:
Read about accessing global data items
©2012 Qbik New Zealand Limited
no comments yet...
You can use basic Full-Text Searches against the page title and body to find matching articles. Use the following search modifiers to refine your query:
You can create a new account or reset your password at forum.wingate.com.