Page History
ラジオ・グループの各エントリーは、作業リストのエントリー、またはラジオ・グループのプロパティでハードコーディングされた一連のアイテムによって定義されています。
作業リストを使用する場合
グループのラジオ・ボタンを定義するために作業リストを使用する場合、選択された値を格納するフィールドと選択肢オプション用の作業リストをWEB_MAPに定義したWebroutineを作成する必要があります。LANSAエディターでWebroutine用に生成されたXSLを開き、以下の手順に従ってください。
- [ウェブレット テンプレート]タブをクリックし、上にあるドロップダウン・リストから[標準ウェブレット]を選択、[ラジオ グループ]ウェブレットを見つけてください。
- ラジオ・グループ・ウェブレットを、値を格納するフィールド上にドラッグし、マウスの左ボタンを離してください。(フィールド記述は削除しても構いません。)これによりデフォルト値のラジオボタンの設定が表示されます。
- ウェブレットをクリックして、[詳細]タブを確認します。nameプロパティとvalueプロパティにウェブレットをドラッグしたフィールドを示す値が設定されていることを確認してください。valueプロパティは、このフィールドに現在入っている値を使って、Webページ表示の際に選択された状態のラジオボタンが設定されることを示しています。ラジオボタンの値が変更されると、適切な値がnameプロパティに指定されたフィールドに入れられます。この場合、同じフィールドになります。
listnameプロパティをWEB_MAPに送る作業リストに変更します。ラジオ・グループの表示はすぐに、識別子のない一連のボタンに変更されます。
codefieldプロパティとcaptionfieldプロパティに作業リストの適切なフィールドを設定します。
itemsプロパティを使用する場合
radio groupプロパティにハードコーディングされた一連のアイテムを使用するには、WEB_MAPにフィールドを指定したWebroutineを作成する必要があります。LANSAエディターでWebroutine用に生成されたXSLを開き、以下の手順に従ってください。
- [ウェブレット テンプレート]タブをクリックし、上にあるドロップダウン・リストから[標準ウェブレット]を選択、[ラジオ グループ]ウェブレットを見つけてください。
- ラジオ・グループ・ウェブレットを、値を格納するフィールド上にドラッグし、マウスの左ボタンを離してください。(フィールド記述は削除しても構いません。)これによりデフォルト値のラジオボタンの設定が表示されます。
- ウェブレットをクリックして、[詳細]タブを確認します。nameプロパティとvalueプロパティにウェブレットをドラッグしたフィールドを示す値が設定されていることを確認してください。valueプロパティは、このフィールドに現在入っている値を使って、Webページ表示の際に選択された状態のラジオボタンが設定されることを示しています。ラジオボタンの値が変更されると、適切な値がnameプロパティに指定されたフィールドに入れられます。この場合、同じフィールドになります。
- itemsプロパティの省略記号(...)のボタンを選択して、ラジオボタンとして使用するアイテムのリストを設定します。引き続きラジオボタンに必要なエントリーの定義を行います。
Each entry in a radio button group is defined by an entry in a working list or a set of items hard coded in the radio group properties.
If you use a working list:
To use a working list to define the radio buttons in the group, you need to create a webroutine that specifies a field to store the selected value and the working list of options in the WEB_MAP. When you open the XSL generated for the webroutine in the LANSA Editor:
1. Click on the Weblets tab, select Standard Weblets from the drop-down list near the top and locate the Radio Group weblet.
2. Drag the Radio Group weblet onto the field to store the value and release the left-mouse button. (You may want to delete the field description). This will display with default radio button settings.
3. Click on the weblet to review the Details tab. Notice that the name and value properties have been set to indicate the field you dragged the weblet on to. The value property indicates that on presentation of the web page any value currently in this field will be used to set the selected radio button. When the radio buttons value is changed the appropriate value will be place in the field nominated on the name property – in this case the same field.
Change the listname property to the working list passed on the WEB_MAP. The radio group representation should immediately change to a set of buttons without identifiers.
Set the codefield and captionfield properties to the appropriate fields from the working list.
If you use the items property:
To use a set of items hard coded in the radio group properties, you would need to create a webroutine that specifies a field in its WEB_MAP. When you open the XSL generated for the webroutine in the LANSA Editor:
1. Click on the Weblets tab, select Standard Weblets from the drop-down list near the top and locate the Radio Group weblet.
2. Drag the Radio Group weblet onto the field to store the value and release the left-mouse button. (You may want to delete the field description). This will display with default radio button settings.
...