Automatically generate a row number for the table in the ADF.

Source: Internet
Author: User

Overview
In some business requirements, you need to add a line number to the data displayed in the form of a table to make the display clearer. This article describes how to easily automatically generate a line number in the ADF.

Implementation
1. Create an ADF application, create entity object and view object in the model project based on the departments table in the HR schema, and then create the application module, add the newly created view object instance to the data model Panel of the application module.

2. Create the main. jspx page in viewcontroller project, drag the VO instance corresponding to the parameters from the "Data Controls" panel to the page, create a table, and check the "filtering" option.

3. Use panel collection outside the table for layout. Filter rows are hidden by default.

4. In the table attribute, you can see that there is an attribute named "varstatus", in which the default value is

 

5. Add a new column to the table created above as the column occupied by the row number, drag the output text to the column, and fill in the value of the output text as # {. index + 1}

6. Save the application and run the project

This article is transferred from Oracle Seeker: http://oracleseeker.com/2010/01/21/adf_auto_row_number/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.