Для системных кнопок корневой элемент formcomponent→button. 
Для кастомных кнопок  formcomponentsectioncomponent→button. 
Параметр action. Пространство имен: <ui xmlns="http://www.intertrust.ru/schema/palette/tn-ui">

Определяет действие. которое будет происходить при нажатии на кнопку

<?xml version='1.0' encoding='UTF-8'?>
<ui
	xmlns="http://www.intertrust.ru/schema/palette/tn-ui">
	<form schema-ref="{schema name}" id="{id}">

		<!-- system action -->
		<component>
			<button name="{name}">
				<properties>
					<hide>
						<negative-condition-ref ref="read"/>
					</hide>
				</properties>
				<hint-pop-up>{hint}</hint-pop-up>
				<action position=10>
					<system name="http://intertrust.ru/cmj/relations#copy"/>
				</action>
			</button>
		</component>

		<!-- custom action -->
		<section id="RootMenu">
			<component>
				<section id="{id}" name="{name}">
					<component>
						<button name="{name}">
							<properties>
								<hide>
									<negative-condition-ref ref="read"/>
								</hide>
							</properties>
							<action position=20>
								<custom>
									<create schema-ref="{schema name}">
										<module ident="{module}"/>
									</create>
								</custom>
							</action>
						</button>
					</component>
				</section>
			</component>
		</section>

		<!-- custom button -->
		<section id="{id}" name="{name}">
			<component>
				<section id="{id}" name="{name}">
					<component>
						<button name="{name}">
							<properties>
								<disabled>
									<negative-condition-ref ref="read"/>
								</disabled>
							</properties>
							<action>
								<custom>
									<operation save-context="true">
										<handler-ref ref="{operation name}"/>
									</operation>
								</custom>
							</action>
						</button>
					</component>
				</section>
			</component>
		</section>
	</form>
</ui>

attributes

ПараметрыОписание

position

Позиция в линейке меню

system

Системные действия

ПараметрыОписание

name

Название системного действия или ссылка на него

custom

Настраиваемые действия

ПараметрыОписание

operation

Обработчик операций

create

Создание корневого tunable-object

create-sibling

Создание нового tunable-object на одном уровне с контекстным

create-child

Создание подчиненного tunable-object

create-copy

Создание нового tunable-object как копии

save

Сохранение нового tunable-object

save-existing

Сохранение существующего tunable-object

open-edit

Открытие tunable-object в режиме редактирования

open-link

Открытие документа по ссылке

update-by-link

Обновление контекстного документа по ссылке

update-linked-doc

Обновление контекстного документа, с помощью диалога выбора связанного документа
Статус

КомментарийДополнительный комментарий

Теги и атрибуты: