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