
144 vFoglight
Web Component Guide
• Count All
• Unit
• Units
• Localized Property Name
• Localized Property Names
• Localized Type Name
• Localized Type Names
Localized Value
This is the default return type. It returns the basic type of data of the context, but
localizes it if a localization is available. If the context is a host server and the path is
name, then it returns a simple string. If the context is a list of servers and the path is
name, then it returns a list of names.
Value
This is the default return type. It returns the basic type of data of the context, not its
localized value. If the context is a host server and the path is name, then it returns a
simple string. If the context is a list of servers and the path is name, it returns a list of
names.
CountPerItem
This is used when you want to show the count of a list. For example, use this property to
display the number of file systems on a host. Count acts on the result of evaluating the
Context Selection Runtime Value normally. There are several cases:
• If the result is not a list, then the number of objects is “1,” and therefore the count
is “1.” This is not a common use of this property. If you set up the context to be a
single value, then you do not need to derive the count.
• If the result is a list of objects, then this returns the number of items in the list. For
example, a Host data object has the events property, which is a list. If this
property is used as the context value, then Count returns the number of events.
• If the result is a list of lists, then it returns a list composed of the results of
evaluating the CountPerItem on each value in the top level. For example, if the
context is set to hosts, and the path is set to events, then CountPerItem returns a
list of the number of events for each host.
Komentarze do niniejszej Instrukcji