Tuesday, July 12, 2016

SelectManyChoice issue






https://blogs.oracle.com/jdevotnharvest/entry/how_to_access_selected_rows

Tuesday, May 24, 2016

Difference between standard JARs and ADF library jars

An ADF library differs from standard JARs in that the ADF library includes additional metadata files and constructs required for ADF application development.

http://one-size-doesnt-fit-all.blogspot.ca/2010/11/using-ojdeploy-and-ant-for-creating-adf.html

Wednesday, April 20, 2016

ADF sql wrapping and setNestedSelectForFullSql



FAQ #12 - How to disable query "wrapping" for expert mode queries in ADF 11g

http://jdeveloperfaq.blogspot.ca/2010/02/faq-12-how-to-disable-query-wrapping.html

    @Override
    protected void create() {
        super.create();
        setNestedSelectForFullSql(false);

    }

Friday, January 22, 2016

ADF : Filter View Object Rows


http://mahmoudoracle.blogspot.ca/2012/08/adf-filter-rows.html

1- Filter ViewObject

     //Get ViewObjectImpl object  
     ViewObjectImpl vo = getDeptVO();  
       
     //Filter using specific attribute value  
     Row[] filteredRows = vo.getFilteredRows("AttributeName", "AttributeValue");  
   
     //Filter using RowQualifier Class  
     //Use RowQualifier if you have more than one condition in filtering rows  
     RowQualifier rowQualifier = new RowQualifier(vo);  
     rowQualifier.setWhereClause("AttributeName=AttributeValue");  
     filteredRows = vo.getFilteredRows(rowQualifier);  

2- Filter RowSetIterator

     //Get ViewObjectImpl object  
     ViewObjectImpl vo = getAllAdvisorView();  
          
     //Get RowSetIteratorImpl object  
     RowSetIterator rsIterator=vo.createRowSetIterator(null);  
       
     //Filter using specific attribute value  
     Row[] filteredRowsRSI = rsIterator.getFilteredRows("AttributeName", "AttributeValue");  

Monday, November 16, 2015

Remove the close icon from task flow opened in dialog


How-to remove the close icon from task flows opened in dialogs 

https://blogs.oracle.com/jdevotnharvest/entry/how-to_remove_the_close_icon_from_task_flows_opened_in_dialogs_11114

Wednesday, October 14, 2015

Create a new row programmitically

Several ways to create new row:

createrow() or createAndIntRow()
http://mahmoudoracle.blogspot.ca/2012/03/insert-rows-in-adf-view-object.html

control the insert location in table
https://mjabr.wordpress.com/2011/07/02/how-to-control-the-location-of-the-new-row-in-aftable/

Thursday, September 24, 2015

ADF action binding with Generics

ADF binding does not support Generics See below,

https://community.oracle.com/message/4304798

For example, in AM you have List<Long> getListCount() {}, you will get following exception.

Go to binding source, change following

<NamedData NDName="testList" NDType="java.util.List&lt;java.lang.Long>"/>
to
<NamedData NDName="testList" NDType="java.util.List"/>


Exception
oracle.jbo.InvalidOperException: JBO-25221: Method TestAppModuleDataControl.dataProvider.doSomethingWithList() not supported
     at oracle.adf.model.binding.DCInvokeMethod.invokeMethod(DCInvokeMethod.java:491)
     at oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:2134)
     at oracle.adf.model.bc4j.DCJboDataControl.invokeMethod(DCJboDataControl.java:3020)