The Button Group widget allows application builders to add buttons to a Workshop module that can trigger Actions and Workshop events, open URLs, or start an export. Builders configuring a Button Group widget can do the following:
The screenshot below shows an example of two rows of configured Button Group widgets and highlights the different button type and display options provided:
The screenshot below shows the configuration options available for the Button Group widget:
For the Button Group widget, the core configuration options are the following:
The screenshot below shows the configuration options available for a button within the Button Group widget:
Buttons can trigger Actions, Layout events, URLs, and different types of exports. Each option is described in detail below.
Actions allow users to easily create, edit, delete, and link objects in pre-defined ways and can be triggered by Workshop events. As an example, an application builder could configure a Button Group widget within a module to trigger a “Modify Flight Destination” Action that allows the user to edit the Destination
property on a select Flight
object.
Learn more about configuring and exposing Actions within a Workshop module.
For more details on Actions in general, review our action type documentation.
Review our events documentation for full details on using events in Workshop.
URL events trigger the opening of specified URLs from within a Workshop module. For example, an application builder could use a URL event to navigate within Foundry and open the Object Explorer application, or designate an external website to open when a user selects a given Button Group widget.
The screenshot below shows an example definition of an external URL event from within a Button Group widget:
When defining an external URL, include the prefix https://
.
Export events take an object set variable as an input and trigger the export of the objects in the object set to either Excel or the user’s clipboard. An application builder may optionally configure a file name and select the set of properties that should be included in the export.
The screenshot below shows an example definition of an Export event from within a Button Group widget:
Note that if function-backed columns or linked object columns are included, the export file format will be CSV and not Excel.
Function-backed exports take a Function and its inputs, and download the output into a specified file type. For a Function to be exportable, its output must be a string. Below is a sample Function-backed export definition from within a Button Group widget:
Export media events take a list of exported items and trigger the download of all media associated with those items. To configure an export item, select the object set, type of media, media property, and max number of objects to download. You can configure a custom file name for downloaded media, with substitutions available for the current timestamp, original file name, and non-primary key object property values. If no custom file name is provided, the original file name will be used.
Below is a sample export media event definition from within a Button Group widget:
A sample export item definition is shown below: