Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to display/print the column values from application module

9014969Apr 17 2016 — edited Apr 17 2016

Hi All,

Jdev version:12.1.3

I have a query: I want to display/print one particular column value from application module. to do this please find the below method to display department_Name values from Department table.

    public void getDeptVO(){

        ViewObjectImpl deptVo = this.getDepartmentsVO1();

        deptVo.setRangeSize(-1);

        Row[] deptRow = deptVo.getAllRowsInRange();

        for(int i=0;i<deptRow.length;i++){

            DepartmentsVORowImpl deptVR = (DepartmentsVORowImpl)deptRow[i];

            System.out.println("elements are:"+deptVR.getAttribute("DepartmentName"));

            }

        }

It is working fine. But this method fetches all the columns in the table to display one column values.

Could any help me on how to fetch only one column values to display/ print them.

Thanks in Advance,

Surya.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 15 2016
Added on Apr 17 2016
2 comments
921 views