Tuesday, June 28, 2016

Tuesday, June 21, 2016

Iterate over the rows ADF

  
import oracle.jbo.Row; 
//interface


  public String iterateRows(){
    DCIteratorBinding itr = ADFUtils.findIterator("ExampleVO1Iterator");
      Row[] rows = (Row[]) itr.getAllRowsInRange();
      String retval = "false";
      for (int i = 0; i < rows.length; i++) {
         
           
                System.out.println("inside Iterator loop: value of Attribute is ****** "+rows[i].getAttribute("AttributeName"));
                if (rows[i].getAttribute("AttributeName").equals("OUT_LINE")) {
                    retval = "true";
                }
                       
    }
    return retval;

}

Delete Default Domain of Intergrated Weblogic Server ADF JDeveloper

C:\Users\vsadhu\AppData\Roaming\JDeveloper

Monday, June 20, 2016

Deploy ADF application as lib (adflib jar) to WLS; & Refer an ADF lib in an ADF application (ear)


adfJar App;


  • Create MANIFEST.MF file; define the properties of the lib here  (SampleApp->SampleUI->/src->/META-INF->/create a file MANIFEST.MF)

  • Deploy UI project as adflib jar to WLS


EAR app:


  • Create a weblogic.xml descriptor file and provide the referring 'lib' name(SampleApp\SampleUI\public_html\WEB-INF\(weblogic.xml))

  • Make sure lib is not being deployed by default from the EAR application

Imp;

Make sure the lib is depolyed first before deplloyiong the main app (ear)



ref: andrejusb.blogspot.com;rohanwalia.blogspot.sg

Wednesday, June 15, 2016

Export to Excel Java

http://thinktibits.blogspot.com/2012/12/Excel-Multiple-Conditional-Formatting-Rules-Java-POI-Example-Program.html

https://examples.javacodegeeks.com/core-java/writeread-excel-files-in-java-example/

http://thinktibits.blogspot.com/2014/08/apache-poi-freeze-pane-excel-java.html

ADF:
https://drive.google.com/file/d/1m1bvkrEF4qOr9ZCn1UVMaK1HLyWqorwR/view?usp=sharing

Monday, June 6, 2016

Groovy Expression to get SUM of a column in View Object Attribute ADF


Don't forget to create a ***'View Accessor' to itself and use sum keyword  and attribute name in "in double quotes" ("Attribute Name") in the expression field of the transient attribute

Saturday, June 4, 2016

Use standalone adf jar to Weblogic Server ADF Shared Library

http://rohanwalia.blogspot.sg/2015/02/adf-shared-library-deploy-adf-library.html



Use SharedLibrary in an ADF Application
https://drive.google.com/drive/folders/0Bx_TOu5KSyYrNnVoY25lVDFlMnM?usp=sharing

Thursday, June 2, 2016

Tail last 500 lines in nohup.out UNIX/LINIX

tail -500 nohup.out | less

Add Title to Page Template ADF

1st define the attribute in the page template


2nd set the output text value to the attribute define in the page template


3rd set in the jspx page where you inherit the template