Thursday, May 4, 2017

Freeze Columns in af:table ADF

The above link demonstrates how to freeze certain columns in af:table and scroll the remaining part

https://codigoadf.wordpress.com/2016/08/18/frozen-columns-in-table/

Tuesday, April 25, 2017

Check duplicate rows in View object ADF

    /**Method to check for duplicate rows
     * @param fileNm
     * @return
     */
    public String checkDuplicateRows(String fileNm) {
        ViewObject fileVo = this.getFileViewObject();
        Row duplFile[] = fileVo.getFilteredRows("FileName", fileNm);
        if (duplFile.length > 0) {
            return "Duplicate_Row_Exists";
        } else {
            return "No_Duplicate_Exists";
        }
    }

Other ways could be @ http://adfknowhow.blogspot.com/2015/01/how-to-filter-rows-in-vo.html

Monday, March 27, 2017

af:menu ADF

JUCtrlListBinding in adf

https://docs.oracle.com/cd/B14099_19/web.1012/b14022/oracle/jbo/uicli/binding/JUCtrlListBinding.html
https://blogs.oracle.com/jdevotnharvest/entry/how_to_access_selected_rows

A JUCtrlAttrsBinding class responsible displaying a list of values from a static list or a list calculated at runtime using another BC4J ViewObject/RowIterator. This binding operates in two ways:
  • To update attributes (default - LIST_OPER_SET_ATTRIBUTE)
  • To navigate a set of rows (LIST_OPER_NAVIGATE)

JUCtrlListBinding allDepartsmentList = 
           (JUCtrlListBinding) bindings.get("allDepartments");
    Object[] selVals = allDepartsmentList.getSelectedValues();


Thursday, March 23, 2017

Get the name of the jspx page in the Page Phase Listener PPL ADF

http://www.baigzeeshan.com/2011/05/how-to-run-java-code-on-every-page-load.html

        FacesContext fctx = FacesContext.getCurrentInstance();

        String viewId = fctx.getViewRoot().getViewId();

        System.out.println("Hello Page : " + viewId);

Struck thread error ; on View Object Inserting rows ADF WebLogic

http://dkleppinger.blogspot.com/2012/04/danger-of-using-default-settings-of.html

Friday, March 17, 2017

Expose App Module as Webservice ADF

http://waslleysouza.com.br/en/2014/07/expose-application-module-as-soap-web-service/
http://waslleysouza.com.br/en/2014/10/expose-adf-bc-restful-web-service/
http://www.awasthiashish.com/2015/12/create-rest-web-service-with.html
http://www.awasthiashish.com/2015/12/create-soap-web-service-with.html