Friday, April 5, 2013

ADF VO Record Status Display


When building pages you'll often want to display some kind of record status indicator like: "Record 5 of 25". If you display multiple rows on a page, then you may also want to display a variant like "Record 5-10 of 25". You can build a record indicator like this using simple text components, each of which displays an appropriate value from an iterator binding or table binding using an EL expression. The iterator binding's rangeSize property defines how many rows per page it makes available to display in the user interface. If your page definition contains either an iterator binding named SomeViewIter or a table binding named SomeView, you can reference the following EL expressions:
  • Number of Rows per Page
    #{bindings.SomeViewIter.rangeSize}
    #{bindings.SomeView.rangeSize}
  • Total Rows
    #{bindings.SomeViewIter.estimatedRowCount}
    #{bindings.SomeView.estimatedRowCount}
  • First Row on the Current Page
    #{bindings.SomeViewIter.rangeStart + 1}
    #{bindings.SomeView.rangeStart + 1}
  • Last Row on the Current Page
    #{bindings.SomeViewIter.rangeStart + bindings.SomeViewIter.rangeSize}
    #{bindings.SomeView.rangeStart + bindings.SomeView.rangeSize}
  • Current Row Number
    #{bindings.SomeViewIter.rangeStart + bindings.SomeViewIter.currentRowIndexInRange + 1}
    #{bindings.SomeView.currentRowIndex + 1}

    Source:http://docs.oracle.com/html/B25947_01/bcdcpal005.htm#sthref826



Related Posts Plugin for WordPress, Blogger...