How To Create Employee With Designation Report In ADF Attractively

Similar documents
Different color bars chart with Popup Box in ADF

ADF Code Corner How-to launch a popup upon rendering of a page fragment in a region using JSF 2. Abstract: twitter.

Oracle Business Intelligence Publisher

An Oracle White Paper September Exposing WebCenter Services Task Flows as WSRP Portlets and Ensemble Pagelets

ADF Code Corner How-to use Captcha with ADF Faces and Oracle ADF. Abstract: twitter.com/adfcodecorner

Oracle WebCenter Portal 11g Developer Workshop

An Oracle White Paper June Guidelines for Creating Task Flows to Be Used in Oracle Composer-Enabled Pages

Oracle Utilities Customer Self Service

ADF Code Corner How-to show a glasspane and splash screen for long running queries. Abstract: twitter.com/adfcodecorner

ADF Code Corner. 016-How-to customize the ADF Faces Table Filter. Abstract: twitter.com/adfcodecorner

Creating and Using Page Templates in Oracle WebCenter Portal Applications

Developing an ADF 11g client for Agile PLM. Developing an ADF 11g client for Agile PLM

Oracle Retail Accelerators for WebLogic Server 11g

Oracle WebCenter 11g PS3 Administration Cookbook

... AND UIX BEGAT ADF FACES: HOW RICH IS ADF FACES RICH CLIENT? Peter Koletzke, Quovera

OES Permission Checks in ADF Task Flows

ADF Code Corner How-to build a reusable toolbar with Oracle ADF Declarative Components. Abstract: twitter.com/adfcodecorner

Achieving the Perfect Layout with ADF Faces RC

Oracle Fusion Middleware 11g: Build Applications with ADF I

ADF Code Corner. 64. How-to implement a Select Many Shuttle with pre- selected values. Abstract: twitter.com/adfcodecorner

ADF Code Corner How-to use the af:autosuggestbehavior component tag with ADF bound data sources. Abstract: twitter.

ADF Hands-On. Understanding Task Flow Activities / 2011 ADF Internal Enterprise 2.0 Training. Abstract:

Made from the Same Mold: Templating Approaches for ADF Faces Applications

ADF Code Corner. Oracle JDeveloper OTN Harvest 01 / Abstract: twitter.com/adfcodecorner

Customizing Oracle Identity Governance: Populating Request Attributes

Oracle Fusion Middleware 11g: Build Applications with ADF I

ADF Mobile Code Corner

Oracle WebCenter Portal 11g Developer Workshop

Different color bar chart with popup box in ADF

ADF Code Corner. Oracle JDeveloper OTN Harvest 10 / Abstract: twitter.com/adfcodecorner

OIG 11G R2 Field Enablement Training

ADF Code Corner. 048-How-to build XML Menu Model based site menus and how to protect them with ADF Security and JAAS. Abstract:

<Insert Picture Here> Oracle JHeadstart Forms2ADF - Overview

ADF Code Corner. 65. Active Data Service Sample Twitter Client. Abstract: twitter.com/adfcodecorner

Hello Worldwide Web: Your First JSF in JDeveloper

The Arrangement of the Screens: Introduction to Layout in ADF Faces

We didn t need dialogue. We had faces.

Oracle Hyperion Financial Management Developer and Customization Guide

Introduction to ADF Core Technologies

Oracle WebCenter Portal 11g Developer Workshop

ADF On-Ramp: What You Need to Know to Use ADF. What is ADF and Fusion? ADF core technologies. Required languages. Survey. Agenda. On the Positive Side

ADF Code Corner How-to declaratively build a master-detail behavior with DVT components. Abstract: twitter.com/adfcodecorner

Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Migrating an Oracle WebCenter Portal Framework Application to the Oracle WebCenter Portal Server

Oracle Fusion Developer Guide (ISBN: ) Preview Chapter 1. The Quick Lerner s Guide to Oracle Fusion Web Application Development PREVIEW

Using Spaces Extension Samples ( )

Oracle ADF On Ramp: What You Need to Know to Use ADF

If you wish to make an improved product, you must already be engaged in making an inferior one.

Lab 20: UI Customization

ADF Mobile Code Corner

Copyright 2010, Oracle. All rights reserved.

Contents. 1. JSF overview. 2. JSF example

Go to /Jdevbin/jdev/bin Double click on Jdevw.exe

Oracle Fusion Middleware 11g: Build Applications with ADF Accel

ADF Code Corner How-to restrict the list of values retrieved by a model driven LOV. Abstract: twitter.com/adfcodecorner

ADJUST TABLE CELLS-ADJUST COLUMN AND ROW WIDTHS

Oracle Middleware 12c: Build Rich Client Applications with ADF Ed 1 LVC

ADF On-Ramp: What You Need to Know to Use the ADF Fusion Technology Stack. What is ADF and Fusion? ADF core technologies. Required languages.

Overview. Principal Product Manager Oracle JDeveloper & Oracle ADF

PassGuide..1z0-554_81,Q&A

The Tie That Binds: An Introduction to ADF Bindings

Oracle ADF Faces Cookbook

Oracle ADF On-Ramp: Developing Applications With the Core ADF Stack

Chapter 21- Using Generics Case Study: Geometric Bunch. Class: Driver. package csu.matos; import java.util.arraylist; public class Driver {

Copyright 2014, Oracle and/or its affiliates. All rights reserved.

Mastering Oracle ADF Task Flows. Frank Nimphius Principal Product Manager Oracle JDeveloper / ADF

Lyudmil Pelov, A-Team, Oracle December Development Lifecycle for Task Flows in Oracle WebCenter Portal 11gR1 version

Oracle 1Z Oracle Application Development Framework 12c Essentials. Download Full Version :

ADF Code Corner. Oracle JDeveloper OTN Harvest 12 / 2011 & 01 / Abstract: twitter.com/adfcodecorner

Join Queries in Cognos Analytics Reporting

FILE UPLOAD IN ORACLE ADF MOBILE

ADF Mobile Code Corner

ADF Code Corner. 70. How-to build dependent list boxes with Web Services Business Services. Abstract: twitter.com/adfcodecorner

1 Copyright 2011, Oracle and/or its affiliates. All rights reserved.

Creating Forms. Starting the Page. another way of applying a template to a page.

ADF Code Corner. Oracle JDeveloper OTN Harvest 02 / Abstract: twitter.com/adfcodecorner

Oracle JDeveloper/Oracle ADF 11g Production Project Experience

Using JavaScript in ADF Faces Rich Client Applications

CIS 764 Tutorial: Log-in Application

Oracle WebCenter Hands-On Practices. A Practical Introduction to Oracle WebCenter

Spring 2016 Programming Languages Qualifying Exam

Report Studio: Using Java Script to Select and Submit Values to a SAP Prompt.

POS Designer Utility

Oracle Developer Day

AP CS Unit 7: Interfaces Exercises 1. Select the TRUE statement(s).

Oracle Developer Day

TUTORIAL: ADF Faces (Part 1-Modified) Passing parameter values between JSF pages By: Dr.Ahmad Taufik Jamil, Pusat Teknologi Maklumat, HUKM

Oracle Fusion Middleware

Starting Excel application

P6 Professional Reporting Guide Version 18

ADF Code Corner Implementing auto suggest functionality in ADF Faces. Abstract:

More Skills 11 Draw Tables and Convert Tables to Text. To complete this document, you will need the following file:

ADF Code Corner How-to bind custom declarative components to ADF. Abstract: twitter.com/adfcodecorner

JDK 1.6 update 11 from You must use Java 1.6 update 11. Update 12 does not work with SOA 11g

ADF Mobile Code Corner

ADF Code Corner. 71. How-to integrate Java Applets with Oracle ADF Faces. Abstract: twitter.com/adfcodecorner

Oracle Fusion Middleware

Rich Web UI made simple Building Data Dashboards without Code

ADF Code Corner How-to further filter detail queries based on a condition in the parent view using ADF BC. Abstract: twitter.

Oracle ADF: The technology behind project fusion. Lynn Munsinger Principal Product Manager Application Development Tools Oracle Corporation

Transcription:

How To Create Employee With Designation Report In ADF Attractively I am going to explain how we can create the Employee with designation report in ADF attractively. 1.Start JDeveloper by selecting Start > Programs > Oracle Fusion Middleware 11.1.6.0.0 >JDeveloper Studio 11.1.1.6.0.

2.In the Select Role dialog, choose Default Role and click OK.

3.File > New then selecting the Applications menu item in the left side of the new dialog, select the Fusion Web Application (ADF) type and click OK.

4. Create the application name as EmployeeDesign click Next.

5.It will create model project click Next.

6.It will create javasettings click Next.

7.click Next.

8.Click Finish.

9. Right-click on the new Model project and select new. We re going to create some business components these are the components that interact with your database. Select ADF Business Components from the left side and View Object on the right. Then click OK.

10.In the first panel of the wizard, we re going to need to define a connection to our database. Click the green plus symbol + next to the connection drop down.

11.Fill in the appropriate values as shown and click OK. Select Test Connection to ensure the proper credentials are entered.

12.Click OK again to close the connection dialog and you will be taken into the ADF BC wizard. 13. Mention the View Object Name as EmpDesig then click Next.

14.Click Button Query Builder..

15.Click Query Button.

16.Select your table which is available in oracle DB,click Ok.

17.Click Next. 18.Just click Next button for step3 to step7.

19.In Step8 Enable Application Module check box then click Next.

20.We will now edit the AppModule,Double click this item to open it for editing. Select Java Tab then click Edit (Pencil Symbol).

21.Enable the check Box Generate Application Module Class,then click OK.

To add the following java method in your AppModuleImpl.java file public List<String> preparelist(){ List<String> list=new ArrayList<String>(); ViewObjectImpl impl=getempdesig1(); impl.executequery(); while(impl.hasnext()){ Row row=impl.next(); String desig=row.getattribute("empdesig").tostring(); if(desig.equalsignorecase("manager")){ desig+=",red"; if(desig.equalsignorecase("employee")){ desig+=",blue"; if(desig.equalsignorecase("trainee")){ desig+=",green"; if(desig.equalsignorecase("associate")){ desig+=",orange"; if(desig.equalsignorecase("developer")){ desig+=",yellow"; list.add(row.getattribute("empname").tostring()+","+desig);

return list; Existing code explains each designation having different colors. 22.Right-click on the new View Controller project and select new. We re going to create a Bean Class to interact UI. Select java from the left side and Java Package on the right. Then click OK.

23.Metion The package name as beans then click OK. 24.Right-click on the new beans package and select new.. Select java from the left side and Java Class on the right. Then click OK.

25.Metion your class name as GraphBean then click OK.

26.In same package we need to create DTO class name as EmpDTO.

27.To add following code in EmpDTO.java File. package beans; public class EmpDTO { public EmpDTO() { super(); private String emp; private String des; private String color; public void setemp(string emp) { this.emp = emp; public String getemp() { return emp; public void setdes(string des) { this.des = des; public String getdes() { return des; public void setcolor(string color) { this.color = color;

public String getcolor() { return color; 28.To add following code in EmpDesign.java package beans; import java.util.arraylist; import java.util.list; import model.appmoduleimpl; import oracle.jbo.client.configuration; public class EmpDesign { public EmpDesign() { super(); public static void main(string[] args) { EmpDesign empdesign = new EmpDesign(); empdesign.getlist(); private List<EmpDTO> emplist1 = new ArrayList<EmpDTO>(); public String getlist() {

AppModuleImpl imp = (AppModuleImpl)Configuration.createRootApplicationModule("model.AppModule", "AppModuleLocal"); List<String> list = imp.preparelist(); Configuration.releaseRootApplicationModule(imp, true); System.out.println(list); List<EmpDTO> list1 = new ArrayList<EmpDTO>(); for (int i = 0; i < list.size(); i++) { String[] st = list.get(i).split(","); EmpDTO dto = new EmpDTO(); dto.setemp(st[0]); dto.setdes(st[1]); dto.setcolor(st[2]); list1.add(dto); this.setemplist1(list1); return "True"; public void setemplist1(list<empdto> emplist1) { this.emplist1 = emplist1;

public List<EmpDTO> getemplist1() { return emplist1; 29.To add following code in adfconfig.xml <?xml version="1.0" encoding="windows-1252"?> <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2"> <managed-bean id=" 1"> <managed-bean-name id=" 4">emp</managed-bean-name> <managed-bean-class id=" 2">beans.EmpDesign</managed-bean-class> <managed-bean-scope id=" 3">request</managed-bean-scope> </managed-bean> </adfc-config>

30.Right-click on the new Web Content Folder and select new. Select jsffrom the left side and JSF Page on the right. Then click OK.

31.Metion The Page name as input.jspx then click OK.

32Create another jsf page,metion The Page name as output.jspx then click OK.

33.Drag and drop the command button in input.jspx,next duble click the button select alias name of the bean and method. (Or) To add following code in input.jspx page <af:commandbutton text="click Here" id="cb1" action="#{emp.getlist"/> 34.To add following code in output.jspx page: <?xml version='1.0' encoding='utf-8'?> <jsp:root xmlns:jsp="http://java.sun.com/jsp/page" version="2.1"

xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"> <jsp:directive.page contenttype="text/html;charset=utf-8"/> <f:view> <af:document id="d1"> <af:form id="f1"> <af:foreach items="#{emp.emplist1" var="dto"> <af:decorativebox id="db21" inlinestyle="width:180px; border-color:gray; height:50px;"> <f:facet name="center"> <af:panelgrouplayout id="pgl41" layout="vertical"> <af:panelgrouplayout id="pgl71" layout="horizontal" halign="start" > <af:outputtext value="#{dto.emp" id="ot18" inlinestyle="color:rgb(0,99,148); font-family:arial, Helvetica, sans-serif; font-size:small; text-align:left; vertical-align:middle; font-weight:bold; border-color:gray; "/> </af:panelgrouplayout> <af:spacer width="1000000" height="5" id="s25"/> <af:panelgrouplayout id="pgl721" layout="horizontal" halign="end" >

<af:outputtext value="#{dto.des" id="ot25" inlinestyle=" font-family:arial, Helvetica, sans-serif; font-size:xx-small; fontweight:bold; background-color:#{dto.color;"/> </af:panelgrouplayout> </af:panelgrouplayout> </f:facet> </af:decorativebox> </af:foreach> </af:form> </af:document> </f:view> </jsp:root>

35.In adfconfig.xml to drag and drop the input.jspx and output.jspx as shown below.then in component palette drag the Control Flow Case to connect the two pages and set the value for From Out Come as True.

OutPut: 1.Now run your input.jspx page 2.Click Click Here Button.

Thank you,keep Breathing & Keep Learning