Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Используйте тэг <report> , чтобы добавить виджет с отображением определенного отчета.


АтрибутТипОбязательныйОписание

The <report> tag adds the widget displaying a particular report.

Available attributes:

AttributeTypeMandatoryDescription
classStringNНетУкажите название класса CSS, определенное в поле CSSSpecify the CSS class name defined in the CSS field.
conditionStringNНет

Укажите условие для формирования отчетаSpecify a condition to build a report.

Note

This attribute takes a decoded condition as a value. To decode a query condition, use server methods as recommendedЭтот атрибут принимает в качестве значения декодированное условие. Чтобы декодировать условие запроса, используйте рекомендованные серверные методы.


isMandatoryBooleanNНетУстановите значение атрибута "true", чтобы сделать поле обязательным.  Make the field mandatory. For this, set the attribute equal to 'true'.
isVisibleBooleanNНетЧтобы отключить виджет, установите значение "false".  Значение по умолчанию "true"To disable the widget displaying, set the attribute to 'false'. This attribute is equal to 'true' by default.
labelStringNНетОпишите содержание поля, добавив его заголовокDescribe the field content by giving a field label with text information.
modelStringYДаУкажите этот атрибут, чтобы указать на объект данных контроллера клиента. При изменении данных модели они автоматически переносятся в данные клиентского скриптаSpecify this attribute to point to the client controller data object. When the model data changes, it is automatically transferred to the data of the client script.

readOnly

BooleanNНет

Чтобы сделать поле доступным только для чтения, установите значение атрибута как "true"To make a field read-only, set the attribute equal to 'true'.

styleStringNНет

Настройте вид элементов виджета (размер, шрифт, цвет, и др.), используя синтаксис CSSSpecify the display settings (size, font, color, etc.) of the widget elements using the CSS syntax.

reportIdStringYДаУкажите ID отчета для отображенияSpecify the report with the appropriate ID to display.

value

StringNНет

Укажите значение поля по умолчаниюSpecify the default value for the field.


Note

При использовании сразу двух и более условий в строке условия, соединяйте их символом карета ( ^ ). Ниже представлен пример синтаксиса посроения условий:

УсловиеОбозначениеПример
И

When placing two or more conditions into the condition string, merge them with the carat symbol ( ^ ). The condition syntax is presented below:

Condition wordNotationExample
AND^emailLIKE-group^state=active
ORИЛИ^ORimpact=high^ORurgency=high
To know more about possible condition operators, refer to the Condition Operators article.

Узначйте больше об операторах условий в статье Операторы условий.

Пример:

Code Block
languagexml
titlereport
linenumberstrue
<report reportid="{data.monthBarReportId}" condition="(group.nameLIKEdesk^ORstate=active)"/>

...