Friday, August 24, 2012

How to increase Local weblogic server log level


If you have to see the more detailed logs in your  local weblogic server ( Jdeveloper) logs, set the below -D property in a project


- Right click on the project, ( If you are running any UI component, then choose ViewController) Project Properties -> Run/Debug/Profile -> Select 'Default' Configuration -> Edit
- Paste below -D command as shown below.

-Djbo.debugoutput=console


How to change the Log level in EM

login to EM via:  https://fortunemindssoa.com/em

2) navigate on the left side:  WebCenter -> Portal -> Spaces

3) select WebCenter Portal (11.1.1) (WC_Spaces1)

4) from pulldown menu at top navigate:  Logs -> Log Configuration

5) Make sure Runtime Loggers view is selected

6) For  Root Logger  change from  TRACE:32 (FINEST) to WARNING:1 (WARNING)

7) click APPLY

8) select WebCenter Portal (11.1.1) (WC_Spaces2)

9) from pulldown menu at top navigate:  Logs -> Log Configuration

10) Make sure Runtime Loggers view is selected

11) For  Root Logger  change from  TRACE:32 (FINEST) to WARNING:1 (WARNING)

Monday, August 6, 2012

How to create a new row at specific index

Greetings !!

  I would like to briefly explain about inserting a new row in a view object at a specified index.


Create a method like below in VOImpl, and invoke this method by passing 'Row' and index.


  public void insertRow(EmpVORowImpl pRow,int pIndex)
  {
    int rangesize = getViewObject().getRangeSize();
    getViewObject().setRangeSize(-1);
    super.insertRowAtRangeIndex( pIndex , pRow);
    getViewObject().setCurrentRow(pRow);
    getViewObject().setRangeSize(rangesize);
  }



 

Wednesday, August 1, 2012

How to identify whether a row has been modified or not

There is an easy way to find whether a row has been modified/deleted/created in ADF framework, This works only for Entity based view objects which are based on entity object.


      Iterator tbiter =
        EmployeeEOImpl.getDefinitionObject().getAllEntityInstancesIterator(getDBTransaction());
      while (tbiter.hasNext())
      {
        
EmployeeEOImpl eoImpl = (EmployeeEOImpl) tbiter.next();
if (eoImpl.getEntityState() == Entity.STATUS_NEW || eoImpl.getEntityState() == Entity.STATUS_MODIFIED || eoImpl.getEntityState() == Entity.STATUS_DELETED) {
                  // Add your logic here
        }