Добавить с схему новое свойство
Создать в схеме два новых свойства string На корневую схему добавляется св-во 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"comments"> <calc-values> <script event="open" lang="SPEL"><![CDATA['В невесомости пассажиры будут находиться всего пять минут, но сколько же впечатлений эти мгновения смогут подарить человеку.']]></script> <storage-field name="comments"/> </calc-values> string> </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_typeAttributes" name="${ui.form.RkkResourceExamplesection.field_typeAttributes.name:Тип поляРеквизиты}"> <!--....--> <component> <section id="section_text <field attribute-ref="comments" name="${ui.form.RkkResourceExampleAttributes.field_typecomments.string.name:Комментарий:Teкст}"> <appearance turn <appearance multiline="true"/> <component> <label-style> <field attribute-ref="showText" name="${ui.form.RkkResourceExample.Attributes.showText.name:Текст (computed):} <style id="tunBorderedFieldLight"/> </label-style> <field attribute-ref="text" name="${ui.form.RkkResourceExample.Attributes.text.name:Текст:} <limit height="2" max-height-scroll="2" max-lenght="1024"/> </appearance> </field> </component> <!--....--> </section> </component> </section> <!--...--> </component> </form> </ui> |