Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Информация
iconfalse
titleПостановка задачи

Создать два текстовых поля на форме. Требования к полям:

  • Первое поле - вычисляемое и нередактируемое
  • Второе поле - доступно для ввода.

Добавить поле комментарий на форму

Подсказка
iconfalse
Инструмент: Палитра XML
Свойства страницы
Статус

Статус
colourGreen
titleГОТОВО

РазделПоле
Комментарий

панель
titleРеализация

Оглавление

панель
titleРезультат
Image Removed


Добавить с схему новое свойство

Создать в схеме два новых свойства string На корневую схему добавляется св-во string

Блок кода
languagexml
titleСхема
<?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="truecomments">
    	<calc-values>
        	<script event="open" lang="SPEL"><![CDATA['В невесомости пассажиры будут находиться всего пять минут, 
но сколько же впечатлений эти мгновения смогут подарить человеку.']]></script>
  <storage-field name="comments"/>
      </calc-values>string> 
    </string>
  	<!--....-->   
  	</schema>
</schemas>

Добавить на форму новое поле

Добавить в схему формы новые поля, с ссылкой на св-ва схемыНа форму добавляется текстовое поле

Блок кода
languagexml
titleФорма
<?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.RkkResourceExample.field_type.stringAttributes.comments.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>