Versions Compared

Key

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

リストのカラムにクリック可能イメージを使用するには、WEB_MAPに*BOTH もしくは *OUTPUTを指定したWebroutineを作成する必要があります。LANSAエディターで生成したXSLを開き、以下の手順でリストのカラムをクリック可能イメージとして機能するように変更することができます。

[ウェブレット テンプレート]タブをクリックし、上にあるドロップダウン・リストから[標準ウェブレット]を選択、[クリック可能イメージ]ウェブレットを探します。

クリック可能にしたいリストのカラムに、これをドラッグ・アンド・ドロップします。すると、カラムにイメージが表示されるように変更されます。カラムのこの項目をクリックしてから、[詳細]タブをクリックしてください。クリック可能イメージ・ウェブレットのnameプロパティとvalueプロパティが、ドロップされたフィールドに従って既に設定されていることを確認してください。

currentrowhfieldプロパティ及びcurrentrownumvalプロパティを、プロパティ記述の説明通りに設定します。

on_click_wrnameプロパティにイメージがクリックされたときに呼び出されるWebroutineの名前を設定してください。Webroutineが現在のWebroutineと異なるWAMにある場合は、on_click_wamnameプロパティも設定する必要があります。

To use a clickable image with a column in a list, you would need to create a webroutine that specifies the list in its WEB_MAP as *BOTH or *OUTPUT. When you open the generated XSL in the LANSA Editor, you can change a column of the list to function as a clickable image as follows:

Click on the Weblets tab, select Standard Weblets from the drop-down list near the top, and locate the Clickable Image weblet.

Drag and drop it onto the column in your list you want to be clickable. The column's appearance changes to show that it is now an image. 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 anchor weblet have already been set according to the field upon which it was dropped.

Set the currentrowhfield and currentrownumval properties as described in the property descriptions.

Set the on_click_wrname property to the name of the webroutine to be invoked when the hyperlink is clicked. If the webroutine is in a different WAM to the current webroutine then you will need to set the on_click_wamname property as well.