Triggering actions and events on a row(触发行级操作与事件)¶
Ontology actions enable you to create, modify, and delete objects in the Ontology. Workshop events enable you to trigger pop-ups, toggle sections, switch tabs, update variable values, and more. On each row, you can configure actions and events that can be triggered by the end user.
Actions and events can be triggered by:
- Row right-click menus
- "On row select" events

Row right-click menu¶
A row-level right-click menu can be configured under Row Configuration > Right Click Menu. Menu options can be reordered by dragging the menu item. The available right-click menu options are detailed in the following sections:
Action types¶
Common uses:
- Edit a property on the row object;
-
Create a new object at the point in time that you right-click in the Gantt chart.
-
Provide a custom name for this menu option.
- Select any ontology action type to trigger on click. This can be related to the
resource object typebut is not required. - Prefill the parameters of your action type with Workshop variables or Scheduling Gantt chart-specific variables:
- Resource object: Auto-fills with the row object you right-click on.
- Selected start timestamp: Auto-fills with the timestamp of the point in the row you right-clicked. Useful when right-clicking in the whitespace of the row.
Workshop events¶
Common uses:
- Trigger a popover with more details about the selected row
-
Open a different Workshop application or page, with the selected row pre-populated as an input.
-
Provide a custom name for this menu option.
- Select a Workshop event to trigger on click. Often uses the Gantt chart's selection output variable as a reference to the selected row.

"On row select" event¶
The "on row select" event can be configured below the right-click menu in the configuration. When toggled on, these events trigger when the user selects (clicks on) a row header. Events can be any Workshop event.
中文翻译¶
触发行级操作与事件¶
本体操作(Ontology actions)允许您在本体中创建、修改和删除对象。工作坊事件(Workshop events)可触发弹窗、切换区块、切换标签页、更新变量值等。您可以在每一行上配置可由最终用户触发的操作与事件。
操作和事件可通过以下方式触发:
- 行右键菜单
- "行选中时"事件

行右键菜单¶
可在行配置 > 右键菜单下配置行级右键菜单。菜单选项可通过拖拽菜单项重新排序。可用右键菜单选项详见以下章节:
操作类型¶
常见用途:
- 编辑行对象的属性;
-
在甘特图中右键点击的时间点创建新对象。
-
为此菜单选项提供自定义名称。
- 选择点击时触发的本体操作类型。该操作可与
资源对象类型相关,但非必需。 - 使用工作坊变量或甘特图专用变量预填操作类型参数:
- 资源对象: 自动填充右键点击的行对象。
- 选中起始时间戳: 自动填充右键点击行内位置的时间戳。在行空白区域右键点击时尤为实用。
工作坊事件¶
常见用途:
- 触发弹出窗口显示选中行的更多详情
-
打开其他工作坊应用或页面,并将选中行预填为输入参数。
-
为此菜单选项提供自定义名称。
- 选择点击时触发的工作坊事件。通常使用甘特图的选中输出变量作为选中行的引用。

"行选中时"事件¶
可在配置中右键菜单下方配置"行选中时"事件。启用后,当用户选中(点击)行标题时触发这些事件。事件可以是任意工作坊事件。