Categories
Oracle

ADF and Developer Cloud Service

Some time ago, I wrote this blog post showing how to deploy an ADF application in Oracle Cloud, and a few days ago I read these posts about how to upload an ADF application to Developer Cloud Service and deploy to Java Cloud Service. In this post I will upload my application to DevCS and then deploy it to JCS. Download the sample application: ADFCloudApp.zip. Following the tutorials, I changed build.xml and build.properties files. And, because I’m using HR Schema, I changed the datasource […]
Categories
Oracle

Using Web Service Data Control in ADF

If your ADF application needs to consume a web service, don’t worry! It is a piece of cake when you use the Web Service Data Control. In this post, you will learn how to do it. Download the sample application: ADFWSDCApp.zip. Create a new Web Service Data Control (SOAP/REST). Name the Data Control as HRDataSource. In the URL field, I specified the WSDL URL of the service that I created here: Expose Application Module as SOAP Web Service. Select all operations and click Finish. Drag the […]
Categories
Oracle

Export table as a PDF file in ADF

You have learned how to export table as Excel and XML files, now you will learn how to export table as a PDF file using the Apache FOP. Apache FOP (Formatting Objects Processor) is a print formatter driven by XSL formatting objects (XSL-FO) and an output independent formatter. Output formats currently supported include PDF, PS, PCL, AFP, XML, Print, AWT, PNG, RTF and TXT. Download the sample application: ADFPDFApp.zip. First of all, we need to transform the data of employees to XML. To achieve […]
Categories
Oracle

Export table as XML file in ADF

Since I wrote about how to export table to Excel in Oracle ADF, it has been one of the most read blog posts. I know that the export of data is an important feature in an application, this way, I will show how to export rows (all or some) of the table as an XML file. Download the sample application: ADFXMLApp.zip. Create a new ADF application that will use data of employees. Go to EmployeesView View Object and generate the View Object Implementation Class. Copy the following code inside EmployeesViewImpl […]
Categories
Oracle

Creating Business Logic Group in ADF

When you have an entity, but in some cases, according the value of some attribute, you need to change control hints, default values or validation logic, you can create a Business Logic Group to help you. Using the Oracle Application Development Framework Documentation (4.8 Defining Business Logic Groups), let’s create a Business Logic Group for Employees entity. In the sample application (ADFBusinessLogicGroupApp.zip) we will create a Business Logic Group that contain a Business […]