You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 13 Next »


Displaying a widget on a form


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:

  1. Create a widget. Widget creating is described in the Create a New Widget article.
    1. Define the widget behavior and look, define its server and client logic.
    2. Specify the tables on records of which this widget should be displayed. These tables can be selected in the Table ID field of the widget creation form.
      1. To denote that this widget should be displayed on records of the child tables, use the Inheritance attribute.
  2. Add a widget to a form using the Form Layout base functionality.


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 Table ID 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).


Displaying a widget on a portal




Отображение виджетов на портале:

  1. Выбрать страницу портала, для которой необходимо настроить отображение какого-либо виджета (т.е. Page Column).
  2. Перейти на связанный список Widget Instances и создать новую запись, заполнив поля.


To place a widget on a portal page, use the Widget Instances. These elements help to define a specific location for the widget according to the portal column specified and to customize the widget options with the option schema.

To create a widget instance, follow the steps below:

  1. Navigate to Portal Structure → Widget Instances.
  2. Click New and fill in the form.
  3. Click Save or Save and Exit to apply changes.

The Widget Instance form

FieldMandatoryDescription
WidgetNClick the magnifier icon, and select a Widget you want to display from the list.
ActiveNSelect this checkbox to make this widget instance active or inactive.
PublicNIf selected, then this widget instance can be displayed on the Self-Service Portal.
Page Column IDNClick the magnifier icon, and select a Portal Column you want to add a widget to.
OrderN

This field specifies the order of widgets location in a portal column.

Fill in this field with the integer number to display the widgets by the value of this field increases. 

When displaying a simple widget in a column, the order value does not matter.

Option Schema ValuesNFill in the field with widget options overridden if it is necessary.
  • No labels