调整仪表板

iTop中的某些页面是仪表板。仪表板用于在同一页面上显示有关不同iTop对象的信息。大多数概述页面以及欢迎页面都是仪表板。在iTop 2.0中,每个用户都可以通过编辑现有仪表板页面来配置自己的仪表板。无法创建新的仪表板页面。

当页面是可编辑的仪表板时,小的Pen下拉菜单显示在页面的右上方,靠近登出菜单。

Dashboard popup menu

要编辑当前页面,请选择编辑此页面。

几秒钟后,将出现一个弹出对话框,其中包含仪表板编辑器对话框:

Dashboard editor dialog

仪表板由以小数点命名的构建块组成。

仪表板本身可以安排其包含的小表的显示。仪表板仅具有三个属性:

  • 布局(一列,两列或三列)
  • 可选标题
  • 自动刷新设置(禁用或刷新间隔以秒为单位)

布局确定了小控件在页面上的排列方式:它确定了一个网格,每个仪表盘都分配给了网格的一个单元。更改布局后,将重新组织单元格(以及单元格内的虚线)以产生所需的显示。

1600480941998-382.png

要编辑仪表盘的属性,请在对话框的左侧单击它。所选仪表盘周围会出现一个橙色边框,并且小对话框的属性显示在对话框的右侧。要修改仪表盘的外观,只需修改右侧的属性。仪表盘将仪表盘反映出您的修改。要从仪表盘中删除所选的仪表盘,请单击所选仪表盘右上角的红叉。

由于某些仪表板包含可单击的链接,因此请在仪表盘的灰色边框旁边单击以选择仪表盘,而不激活链接。

要将新的仪表盘添加到仪表板,请将一个仪表盘图标拖动到仪表板的所需区域,然后调整右侧的属性以完成仪表板。

您还可以从任何iTop对象列表创建一个新的仪表盘。看到清单管理 有关如何实现此目标的更多信息。

完成编辑后,单击“保存”以保存您的修改并返回到iTop页面。

要撤消自单击“编辑此页面”以来执行的所有修改,请单击“取消”。

仪表板的修改适用当前的用户。所有其他用户保留自己的仪表板副本(如果未自定义,则使用默认的仪表板)。

仪表盘类型

以下类型的虚线可用于组成仪表板:

IconNameDescription
TextTextA free text area. Use this dashlet to add a title or a comment to a page
ListObject ListA list of iTop objects, displayed as a table, like any search result
Pie ChartPie ChartA list of itop objects, grouped on the given field and displayed as a pie chart. New in 2.5: Instead of the count, various functions can be used (sum, average, min and max) on specified fields. The ordering direction can also be specified and the max number of results.
Bar ChartBar ChartA list of itop objects, grouped on the given field and displayed as a barchart. New in 2.5: Instead of the count, various functions can be used (sum, average, min and max) on specified fields. The ordering direction can also be specified and the max number of results.
Group By (Table)Group ByA list of itop objects, grouped on the given field and displayed as a table. New in 2.5: Instead of the count, various functions can be used (sum, average, min and max) on specified fields. The ordering direction can also be specified and the max number of results.
HeaderHeaderA grey banner with an icon on the left and a title.
Header with countsHeader with countsA grey banner with an icon on the left, title and a table showing the count of objects grouped by a given field.
badgeBadgeA icon with a text showing the total number of objects of the given class and two links: 'create a new…' and 'search for…'

动态仪表盘

大多数Dashlet的属性中都包含OQL。可以基于当前用户,当前时间和当前对象将那些OQL扭曲为动态的。

如果仪表板是菜单仪表板,则可以使用前两种方法

基于当前的用户

:current_contact_id: :这是链接到所连接的联系人的联系人的ID,如果没有与该联系人关联的联系人,则为0。例如,它允许显示当前联系人是用户的工单。

SELECT Ticket WHERE agent_id = :current_contact_id

基于时间

在以下OQL示例中,我们显示在过去30天内创建的工单,但尚未已关闭

SELECT Ticket 
WHERE creation_date > DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 30 DAY),'%Y-%m-%d 00:00:00') 
AND STATUS != 'closed'  

基于当前的对象

仅适用于在对象上定义的仪表板属性,您可以使用当前对象的任何字段来对OQL进行过滤器。

例如,在组织上,可以使用诸如:this-> att_code的占位符,其中att_code可以是组织的任何字段,包括ID。

SELECT UserRequest WHERE org_id=:this->id

导出仪表板

可以将仪表板定义导出为XML文件,以存档或与其他用户共享。对于导出和仪表板,请单击菜单项仪表板从笔弹出菜单中进行归档。出现提示时,输入下载位置(导出的仪表板将保存到计算机上的位置)。

Exporting a dashboard

导入仪表板

Importing a dashboard

要从XML文件导入定义仪表板,请从文件中单击导入,然后选择要从计算机上载的XML文件。

https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Adashboard-upload.png

放弃定制

https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Adashboard-popup-menu-revert.png

在任何时候,都可以放弃仪表板的自定义,以恢复到原始定义(所有用户共享)。只需单击“还原为原始版本”,然后确认确认弹出对话框。

原贴链接:https://www.itophub.io/wiki/page?id=2_7_0%3Auser%3Adashboards


Editing Dashboards

Some of the pages in iTop are dashboards. Dashboards are used to display information about different iTop objects on the same page. Most of the overviewpages, as well as the welcome page are dashboards. In iTop 2.0, each user can configure their own dashboards by editing the existing dashboard pages. It is not possible to create new dashboard pages.

When a page is an editable dashboard, the small Pen drop-down menu appears at the top-right of the page, next to the Log-off menu.

Dashboard popup menu

To edit the current page, select Edit this page.

After a few seconds a popup dialog appears containing the dashboard editor dialog:

Dashboard editor dialog

A dashboard is made of building blocks named after dashlets.

A dashboard itself arranges the display of the dashlets it contains. A dashboard has only three properties:

  • A layout (one, two or three columns)

  • An optional title

  • The automatic refresh setting (disabled, or refresh interval given in seconds)

The layout determines how the dashlets are arranged on the page: it determines a grid, with each dashlet being assigned to one cell of the grid. When the layout is changed, the cells (as well as the dashlets inside the cells) are re-organized to produce the desired display.

Dashboard Layouts

To edit the properties of a dashlet, click on it in the left part of the dialog. An orange border appears around the selected dashlet, and the properties of the dashlets are displayed on the right part of the dialog. To modify the appearence of the dashlet, simply modify the properties on the right. The dashlet will change to reflect your modifications. To remove the selected dashlet from the dashboard, click on the red cross at the top-right of the selected dashlet.

Since some dashlets contain clickable links, click next to the grey border of the dashlet to select the dashlet without activating a link.

To add a new dashlet to the dashboard, drag one of the dashlet icons into the desired area of the dashboard, then adjust the properties on the right to finalize your dashboard.

You can also create a new dashlet from any list of iTop objects. See Managing Lists for more information about how to achieve this.

When you are done with editing, click on Save to save your modifications and go back to the iTop page.

To undo all modifications performed since clicking on Edit this page, click on Cancel.

The modifications of the dashboard apply the current user. All other users keep their own copy of the dashboard (or the default dashboard if they did not customize it)

Dashlet types

The following types of dashlets are available to compose your dashboard:

IconNameDescription
TextTextA free text area. Use this dashlet to add a title or a comment to a page
ListObject ListA list of iTop objects, displayed as a table, like any search result
Pie ChartPie ChartA list of itop objects, grouped on the given field and displayed as a pie chart. New in 2.5: Instead of the count, various functions can be used (sum, average, min and max) on specified fields. The ordering direction can also be specified and the max number of results.
Bar ChartBar ChartA list of itop objects, grouped on the given field and displayed as a barchart. New in 2.5: Instead of the count, various functions can be used (sum, average, min and max) on specified fields. The ordering direction can also be specified and the max number of results.
Group By (Table)Group ByA list of itop objects, grouped on the given field and displayed as a table. New in 2.5: Instead of the count, various functions can be used (sum, average, min and max) on specified fields. The ordering direction can also be specified and the max number of results.
HeaderHeaderA grey banner with an icon on the left and a title.
Header with countsHeader with countsA grey banner with an icon on the left, title and a table showing the count of objects grouped by a given field.
badgeBadgeA icon with a text showing the total number of objects of the given class and two links: 'create a new…' and 'search for…'

Dynamic Dashlet

Most Dashlets have an OQL within their properties. Those OQL can be twisted to be dynamic based on current user, current time and current object when there is one.

If the Dashboard is a Menu dashboard then you can use the 2 first methods

Based on Current user

:current_contact_id: This is the id of the contact linked to the connected user, it's 0 if no contact is associated to the user. It allows to display the Tickets for which the current user is the agent for eg.

SELECT Ticket WHERE agent_id = :current_contact_id

Based on Time

In the below OQL example, we display Tickets created in the past 30 days and not yet closed

SELECT Ticket 
WHERE creation_date > DATE_FORMAT(DATE_SUB(NOW(), INTERVAL 30 DAY),'%Y-%m-%d 00:00:00') 
AND STATUS != 'closed'  

Based on Current object

Only available for Dashboard Attribute defined on an Object, you can filter your OQL using any field of the current Object.

For example on Organization, you can use placeholders like :this->att_code where att_code can be any field of the Organization, including the id.

SELECT UserRequest WHERE org_id=:this->id

Exporting a dashboard

A dashboard definition can be exported as an XML file, for archiving or sharing it with other users. To export a dashboard, click on the menu item Export to filefrom the Pen popup menu. When prompted, enter the download location (Where the exported dashboard will be saved to on your computer).

Exporting a dashboard

Importing a dashboard

Importing a dashboard

To import a dashboard definition from an XML file, click on Import from file and select the XML file to upload from your computer.

https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Adashboard-upload.png

Discarding the customizations

https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Adashboard-popup-menu-revert.png

At any time, the customization of a dashboard can be discarded in order to revert to the original definitions (shared by all users). Simply click on Revert to Original Version and acknowledge the confirmation popup dialog.

标签:
由 superadmin 在 2020/08/25, 16:04 创建
    

需要帮助?

如果您需要有关XWiki的帮助,可以联系:

深圳市艾拓先锋企业管理咨询有限公司