%DeepSee.Dashboard.Utils
class %DeepSee.Dashboard.Utils extends %Library.RegisteredObject
Utility methods for DeepSee Dashboards.Method Inventory
- %DashboardExists()
- %DeleteDashboard()
- %DeleteTheme()
- %DoesFilterSupportRange()
- %GetCaptionForTargetProperty()
- %GetChartTypeInfo()
- %GetDashboardActionList()
- %GetFiltersForDataSource()
- %GetKpiFilterCaption()
- %GetListingsForDataSource()
- %GetMemberDimensionType()
- %GetMembersForFilter()
- %GetPivotVariablesForDataSource()
- %GetPropertiesForDataSource()
- %GetThemeList()
- %GetWidgetClass()
- %GetWidgetClasses()
- %GetWidgetTemplateList()
- %OpenDashboard()
- %SaveTheme()
- EnumerateFiltersClose()
- EnumerateFiltersExecute()
- EnumerateFiltersFetch()
Methods
Check if a there is a dashboard definition with the given name.
Returns 0 if the item does not exist; returns 1 if it exists and is visible to the
current user; returns 2 if it exists but is not visible to the current user.
Delete the dashboard definition with the given full name.
Delete the given "theme".
classmethod %DoesFilterSupportRange(pDataSource As %String, pFilter As %String, Output pSupportsRange As %Boolean) as %Status
Tests if a given filter supports range selection (used by the searchBox control).
classmethod %GetCaptionForTargetProperty(pDataSource As %String, pTarget As %String, Output pCaption As %String) as %Status
Return the caption for the given target property within the given data source.
This is used to translate the logical name for a filter to its display value.
classmethod %GetDashboardActionList(Output pAction As %String, pDataSource As %String = "") as %Status
Return list of possible dashboard actions.
This takes the form:
pAction(n)=$LB(name,caption,tooltip,type)
type specifies the data associated with the action (if any). This value is passed along as the targetProperty of the action.
"filter", the action controls the given filter.
"url", the action requires a url.
"dashboard", the action requires a dashboard.
The control for each action is determined by the %CreateControls method in the DashboardViewer class.
The actions are dispatched to widget by the dashboardEventHandler method in the DashboardViewer class.
pAction(n)=$LB(name,caption,tooltip,type)
type specifies the data associated with the action (if any). This value is passed along as the targetProperty of the action.
"filter", the action controls the given filter.
"url", the action requires a url.
"dashboard", the action requires a dashboard.
The control for each action is determined by the %CreateControls method in the DashboardViewer class.
The actions are dispatched to widget by the dashboardEventHandler method in the DashboardViewer class.
classmethod %GetFiltersForDataSource(pDataSource As %String, Output pFilters As %List, ByRef pVisited, pParent As %String = "", pSearchKey As %String = "", pMaxDepth As %Integer = 3, pLevel As %Integer = 1) as %Status
Return list of possible filters for a given dashboard data source.
This takes the form:
pFilters(n)=$LB(caption,value,type)
type is the dimension type: "" (data),"year","month","day", etc.
pVisited is used to prevent cycles when visiting related cubes.
pMaxDepth is maximum depth of relations to follow. A value of 0 means there is no limit to the depth of relationships.
pFilters(n)=$LB(caption,value,type)
type is the dimension type: "" (data),"year","month","day", etc.
pVisited is used to prevent cycles when visiting related cubes.
pMaxDepth is maximum depth of relations to follow. A value of 0 means there is no limit to the depth of relationships.
classmethod %GetKpiFilterCaption(pKPIName, pSpec) as %String [ ZenMethod ]
Lookup a filter caption for a KPI
classmethod %GetListingsForDataSource(pDataSource As %String, Output pListings As %List, pType As %String = "") as %Status
Return list of possible listings for a given dashboard data source.
This takes the form:
pListings(n)=$LB(caption,value,type)
pListings(n)=$LB(caption,value,type)
classmethod %GetMemberDimensionType(pDataSource As %String, pFilter As %String, Output pType As %String, Output pMemberClass As %String, Output pOtherInfo As %String) as %Status
Find the dimension type for a given dashboard data source and filter.
Also returns the member class.
classmethod %GetMembersForFilter(pDataSource As %String, pFilter As %String, Output pMembers As %List, Output pDefaultValue As %String, pSearchKey As %String = "", ByRef pRelatedFilters, pCalcOnly As %Boolean = 0, pRangeMode As %Boolean = 0, ByRef pPreSelected As %String) as %Status
Return list of possible filter member values for a given dashboard data source and filter.
This takes the form:
pMembers(n)=$LB(text,value,[description])
If pSearchKey is provided, then only return members that match the search key. If pRelatedFilters is provided, it is an array of other filter values to use to restrict the set of members. It takes the form:
pRelatedFilters(spec) = key
If pCalcOnly is true, then only return calculated members.
If pRangeMode is true, then only return members that are valid for range selection (used by searchBox).
If pPreSelected is a list of selected values; always display these items.
pMembers(n)=$LB(text,value,[description])
If pSearchKey is provided, then only return members that match the search key. If pRelatedFilters is provided, it is an array of other filter values to use to restrict the set of members. It takes the form:
pRelatedFilters(spec) = key
If pCalcOnly is true, then only return calculated members.
If pRangeMode is true, then only return members that are valid for range selection (used by searchBox).
If pPreSelected is a list of selected values; always display these items.
classmethod %GetPivotVariablesForDataSource(pDataSource As %String, Output pVariables As %List) as %Status
Return list of possible pivot variables for a given dashboard data source.
This takes the form:
pVariables(n) = $LB(name,caption,defValue,context)
pVariables(n) = $LB(name,caption,defValue,context)
classmethod %GetPropertiesForDataSource(pDataSource As %String, Output pProperties As %List) as %Status
Return list of possible data properties for a given dashboard data source.
This takes the form:
pProperties(n)=name
pProperties(n)=name
classmethod %GetThemeList(Output pList As %String, Output pCount As %Integer, pMaxItems As %Integer = "") as %Status
Return an array of saved themes visible to the current user.
This list is in the form:
pList(n) = $LG(id,fullName,name)
pList(n) = $LG(id,fullName,name)
Find the class name for the given widget type.
Return an array of all available widget types
pInfo(n) = $LB(name,caption,class,icon)
classmethod %GetWidgetTemplateList(Output pList As %String, Output pCount As %Integer, pMaxItems As %Integer = "") as %Status
Return an array of widget templates visible to the current user.
This list is in the form:
pList(n) = id
pList(n) = id
classmethod %OpenDashboard(pFullName As %String, Output pStatus As %Status) as Definition
Open the dashboard definition with the given full name.
classmethod %SaveTheme(pThemeName As %String, pOverrides As %ZEN.proxyObject) as %Status
Save a set of style overrides to the given "theme".
Queries
Inherited Members
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()