biz-Streamマニュアル XMLページレイアウトタグ リファレンス 第13章 フォーム 13.10 コンボボックス<form:combo-box>

13.10 コンボボックス<form:combo-box>


13.10.1機能説明

コンボボックスのフォーム定義を行います。



13.10.2属性説明

1form:combo-box属性説明
属性名指定説明指定内容初期値
name必須フォームの名前CDATA
field-name必須フォームフィールドのフィールド名CDATA
x任意X座標CDATA0
y任意Y座標CDATA0
unit任意単位(Choice)mm / cm / in / px / ptmm
width必須フォームの幅CDATA
height必須フォームの高さCDATA
border-color任意枠線の色CDATA
border-width任意枠線の幅CDATAthin / normal / thicknormal
border-style任意枠線のスタイルsolid / dashed / beveled / inset / underlinedsolid
background-color任意背景の色CDATA
text-align任意テキストの配置(水平方向)(Choice)left / center / rightleft
hidden任意フォームフィールドの表示(Choice)true(表示しない) /
false(表示する)
true
print任意フォームフィールドの印刷(Choice)true(印刷する) /
false(印刷しない)
true
read-only任意表示専用(Choice)true(表示専用) /
false(クリック可)
false
multi-select任意複数選択(Choice)true(許可する) /
false(許可しない)
false
edit任意編集(Choice)true(許可する) /
false(許可しない)
true
spell-check任意スペルチェック
※edit="true"の時のみ反映
(Choice)true(行う) /
false(行わない)
false


2form:list-values属性説明
属性名指定説明指定内容初期値
display-value任意項目CDATA
select任意選択の初期値(Choice)true(選択する) /
false(選択しない)
false
  • (注) 初期値:出荷時のXMLデフォルト情報(default_values.properties)値を表します。ユーザにより値の変更が行われた場合は内容が異なります。


13.10.3記述例

form:combo-boxサンプル1

form:combo-boxサンプル1
(『<biz-Stream_home>/sample/xml/form_combobox/form_comboboxSample1.xml』)

<?xml version="1.0" encoding="UTF-8"?>
<!-- XML file created by biz-Stream Designer -->
<!-- biz-Stream Copyright BrainSellers.com Corp. -->
<Layout Name="form:combo-boxSample1" Width="45" Height="70" X="5" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:bs="http://www.brainsellers.com/schema" xmlns:svg="http://www.brainsellers.com/schema" xmlns:form="http://www.brainsellers.com/schema" xmlns:pdf="http://www.brainsellers.com/schema" version="5.0.0">
    <form:combo-box name="Address" y="40" width="30" height="5" font-family="MSGothic" border-width="normal" border-style="solid" hidden="false" print="true" read-only="true" multi-select="false" edit="false" spell-check="false">
        <form:list-values select="false">Tokyo</form:list-values>
        <form:list-values select="true">Osaka</form:list-values>
        <form:list-values select="false">Taiwan</form:list-values>
    </form:combo-box>
    <form:combo-box name="department" y="30" width="30" height="5" font-family="MSGothic" border-width="normal" border-style="solid" background-color="204,255,255" hidden="false" print="true" read-only="false" multi-select="false" edit="true" spell-check="true">
        <form:list-values display-value="総務部" select="false">General Affairs</form:list-values>
        <form:list-values display-value="人事部" select="false">Human Affairs</form:list-values>
    </form:combo-box>
    <form:combo-box name="document" y="20" width="30" height="5" font-family="MSGothic" border-color="255,0,0" border-width="normal" border-style="solid" hidden="false" print="true" read-only="false" multi-select="true" edit="false" spell-check="false">
        <form:list-values display-value="休暇届" select="false">1</form:list-values>
        <form:list-values display-value="保養地利用申請書" select="false">2</form:list-values>
        <form:list-values display-value="異動願" select="false">3</form:list-values>
    </form:combo-box>
    <form:submit-button name="submit1" x="10" y="5" width="10" height="6" font-family="MSGothic" border-width="normal" border-style="solid" hidden="false" print="true" read-only="false" method="POST" format="XML" uri="mailto:technical@brainsellers.com">送信</form:submit-button>
</Layout>

生成されるPDF(『<biz-Stream_home>/sample/xml/form_combobox/form_comboboxSample1.pdf』)

コンボボックス

<Addressフィールド>
 ・select属性にtrueが指定されている項目のcontent(#PCDATA)が書き出されています。

<departmentフィールド>
 ・新しく追加した項目「営業部」が書き出されています。
 (edit属性にtrueが指定されているため項目の編集が可能)

<documentフィールド>
 ・デフォルトで選択されている項目から変更が行われなかったため、データは書き出されていません。