Widgets contain client and server logic, template, and styles, and for the real interaction, it is required to place an implemented widget on a specified object. In SimpleOne, you can place a widget on a record form or on a portal page.
Forms generally display a set of fields of various types, occasionally split for the sake of clarity. Forms also can include widgets.
Before a widget can be displayed on some form, it should be pre-configured for this. To pre-configure a widget, you need to:
For example, you are creating a widget to be displayed on records of all tables of the ITSM Task type (for example, Incidents, Change Requests, Problems, and so on). These tables are child tables for the ITSM Tasks table. So, when you are creating a widget, select the ITSM Tasks table in the Tables field and mark the Inheritance checkbox, and the widget will be available on records of all the tables child for the ITSM Tasks table (including this table itself). |
To place a widget on a portal page, use the Widget Instances (sys_widget_instance) table. These elements help to define a specific location of widgets according to the portal column specified and to customize the widget options with the option schema.
To configure widget displaying, please complete the steps below:
Widget Instance form fields
Field | Mandatory | Description |
---|---|---|
Widget | N | Click the magnifier icon |
Page Column | N | Click the magnifier icon |
Option Values | N | Fill in the field with widget options overridden if it is necessary. |
Active | N | Select this checkbox to make this widget instance active or inactive. |
Public | N | Select this checkbox if you want this widget instance to be available for non-authorized users. |
Order | N | This field specifies the order of widgets location within a portal column. Fill in this field with the integer number to display the widgets by the value of this field increases. |
The new widget instance record will be shown in the Related Lists area of the Widget record and the Portal Column record forms.
If you have similar widgets on multiple instances and you need to differentiate them, you can configure their options. Refer to the Creating a portal widget options article to learn more. |
To determine whether a widget is shown on a record form, please perform the following steps:
You may also use another way to determine whether a widget is shown on record forms. To do it, please complete the steps below:
|
To define whether a widget is displayed on a portal page, please complete the steps below:
To go to the page settings where a widget is located, please complete the following steps:
|