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:
- Create a widget. Widget creating is described in the Create a New Widget article.
- Define the widget behavior and look, define its server and client logic.
- Specify the tables to display the widget on
Before a widget
Можно виджеты добавлять через Form Layout. Для этого сначала:
- Создать виджет (ссылка сюда: Create a New Widget )
- Указать таблицы, на форме которых он доступен (это указывается в поле Table IDs).
- Если нужно, чтобы виджет отображался и на формах дочерних таблиц, то нужно отметить inheritance.
- Далее вывести на форму (ссылка сюда: Add widgets to a form)
...