Google Analytics

Friday, March 31, 2017

Oracle ADF --> Another user has changed the row with primary key oracle.jbo.Key

If you see below message it may be due to same record edit by several users of some db posting field format mismatch or other reason.

Another user has changed the row with primary key oracle.jbo.Key[AAAR7eAABAAAU0WAAM ].

Please read blow article for full insight

https://community.oracle.com/blogs/amaan_junaid/2015/12/05/adf-another-user-have-changed-the-row-with-primary-key-oraclejborowinconsistentexception-jbo-25014. Presentation

Tuesday, March 7, 2017

SQL - Order by case to sort specific data as first record

Oracle ADF Lov contains "N/A" value and need to show this value always as the first value in the LOV

http://stackoverflow.com/questions/3666890/sql-server-order-by-case Presentation

Thursday, March 2, 2017

ADF 12C Hot deployment

Steps to support Hot deployments

>Configure Jdeveloper to "Fast Swap". Go to JDeveloper Preferences --> Run --> WebLogic
>Rebuild ViewController to change effect without rerunning the application before run.

More details in below link
https://blogs.oracle.com/shay/entry/hotdeployment_in_jdeveloper_12c_don Presentation

Thursday, February 23, 2017

Oracle ADF Delete action delete all the rows in the table

We found an issue, which delete all the rows in the DB table , though we need to delete only one record. We delete using PL/SQL.

We found this is due to we define the PL/SQL input parameter name same as delete table column name. Then we rename the proc to change the email parameter as p_email. Presentation

FUNCTION DELETE_INTERVIEW_ROWS (email IN VARCHAR2)

RETURN VARCHAR2 AS

wk_message varchar2(100);

    BEGIN

        DELETE FROM  INTERVIEW interv
        WHERE interv.EMAIL = email;

        wk_message := 'Success';
        commit;

        return wk_message;

        EXCEPTION
            WHEN OTHERS THEN
            wk_message := 'Not Success';
            return wk_message;

    END;

----------------------------------------------
SOLUTION

FUNCTION DELETE_INTERVIEW_ROWS (p_email IN VARCHAR2)

RETURN VARCHAR2 AS

wk_message varchar2(100);

    BEGIN


        DELETE FROM  INTERVIEW interv
        WHERE interv.EMAIL = p_email;

        wk_message := 'Success';
        commit;

        return wk_message;

        EXCEPTION
            WHEN OTHERS THEN
            wk_message := 'Not Success';
            return wk_message;

    END;
----------------------------------------------

Oracle ADF Table row selection button not get current row

When click on ADF table button on a row not show the current row details in the popup

In this case table selection listener over write and make current property execute in the bean method.
We found the the cause for this issue is the queryListner. We removed below property and found the solution.

queryListener="#{bindings.InterviewVOQuery.processQuery}"

Update - 2017.03.02
------------------------

I have found a solution for this. By removing the QueryListner we are disabling the filler functionality. Therefore we need to set popup content delivery to 'immediate' and partialTrigger the table.

Please follow the below link.
https://blogs.oracle.com/shay/entry/popup_details_for_a_table_reco

Update - 2017.03.14
------------------------
However with above solution we are loosing the filterable feature. Therefore we found the perfect
solution in below blog.

http://dstas.blogspot.com/2010/08/column-button-in-read-only-table-edit.html

Tuesday, February 21, 2017

ADF Button action listener is not working

>First we need to segregate the issue. For an example, let's say you try to save form data and "Save" button action listener not working.

> Just put the "immediate"  property value to the button. Immediate property submit the form data without consider any Exceptions. In ADF some exceptions, specially required = "true"  exceptions hide behind the components. So we can find out this issue due to any exceptions.

Monday, February 13, 2017

ADF Application Module started but not loading

This is due to JAVA_HOME not exist. However after set the java home correct path in Environment variable and change the java home path in Model and ViewController via IDE,

Then rename the Default domain.