totalRowコンポーネントを使用すると、ユーザーは表の1列以上の合計値を更新できます。このコンポーネントは、エージェントのタイプがpda、phoneおよびvoiceの場合にはサポートされません。
totalRowコンポーネントは、tableコンポーネントの名前付きの子totalで使用する必要があります。このように使用すると、ADF UIXにより表のフッターに合計行が作成されます。この合計行にはボタンが用意され、その後ろにはtotalという文字列が続きます。デフォルトでは、ボタンには「再計算」という文字列が各国語版で表示されます。ボタンの文字列を変更するには、totalRowのtext
属性を、任意の文字列に設定します。
この他に、totalRowに設定できる属性は次のとおりです。
destination
: このボタンが参照するURIを指定する属性です。
readOnly
: ボタンをレンダリングするかどうかを決定するブール値を指定する属性です。デフォルトはfalseです。
ボタンのリンクは、リンク先の属性に基づいて生成されたURLです。親表のformSubmitted属性がtrueに設定されている場合は、フォームの送信リンクがかわりに生成されます。送信される表のフォーム・フィールドと値のペアは、次のとおりです。
これと同じ2つのキーと値がURLリンクのイベントでのパラメータとしても送信されます。
注意: totalRowコンポーネントでは計算は実行されません。自分で合計を計算し、それをtextInputフィールドに表示する必要があります。更新した合計に合せて、入力フィールドのあるcolumnコンポーネントのfooterの子を設定します。
...
<table id="tb2"
tableData="${uix.data.demoTableData.demoRowData}"
rowHeaderData="${uix.data.demoTableData.demoRowHeaderData}">
<contents>
<column>
<columnHeader>Row</columnHeader>
<contents>
<text text="${uix.current.firstColumnText}"/>
</contents>
</column>
<column>
<columnHeader>Text</columnHeader>
<contents>
<styledText text="${uix.current.secondColumnText}"/>
</contents>
</column>
<column>
<columnHeader>Amount</columnHeader>
<columnFormat columnDataFormat="numberFormat"/>
<contents>
<text text="${uix.current.thirdColumnText}"/>
</contents>
<!-- This column footer child is used with totalRow -->
<footer>
<textInput columns="2" name="sometotal" text="42"/>
</footer>
</column>
</contents>
<!-- footer child of table contains tableFooter -->
<footer>
<tableFooter>
<!-- total named child of tableFooter contains totalRow -->
<total>
<totalRow>
<contents/>
</totalRow>
</total>
</tableFooter>
</footer>
...
</table>
...
tableFooterおよびtotalについて
addTableRowについて
tableFooter、addTableRowおよびtotalRowについて
columnへのfooterの挿入
tableコンポーネントの使用
Copyright © 1997, 2004, Oracle. All rights reserved.