1
我有ADF表,我想計算具有特定列值的行數。 例如:ADF表 - 具有特定值的行數
ID Sex
1 Male
2 Female
3 Male
4 Male
我想在表的末尾顯示
總數
<af:outputText value="Total number of rows #{bindings.VO.estimatedRowCount}"
id="ot16" partialTriggers="cb1 cb2"/>
他們中有多少是「男」?
Total number or rows 4
Males are 3
我可以從sql語句計數,但我問是否有簡單的方法來獲取它在ViewController –
使用sql語句是一個很好的解決方案 –