Page History
リスト欄のチェックボックスを使って、データ項目や選択状況を示すのが一般的な使用方法です。そのためには、WEB_MAPでリストを指定したWebroutineを作成する必要があります。LANSAエディターで生成されたXSLを開き、次の手順でリストのカラムをチェックボックスとして機能するように変更します。
[ウェブレット テンプレート]タブをクリックし、上にあるドロップダウン・リストから[標準ウェブレット]を選択、[チェックボックス]ウェブレットを探します。
このチェックボックス・ウェブレットをリストのカラム上にドラッグし、マウスの左ボタンから手を離します。すると、カラムにチェックボックスが表示されるように変更されます。カラムのこの項目をクリックしてから、[詳細]タブをクリックしてください。チェックボックス・ウェブレットのnameプロパティとvalueプロパティが、ドロップされたフィールドに基づいて既に設定されていることを確認してください。
必要に応じて、captionプロパティを設定します。リスト内で使用する場合、キャプションを使用する必要はありません。キャプションを削除するには、テキストを含まずに2つの引用符を使って、空の文字列を指定します。
オン/オフや選択/非選択状態を示すために、アプリケーション中で使用する値に基づいてoncodeプロパティ及びoffcodeプロパティを設定することもできます。
It is common to use a checkbox with a column in a list to indicate a data item or selection state. To do so you would need to create a webroutine that specifies the list in its WEB_MAP. When you open the generated XSL in the LANSA Editor, you can change a column of the list to function as a checkbox as follows:
Click on the Weblets tab, select Standard Weblets from the drop-down list near the top and locate the Checkbox weblet.
Drag the Checkbox weblet over the column in your list and release the left-mouse button. The column's appearance changes to show that it is now a checkbox. Click on an item in the column and then click on the Details tab. You should see that the name and value properties for the checkbox weblet have already been set according to the field upon which it was dropped.
Set the caption property as required. When used in a list you may not wish to use a caption – to remove the caption, specify an empty string by specifying two quote marks with no contained text.
You may need to set the oncode and offcode properties according to the values used in your application to represent the on and off or selected and unselected states.