Skip to main content
Last updated January 07, 2014 07:50, by steven.davelaar
<h2>ADF Samples from Deepak Siddappa</h2> [[ADFSamples | Main Table of Contents]] {| border="0" |- | <image src=""/> | Blog: [ Unwinding ADF]<br/> Twitter: [ @deepakcs] |} {| border="1" |- | <span id="DSI041"/>[[#DSI041|DSI041]] | [ ADF Mobile - How to get the Preferences value in HTML page] {] 29-AUG-2013 [ [[image:info.png]]] |- |||In my previous blog entry I went over "Usage of User Preferences in ADF Mobile", In this entry we'll see how to get the Preferences value in HTML page |- | <span id="DSI040"/>[[#DSI040|DSI040]] | [ EJB provides Accessor iterators for Parameterized Named Query in JDeveloper 12c] {] 01-AUG-2013 [ [[image:info.png]]] |- |||Scenario is to add new row to the ADF Table, here ADF Table is based on Named Query having parameters.When a user defines a JPA named query with parameters in Employee entity using persistence xml (for ex: "select o from Employees o where o.departmentId = :bind_departmentId"), these queries were exposed through non-getter methods on the EJB Session or Java Service facade classes and will be exposed as method actions |- | <span id="DSI039"/>[[#DSI039|DSI039]] | [ ADF Mobile Push Notifications With Google Cloud Messaging (GCM) Part 1] {] 19-JUN-2013 [ [[image:info.png]]] |- |||Oracle ADF Mobile release adds the Push Notification Support, now ADF Mobile application can register to receive notifications through both the Apple and Google notification services. In this article I try to explain on how to implement “Google Cloud Messaging for Android (GCM) with ADF Mobile, GCM is a service that helps developers to send data from servers to their Android applications on Android devices“. |- | <span id="DSI038"/>[[#DSI038|DSI038]] | [ ADF Mobile Push Notifications With Google Cloud Messaging (GCM) Part 2] {] 19-JUN-2013 [ [[image:info.png]]] |- |||In this tutorial I have used PHP as server side programming language and MySQL database to store data. Since sending message from PHP to GCM is easy, here we'll be using CURL to create a message request to send for Google GCM server. CURL is a library that lets you make HTTP requests in PHP . |- | <span id="DSI037"/>[[#DSI037|DSI037]] | [ Offline Data Synchronization for ADF Mobile] {] 10-JUN-2013 [ [[image:info.png]]] |- |||In Mobile applications very desired feature is able to work offline. For data-driven applications, it means user can store (a subset of) the application data locally, and implement a data synchronization mechanism that keeps your local and server data in sync. |- | <span id="DSI036"/>[[#DSI036|DSI036]] | [ ADF Mobile With EJB Restful Web Service] {] 19-MAY-2013 [ [[image:info.png]]] |- |||This article is the continuation of my previous article on Configuring EJB with Restful Web Service in ADF. Here will see how to integrate EJB Restful Web Service with ADF mobile. |- | <span id="DSI035"/>[[#DSI035|DSI035]] | [ Configuring EJB with Restful Web Service in ADF] {] 18-APR-2013 [ [[image:info.png]]] |- |||In current JDeveloper we can expose EJB's as Web Service, however this will be a SOAP based web service. In this article will discuss on configuring EJB with restful web service using jersey support. |- | <span id="DSI034"/>[[#DSI034|DSI034]] | [ Sync Device Back Button With ADF Mobile App's Back Button In TaskFlows] {] 02-APR-2013 [ [[image:info.png]]] |- |||This article is the continuation of my previous article on Handling the Device Back button in ADF Mobile Application. Scenario in this article is to use the device back button to go back to previous page within taskflows, Android device has a back button and our apps should take an advantage of that. |- | <span id="DSI033"/>[[#DSI033|DSI033]] | [ Handling the Device Back button in ADF Mobile Application] {] 31-MAR-2013 [ [[image:info.png]]] |- |||While developing an ADF Mobile application for Android/IOS, you may require to capture the device back button on user click. Here we will add little logic to exit the application once the user clicks on device back button. |- | <span id="DSI032"/>[[#DSI032|DSI032]] | [ ADF Mobile : Display Custom Springboard layout with 3 * 3 matrix] {] 26-MAR-2013 [ [[image:info.png]]] |- |||Scenario here is to display 3 * 3 matrix dynamic table in custom springboard amx page using ApplicationFeatures data control with Features data collection. |- | <span id="DSI031"/>[[#DSI031|DSI031]] | [ Get ADF Mobile Form values in managed bean using Accessor Iterator] {] 11-MAR-2013 [ [[image:info.png]]] |- |||Scenario is how to get the ADF Mobile form values in managed bean programmatically. Accessor Iterator can be used with AdfmfJavaUtilities.getValueExpression() method to get values. getValueExpression method is for expressions that refer to values, this method should perform syntactic validation of the expression. |- | <span id="DSI030"/>[[#DSI030|DSI030]] | [ Integrating Open Weather Map in ADF Mobile Application] {] 05-MAR-2013 [ [[image:info.png]]] |- |||Today I tried implementing demo weather application using JSON-REST. OpenWeatherMap is a web service that provides free weather data and forecast API suitable for any cartographic services including web and smartphones applications. Ideology is inspired by OpenStreetMap and Wikipedia that make information free and available for everybody. OpenWeatherMap wide range of weather data - map with current weather, week forecast, precipitation, wind, clouds, data from weather stations, data from radars. Weather data is received from global meteorological broadcast services and more than 40000 weather stations, OpenWeatherMap provides response data as JSON string. |- | <span id="DSI029"/>[[#DSI029|DSI029]] | [ Usage of User Preferences in ADF Mobile] {] 19-FEB-2013 [ [[image:info.png]]] |- |||Preferences enable you to add settings that can be configured by end users. In this article will see how to use adfmf:preferenceList to change the display name format setting in the Contacts list at run time. |- | <span id="DSI028"/>[[#DSI028|DSI028]] | [ ADF Mobile Email - Send Multiple File Attachments with amx:selectManyCheckbox option] {] 11-FEB-2013 [ [[image:info.png]]] |- |||Here's a use case: A presenter is showing presentation on their Android/iPhone/iPad devices to the client. After the presentation, client may asks for the presentation files for there further understanding. Now presenter wants to attach all the files used in presentation and send mail to the client. |- | <span id="DSI027"/>[[#DSI027|DSI027]] | [ Adf Mobile - Iterate through all the rows in tree binding using CollectionModel] {] 08-FEB-2013 [ [[image:info.png]]] |- |||Scenario is how to iterate through all the rows in tree bindings using managed bean method, using collectionModel we can get the rows. collectionModel exposes a collection of data, EL expressions used within a component that is bound to a collectionModel can be referenced with a row variable, which will resolve the expression for each element in the collection. |- | <span id="DSI026"/>[[#DSI026|DSI026]] | [ ADF Mobile - Create Drill Down Graph Reports] {] 31-JAN-2013 [ [[image:info.png]]] |- |||Drill Down Graph Report - Scenario here is to show all the cars sales report for this year in Pie Chart and when user click a individual car in pie chart slice, a drill through report opens, which accepts the car type as a parameter, and then displays car models sale in Bar Chart. In ADF Mobile, "clickListener" method is not provided for DVT components. Click listener interface will receive click events on the gauge components and can do further data process in BC4J. In ADF Mobile "Action" method is supported on DataItem in the graphs. Action defines a reference to the an action method sent by the command button component, or static outcome of an action. So in this article I'm explaining how to build drill down reports using <dvtm:pieChart> and <dvtm:barChart> |- | <span id="DSI025"/>[[#DSI025|DSI025]] | [ ADF Mobile - Access Device Native SQLite Database to Store Data] {] 24-JAN-2013 [ [[image:info.png]]] |- |||How to access device native SQLite database to store data and perform CRUD operations, In this article I will show on how to read data for display, create and save new record to the database. |- | <span id="DSI024"/>[[#DSI024|DSI024]] | [ EJB DC - Deleting Multi-Selected Rows From Adf Table] {] 17-JAN-2013 [ [[image:info.png]]] |- |||Let us take a scenario where in users wants to delete multiple records in the ADF table. In EJB this can't be achieved in straight forward way, we have to manually get all the selected row keys and delete the rows data using EntityManager API. |- | <span id="DSI023"/>[[#DSI023|DSI023]] | [ Create ADF Input Form Without First Displaying Existing Records] {] 16-JAN-2013 [ [[image:info.png]]] |- |||The ADF Creation form allows users to create new instances in the collection without first displaying existing instances, this scenario might be very simple but the new developers find difficulty in creating empty ADF Input Form when page loads for the first time. |- | <span id="DSI022"/>[[#DSI022|DSI022]] | [ EJB DataControl - JPA Single Table Inheritance] {] 04-SEP-2012 [ [[image:info.png]]] |- |||JPA supports three types of inheritance, In this article will try "single table inheritance using EJB datacontrol". For more information on JPA inheritance go through the link. In single table inheritance, a single table is used to store all of the instances of the entire inheritance hierarchy. The table will have a column for every attribute of every class in the hierarchy. A discriminator column is used to determine which class the particular row belongs to, each class in the hierarchy defines its own unique discriminator value. |- | <span id="DSI021"/>[[#DSI021|DSI021]] | [ How many rows Modified/Added in ADF Table] {] 07-AUG-2012 [c [[image:info.png]]] |- |||I was reading through OTN Discussion Forums where I found one topic "How many rows were Modified/Added in ADF Table by the user". Jobinesh has written article on "Displaying Transaction Log When User Commits a Transaction" which explains how to get the entity status, above example overrides EntityImpl::doDML(int operation, TransactionEvent e) method to track the status of entities. |- | <span id="DSI020"/>[[#DSI020|DSI020]] | [ Bean Data Control - Create Simple Search Form] {] 12-JUL-2012 [ [[image:info.png]]] |- |||In Oracle ADF, search form can be created with BC4J/EJB model using "View Criteria/Named Criteria" by dropping "af:query" component in view layer. Here in this article, I'm trying to build simple search form based on bean data control. |- | <span id="DSI019"/>[[#DSI019|DSI019]] | [ How to add a new row at the end of the ADF Table] {] 02-JUL-2012 [ [[image:info.png]]] |- | <span id="DSI018"/>[[#DSI018|DSI018]] | [ Simulate JPA Dynamic Query Using View Criteria] {] 25-JUN-2012 [ [[image:info.png]]] |- |||Recently I'm working in an application where JPA entity has a named query with parameters passed to that query and exposed as EJB data control, here parameter is passed dynamically at run time. Now same data control is dropped as ADF table, where user can add new rows to the table and perform merge/persist operations. |- | <span id="DSI017"/>[[#DSI017|DSI017]] | [ Get JPA Entity Attributes programmatically in managed bean] {] 25-JUN-2012 [ [[image:info.png]]] |- | <span id="DSI016"/>[[#DSI016|DSI016]] | [ Display ADF Dynamic Table based on Declarative SQL Mode In View Object] {] 07-JUN-2012 [ [[image:info.png]]] |- |||While working in my previous article "Configure Comparison of Row Objects at Run Time", I struck in constructing the dynamic SQL statement, where I needed to pass the selected column attributes at run time and displays the results using ADF Dynamic Table. |- | <span id="DSI015"/>[[#DSI015|DSI015]] | [ Configure Comparison of Row Objects at Run Time] {] 03-JUN-2012 [ [[image:info.png]]] |- |||Recently I was working in an application where I need to compare two or more row objects based on selected attributes. In this article I will explain one of the way to configure comparison of row objects at run time, so this pattern will give users the ability to select row objects for comparison and to define which of the available attributes they want to compare at run time. |- | <span id="DSI014"/>[[#DSI014|DSI014]] | [ Bean DataControl - Create new table rows based on existing row content] {] 01-JUN-2012 [ [[image:info.png]]] |- |||The Create a Duplicate row enables the user to create an object by duplicating an existing object. The duplication aids the user by prefilling some values. The user has full control and can change any of the values during the creation process. So in this article, I'm will show how can we create new table rows based on existing rows using Bean Data Control. |- | <span id="DSI013"/>[[#DSI013|DSI013]] | [ Commit the child taskflow transaction in parent taskflow transaction using DataControlFrame Api] {] 28-MAY-2012 [ [[image:info.png]]] |- |||In this post I'm sharing sample for how can we use "DataContolFrame" to commit the child taskflow transaction in parent taskflow transaction. |- | <span id="DSI012"/>[[#DSI012|DSI012]] | [ Dynamic Control Flow Case using ActionEvent] {] 24-MAY-2012 [ [[image:info.png]]] |- |||Here is a scenario where we need to navigate from one page to another page based on some condition. In design time set the 'Action' property of UI component can be used to navigate between pages, but here Action property can't be used since navigation is based on condition. In this article will see how can we programmatically handle the control flow case in managed bean using ActionEvent. |- | <span id="DSI011"/>[[#DSI011|DSI011]] | [ Get ViewObject attributes programmatically and display in Shuttle component] {] 21-MAY-2012 [ [[image:info.png]]] |- |||In this article, I'm trying to explain how can ViewObject attributes be read pro-grammatically and display these attributes in ADF Shuttle component. |- | <span id="DSI010"/>[[#DSI010|DSI010]] | [ EJB DataControl - Configuring Sequential ids using JPA @TableGenerator] {] 19-MAY-2012 [ [[image:info.png]]] |- |||In this article I'm trying to explain how JPA feature used to generate and assign the unique sequence numbers to JPA entity using @TableGenerator. |- | <span id="DSI009"/>[[#DSI009|DSI009]] | [ Bean DataControl - Edit table records] {] 16-MAY-2012 [ [[image:info.png]]] |- |||Here is a scenario where we need to edit the table records and update them, here table is based on Bean DataControl. so in this article, I'm trying to explain how can we edit the table records using Bean DataControl. |- | <span id="DSI008"/>[[#DSI008|DSI008]] | [ Display Lookup values from related ejb entities using JOIN FETCH] {] 15-MAY-2012 [ [[image:info.png]]] |- |||JOIN FETCH - The purpose of JOIN FETCH is to fetch the related objects from the database in a single query. So in this article, I'm trying to explain how can we use jpql JOIN FETCH and expose those attributes to EJB data control layer. |- | <span id="DSI007"/>[[#DSI007|DSI007]] | [ EJB DataControl - programmatically construct Master-Detail hierarchy] {] 14-MAY-2012 [ [[image:info.png]]] |- |||Sometimes, in EJB data control it is necessary to construct Master-Detail relationships across different levels pro-grammatically. One of the most common use cases is construct the master-detail relation based on database tables where tables doesn't have foreign key relationship. So in this article, I'm trying to construct master-detail hierarchy pro-grammatically by taking simple custom_dept, custom_emp tables. |- | <span id="DSI006"/>[[#DSI006|DSI006]] | [ Display multiple selected rows from ADF table in a popup window] {] 11-MAY-2012 [ [[image:info.png]]] |- | <span id="DSI005"/>[[#DSI005|DSI005]] | [ Update multiple rows using EJB Data Control] {] 08-MAY-2012 [ [[image:info.png]]] |- |||Let us take a scenario where in users wants to edit multiple records in the ADF table. So in EJB this can't be achieved in straight forward way, we have to manually get all the selected row keys and merge them to the database in programmatic way. |- | <span id="DSI004"/>[[#DSI004|DSI004]] | [ EJB Named Criteria - Apply bind variable in Backingbean] {] 01-MAY-2012 [ [[image:info.png]]] |- |||EJB Named criteria are predefined and reusable where-clause definitions that are dynamically applied to a ViewObject query. Here we often use to filter the ViewObject SQL statement query based on Where Clause conditions. |- | <span id="DSI003"/>[[#DSI003|DSI003]] | [ AutoSuggest behavior In ADF Using EJB DataControl] {] 21-APR-2012 [ [[image:info.png]]] |- |||AutoSuggest behavior in ADF adds a pull-down menu of suggested values to a text field. The user can either click directly on a suggestion to enter it into the field, or navigate the list using the up and down arrow keys, selecting a value using the enter key. |- | <span id="DSI002"/>[[#DSI002|DSI002]] | [ Achieve Named Criteria with multiple tables in EJB Data control] {] 21-APR-2012 [ [[image:info.png]]] |- |||In EJB create a named criteria using sparse xml and in named criteria wizard, only attributes related to the that particular entities will be displayed. So here we can filter results only on particular entity bean. |- | <span id="DSI001"/>[[#DSI001|DSI001]] | [ Custom Table Pagination Using EJB Native Query] {] 20-APR-2012 [ [[image:info.png]]] |- |||Let us take scenario where the table has more records. Here employees table has more number of records, if the entire records are displayed in single ADF table, It will be difficult for user to navigate or traverse to the exact record. This can be achieved by implementing pagination, Pagination is an important aspect when displaying large number of records. This blog would be of help if you are building applications that render large number of records in a table. With pagination, the number of records displayed can be controlled into several manageable chunks, thus making it easy to locate the records of interest. |}
Please Confirm