Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

ラジオボタンは常に2つ以上のラジオボタンのグループで表示する必要があります。Webページに追加した各ラジオボタンは通常、WebroutineのWEB_MAPに含まれるフィールドに対応しています。LANSAエディターでWebroutine用に生成されたXSLを開き、以下の手順に従ってください。

  1. [ウェブレット テンプレート]タブをクリックし、上にあるドロップダウン・リストから[標準ウェブレット]を選択、[ラジオ ボタン]ウェブレットを見つけてください。
  2. ラジオ・ボタン・ウェブレットをWEB_MAP定義により生成されたフィールドの上にドラッグしてください。(フィールド記述は削除しても構いません。)これによりデフォルト値のラジオボタンの設定が表示されます。
    Image Added
  3. ウェブレットをクリックして、[詳細]タブを確認します。nameプロパティとvalueプロパティにウェブレットをドラッグしたフィールドを示す値が設定されていることを確認してください。valueプロパティは、Webページ表示の際にこのフィールドに現在入っている値がcodeプロパティと比較され、このラジオボタンがチェックされるべきか決定されることを示しています。ラジオボタンの値が変更されると、適切な値がnameプロパティに指定されたフィールドに入れられます。この場合、同じフィールドになります。
  4. captionプロパティを必要に応じて設定し、codeプロパティがcaptionに必要な値と一致していることを確認します。

A radio button should always be displayed as a group of two or more radio buttons. Each radio button you add to the web page will usually correspond to a field included on WEB_MAP of a webroutine. 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 Button weblet.
2.  Drag the Radio Button weblet over the field generated from your WEB_MAP definition. (You may want to delete the field description). This will display with default radio button settings.

Image Removed

...