Showing posts with label CRUD. Show all posts
Showing posts with label CRUD. Show all posts

Friday, September 8, 2017

JDev/ADF sample - Oracle JET Simple Table with Fake JSON Server

  • Oracle JET Simple Table with Fake JSON Server. What if you want to build JET UI, but there is no back-end REST service ready yet. You could use static JSON data inside JET app and load it from the JSON file. This works, but data retrieval logic will need to be changed after REST service will be ready. This is not productive. Ideally you would like to have fake REST service to simulate REST calls from JET UI, until real REST back-end is ready.
    Download - jetsimplecrud

Saturday, November 19, 2016

JDev/ADF sample - Oracle JET CRUD - Search and Edit Form - Part I

  • Oracle JET CRUD - Search and Edit Form - Part I. I'm going to post a series of articles about CRUD functionality (on top of ADF BC) implementation in JET. I already had a couple of posts about JET CRUD implementation, this new series will bring improved and simplified structure for JET code implementation.
    Download - GitHub repository

Sunday, September 7, 2014

JDev/ADF sample - Calculating HTML ID for ADF UI Table Row

  • Calculating HTML ID for ADF UI Table Row. Each row in ADF UI table is assigned with ID, this is how rows are referenced in HTML. I had a blog post describing how to set a focus for newly inserted row - Improving ADF UI Table CRUD Functionality with Auto Focus. I'm getting ID for selected row using getClientRowKey method and this method returns row identifier, the one which is used in HTML. Blog reader was trying to use the same method to get ID for any row from the table, but it didn't worked for him. The trick is how to construct a key properly, to use this key to retrieve ID. I'm going to describe it in this quick sample application below.
    Download - ADFTableFocusApp_v2.zip

Sunday, March 2, 2014

JDev/ADF sample - Improving ADF UI Table CRUD Functionality with Auto Focus

  • Improving ADF UI Table CRUD Functionality with Auto Focus. Improving and tuning ADF applications performance, doesn't mean only ADF framework technical parameters tuning. Performance tuning could be applied to application UI behaviour. I will use ADF Faces table example in this post, by default when new row is inserted - focus for the new row column is not set, user needs to do one extra click to set focus and start entering data. There is a way to eliminate this extra click and set focus automatically for a column in ADF table row. I will describe generic method to achieve such functionality.
    Download - ADFTableFocusApp.zip

Monday, February 17, 2014

JDev/ADF sample - Simple JQuery Notification Message for ADF UI

  • Simple JQuery Notification Message for ADF UI. If you would like to use JQuery in ADF and looking for some simple example, this post if for you. I'm sharing use case of JQuery notification message, displayed after successful commit operation is completed in ADF. Once commit is completed, notification message is displayed for 2 seconds and later it disappears.
    Download - ADFNotification.zip

Saturday, November 2, 2013

JDev/ADF sample - Find By Key and View Criteria Row Finder Methods vs. Get Row Method in ADF BC

    Download - LargeFetchApp_v4.zip

Wednesday, October 30, 2013

JDev/ADF sample - WebLogic Stuck Thread Case - Large Fetch Generated by Get Row ADF BC Method

    Download - LargeFetchApp_v3.zip

Wednesday, October 23, 2013

JDev/ADF sample - Reproducing WebLogic Stuck Threads with ADF CreateInsert Operation and ORDER BY Clause

    Download - LargeFetchApp_v2.zip

Thursday, October 17, 2013

JDev/ADF sample - Evil Behind ChangeEventPolicy PPR in CRUD ADF 12c and WebLogic Stuck Threads

  • Evil Behind ChangeEventPolicy PPR in CRUD ADF 12c and WebLogic Stuck Threads. In your production application, you may experience WebLogic Stuck Threads. This is usually related to the large fetching, in most cases it happens unexpected and is not reproduced easily. In ADF 11g this is related to AM passivation/activation behaviour (will be described more in the next post), in ADF 12c I found another reason for unexpected large fetch in CRUD - ChangeEventPolicy = PPR setting usage for ADF iterator in Page Definition.
    Download - LargeFetchApp.zip

Monday, March 4, 2013

JDev/ADF sample - ADF Rollback Operation and Stay On Current Row

  • ADF Rollback Operation and Stay On Current Row. This post is extension for my previous posts about ADF CRUD and is based on - ADF Query Search and Results Form blog. As most likely you have noticed it already, Rollback operation in ADF removed all pending changes plus it resets current row to the first row in data collection. Resetting current row to the first is not always desirable, I will provide sample application which demonstrates how to prevent resetting to first row after Rollback operation was invoked.
    Download - ADFCRUDRollbackApp.zip

Sunday, December 30, 2012

JDev/ADF sample - After Commit Call for Centralized Transaction Management

  • After Commit Call for Centralized Transaction Management. With this post I would like to update sample application from my previous post on this topic - Centralized Transaction Management for ADF Data Control. This previous post was about how to call global commit/rollback operations applied for ADF Data Control, without declaring Commit and Rollback in each and every page definition file. Centralized Commit and Rollback operations are created in fragment template, this allows to reuse the same buttons across different fragments. There is one bit we can use to extend centralized transaction management concept - custom method invocation after successful commit. Based on use case requirements, we may need to invoke iterator refresh after commit, etc.
    Download - GlobalTransactionControlApp_v2.zip

Wednesday, November 28, 2012

JDev/ADF sample - Centralized Transaction Management for ADF Data Control

  • Centralized Transaction Management for ADF Data Control. Did you ever had an idea to implement centralized Commit/Rollback management in ADF application. This would allow to save development time, no need to create Commit/Rollback operation in each page definition file - forget about this. You can manage transaction on ADF Data Control level and I will show you how with this sample application.
    Download - GlobalTransactionControlApp.zip

Thursday, November 8, 2012

JDev/ADF sample - Difference Between Initialized and New Mode in ADF BC

  • Difference Between Initialized and New Mode in ADF BC. Its always a bit confusing - what is actually the difference between Initialized and New mode for created rows in ADF BC. I have found good information in ADF Developer Guide for this - 27.4.5 What You May Need to Know About Create and CreateInsert. In short - when you create new row, it gets status New. If there is requirement to deregister created (but not yet inserted into DB) from pending changes list - you can set Initialized status for such row. It will keep Initialized status, until user will change attribute value.
    Download - NewInitializedRowADFApp.zip

Tuesday, June 12, 2012

JDev/ADF sample - ADF Query Search and Results Form

    Download - ADFPageOpening_v3.zip

Thursday, June 7, 2012

JDev/ADF sample - CRUD Use Case Implementation and ADF Query Search

  • CRUD Use Case Implementation and ADF Query Search. One of the most important topics to research when rewriting legacy Oracle Forms system into Oracle ADF 11g/Oracle Fusion is how to implement CRUD operations in smooth way for the new system. CRUD operations play one of the central roles for Oracle Forms and Oracle ADF applications, because most of the applications implemented with Oracle Forms and Oracle ADF are designed to process/maintain data. CRUD implementation should be efficient for usability and performance. With today post I will provide updated sample application based on old post from 2009 - Oracle ADF Tuning: Preventing SQL Query Execution on Page Load. I have improved handling of Rollback operation when executing ADF Query search operation.
    Download - ADFPageOpening_v2.zip

Saturday, May 12, 2012

JDev/ADF sample - Refreshing Single Row Without Full Rollback

  • Refreshing Single Row Without Full Rollback. With ADF Rollback operation - ADF is reloading entire dataset from DB. It invokes ROLLBACK from database and then executes View Object to return latest data from DB for all rows. This works well when we want to undo multiple changes at once. It may happen to encounter such use case, where we need to undo changes per row, not per set of rows. This is possible in ADF as well - using refresh(...) method for ADF BC Row. But keep in mind, while this method refreshes selected row - it never cleans up ADF BC transaction, it will remain dirty. This is logical - ADF BC doesn't know, if there are other changed rows.
    Download - RowHighlight_v2.zip