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

13.9 リストボックス<form:list-box>


13.9.1機能説明

リストボックスのフォーム定義を行います。
content(#PCDATA)は、フォームの書き出し値および、項目(display-value属性)指定が無い場合の代わりとして使用されるため、指定が必須となります。ご注意ください。



13.9.2属性説明

1form:list-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


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


13.9.3記述例

form:list-boxサンプル1

form:list-boxサンプル1(『<biz-Stream_home>/sample/xml/form_listbox/form_listboxSample1.xml』)

<?xml version="1.0" encoding="UTF-8"?>
<!-- XML file created by biz-Stream Designer -->
<!-- biz-Stream Copyright BrainSellers.com Corp. -->
<Layout Name="form:list-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:list-box name="Address" y="45" width="30" height="10" font-family="MSGothic" border-width="normal" border-style="solid" hidden="false" print="true" read-only="true" multi-select="false">
        <form:list-values select="true">Tokyo</form:list-values>
        <form:list-values select="false">Osaka</form:list-values>
        <form:list-values select="false">Taiwan</form:list-values>
    </form:list-box>
    <form:list-box name="department" y="30" width="30" height="10" font-family="MSGothic" border-width="normal" border-style="solid" background-color="204,255,255" hidden="false" print="true" read-only="false" multi-select="false">
        <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:list-box>
    <form:list-box name="document" y="15" width="30" height="10" font-family="MSGothic" border-color="255,0,0" border-width="normal" border-style="solid" hidden="false" print="true" read-only="false" multi-select="true">
        <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:list-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_listbox/ form_listboxSample1.pdf』)

リストボックス
  • 選択の初期値(select属性)にtrueが指定されている場合、選択された状態でPDFが生成されます。
  • 表示専用(read-only属性)にtrueが指定されている場合、選択を変更することはできません。
  • 項目(display-value属性)に値が指定されない場合、content
    (#PCDATA)の値が表示されます。
  • 複数選択(multi-select属性)にtrueが指定されている場合、複数を選択することができます。
リストボックス