Добавить с схему новое свойство
Создать в схеме два новых свойства string
Блок кода | ||||
---|---|---|---|---|
| ||||
<?xml version='1.0' encoding='UTF-8'?>
<schemas xmlns="http://www.intertrust.ru/schema/palette/tn-schema">
<schema extends="RkkResource" name="RkkResourceExample">
<!--....-->
<string name="text"/>
<string name="showText" computed="true" temporal="true">
<calc-values>
<script event="open" lang="SPEL"><![CDATA['В невесомости пассажиры будут находиться всего пять минут, но сколько же впечатлений эти мгновения смогут подарить человеку.']]></script>
</calc-values>
</string>
<!--....-->
</schema>
</schemas> |
Добавить на форму новое поле
Добавить в схему формы новые поля, с ссылкой на св-ва схемы
Блок кода | ||||
---|---|---|---|---|
| ||||
<?xml version='1.0' encoding='UTF-8'?>
<ui xmlns="http://www.intertrust.ru/schema/palette/tn-ui">
<form schema-ref="RkkResourceExample" id="RkkResourceExampleForm" projection="default" showtabs="true">
<appearance widget="tabs"/>
<component>
<!--...-->
<section id="field_type" name="${ui.form.RkkResourceExample.field_type.name:Тип поля}">
<component>
<section id="section_text" name="${ui.form.RkkResourceExample.field_type.string.name:Teкст}">
<appearance turn="true"/>
<component>
<field attribute-ref="showText" name="${ui.form.RkkResourceExample.Attributes.showText.name:Текст (computed):}"/>
<field attribute-ref="text" name="${ui.form.RkkResourceExample.Attributes.text.name:Текст:}"/>
</component>
</section>
</component>
</section>
<!--...-->
</component>
</form>
</ui> |