Page History
リストのカラムでアンカーを使用するには、リストでWEB_MAPに*BOTH もしくは *OUTPUTを指定したWebroutineを作成する必要があります。LANSAエディターで生成したXSLを開き、以下の手順でリストのカラムをアンカーとして機能するように変更することができます。
- [ウェブレット テンプレート]タブをクリックし、上にあるドロップダウン・リストから[標準ウェブレット]を選択、[アンカー]ウェブレットを探してください。
- このアンカー・ ウェブレットをリストのカラムの上にドラッグし、左のマウス・ボタンから手を離します。カラムがアンカーを示すように変更されます。カラムの項目をクリックし、[詳細]タブをクリックしてください。アンカー・ウェブレットのnameやvalueプロパティが、ドロップしたフィールドにもとづいて既に設定されているのを確認してください。
- currentrowhfieldプロパティ及びcurrentrownumvalプロパティを、プロパティ記述の説明通りに設定します。
- on_click_wrnameプロパティにハイパーリンクのクリック時に呼び出すWebroutine名を設定します。Webroutineが現在のWebroutineと異なるWAMにある場合は、on_click_wamnameプロパティにWAM名を設定する必要があります。
To use an anchor 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 an anchor as follows:
- Click on the Weblets tab, select Standard Weblets from the drop-down list near the top and locate the Anchor weblet.
- Drag the Anchor weblet over the column in your list and release the left-mouse button. The column's appearance changes to show that it is now an anchor 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.