Thursday, March 28, 2013

ADF 11G : How to set the first value for LOV default?



ADF 11G : How to set the first value for LOV default?

s























public Number defaultDepartmentId(){
        Number deptId = (Number)getAttributeInternal(DEPARTMENTID);
        if (deptId == null) {
                 DepartmentsViewRowImpl deptRow = (DepartmentsViewRowImpl)getDepartmentsView1().first();
                 if (deptRow != null) {
                    deptId = deptRow.getDepartmentId();
                 }
              }
              return deptId;
    }