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

Compare with Current View Page History

« Previous Version 12 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 to display the widget on 


Before a widget

Можно виджеты добавлять через Form Layout. Для этого сначала:

  1. Создать виджет (ссылка сюда: )
  2. Указать таблицы, на форме которых он доступен (это указывается в поле Table IDs).
  3. Если нужно, чтобы виджет отображался и на формах дочерних таблиц, то нужно отметить inheritance.
  4. Далее вывести на форму (ссылка сюда: Add widgets to a form)


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

  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