# 同じフォルダ階層の「goal」という定義ファイルから
# 各種設定を引き継ぐ
__inherits=goal
# このフォームの表示名
display_name=Product Maintenance Form
# このフォームで使用する入力・選択欄(部品)
schema_elements=project,title,property_due,status,color,content,tags,attachments,property_owners,property_members,property_goal_dashboard_milestones_max,property_edit_desc,property_maintprod_subject,property_maintprod_price,property_maintprod_contract_date,maintprod_category
# フォームのタイトル
form_title=Product Maintenance Form
# フォームのクラス名
# フォームの HTML に出力されるので、CSS による装飾に役立つ
form_class=project-dialog maintprod-dialog
# 投稿ボタンのラベル
form_save=Save Product Maintenance Info
# 「title」欄に自動入力される内容
field_title_value=[[ /token maintprod_title ]]
# 「property_maintprod_subject」欄を入力必須にする
field_property_maintprod_subject_required=true
# 既定で「property_maintprod_subject」欄にフォーカスを当てる
field_property_maintprod_subject_focus=true
# 「property_owners」欄の見出しを変更する
field_property_owners_label=PIC
# 「property_maintprod_subject」欄の Placeholder Text の設定
field_property_maintprod_subject_placeholder_text=Fill-in Subject
# キーボードの [Tab] キーを押したときの
# フォーカスが移動する順序
field_property_owners_tabindex=1016
field_property_members_tabindex=1017
# フォームのレイアウト定義
# sdl=jp.example.sdl.gwtrpc.form#maintprod
sdl=
# 本文にトークンを埋め込む
# 本文より前に表示
entry_content_prepend=[[ /token maintprod_body1 ]]
# 本文より後に表示
#entry_content_append=[[ /token maintprod_body2 ]]
# このフォームを使って投稿される記事のエントリークラス
entry_class=maintprod
__inherits= は、「同じフォルダ階層の中にある定義ファイルから設定を引き継ぎなさい」という意味です。schema_elements= では、この投稿/
project,title,property_due,status,color,content,tags,attachments,property_owners,property_members,property_goal_dashboard_milestones_max,property_edit_desc,property_maintprod_subject,property_maintprod_expiration,maintprod_category
field_部品名_value=
field_title_value= という設定が使用されています。これは、フォームをロードしたときに「title」という名前の部品に [[ /token maintprod_title ]] という内容を自動的に挿入しなさい、という意味です。[[ /token maintprod_title ]] は「maintprod_title」という名前のトークンを実行しなさい、という意味になります。
field_部品名_required=true
ield_property_maintprod_subject_required=true を指定しているので、「property_maintprod_subject」の欄が空白の場合はフォームを投稿できなくなります。
field_部品名_focus=true
field_部品名_label=
field_部品名_placeholder_text=
field_部品名_tabindex=
schema_elements= で指定された部品をどのようにフォーム上に配置するかを SDL ファイルや SDL ファイル中の関数を使って設定でき、sdl= 行でその場所を指定します。sdl=(空白) とすると、「goal」フォームから引き継がれた sdl= 設定が無効になり、(schema_elements= で指定された)部品を上から順に並べるただけの単純なレイアウトになります。sdl=(空白) を指定してレイアウトを単純にし、フォームに部品が正しく表示されるかどうかの確認を行い、それから SDL によるレイアウトを行うようにすることをお勧めします。
sdl=jp.example.sdl.gwtrpc.form#maintprod
/token トークン名 を記述します。
# 本文の前に挿入
entry_content_prepend=[[ /token maintprod_body1 ]]
# 本文の後ろに挿入
entry_content_append=[[ /token maintprod_body2 ]]
# このフォームを使って投稿される記事のエントリークラス
entry_class=maintprod
schema_elements= で指定した各部品の定義を行います。image03.pngShared Files for DocSDK2
image06.png
image04.png
image_props.png