Showing posts with label JDeveloper 11g R2. Show all posts
Showing posts with label JDeveloper 11g R2. Show all posts

Tuesday, September 15, 2015

JDev/ADF sample - ADF BC Inline View Criteria for Hierarchical Search

  • ADF BC Inline View Criteria for Hierarchical Search. ADF BC View Criteria allows to implement Inline View Criteria to execute hierarchal search. This is especially useful, when you have Master-Detail relationship and want to filter Master records, based on attribute value from Detail. Keep in mind, Inline View Criteria for hierarchical search would not work, if VO is based on custom SQL query. It works only with declarative VO's.
    Download - TreeSearchApp.zip

Wednesday, June 24, 2015

JDev/ADF sample - Intercepting Table Filter Query and Manipulating VO SQL Statement

  • Intercepting Table Filter Query and Manipulating VO SQL Statement. I’m going to describe one non declarative use case. Imagine, if there is a table with filter functionality, you may want to intercept filter items and apply the same for another VO. This another VO should be based on the same DB table, so it could apply criteria items against the table.
    Download - AdvancedViewCriteriaApp.zip

Thursday, June 18, 2015

JDev/ADF sample - Select One Choice with Select Items Tag

  • Select One Choice with Select Items Tag. If you need to implement select one choice based on alternative data sources (not based on ADF BC) - you shouldn't use af:forEach inside af:selectOneChoice component. Don't get confused with af:forEach tag, this tag is supposed to generate multiple components and not to iterate over a collection of objects and render HTML for each item. There could be cases, when choice list data will come duplicated, with af:forEach tag applied. I would suggest to construct array of SelectItem objects and return it to the f:selectItems tag to be rendered.
    Download - CustomSelectListApp.zip

Thursday, June 4, 2015

JDev/ADF sample - How to Apply New Label Text in MDS Customisation

  • How to Apply New Label Text in MDS Customisation. It may look simple, but really is not obvious how to apply new label text for the ADF BC attribute or UI component through MDS customisation. It is simple, if such label text already exists in the core bundle. If you need to create new label text in the customisation and use it - this becomes a bit tricky. Well, as usual - I'm going to explain how you could solve such task. You should read more about MDS customisation setup in ADF - MDS Seeded Customization Approach with Empty External Project.
    Download - mds_label_cust.zip

Friday, April 17, 2015

JDev/ADF sample - Monitoring PPR Request Time on ADF UI Client Side

  • Monitoring PPR Request Time on ADF UI Client Side. We can measure how long it takes to process request on the server side, however it is equally important to measure how long PPR request takes on the client side. Mainly because this will be a key factor for application performance exposed to the end user. There is relatively easy approach in JSF 2.0 to measure PPR request time on client side - with a special ajax tag. ADF 11g R2 and ADF 12c are based on JSF 2.0, this means we can use such tag and measure request performance. Read in my previous post how to monitor page load time in ADF UI client - Monitoring Page Load Time on ADF UI Client Side.
    Download - ADFAltaApp_v3.zip

Wednesday, April 15, 2015

JDev/ADF sample - Monitoring Page Load Time on ADF UI Client Side

  • Monitoring Page Load Time on ADF UI Client Side. In certain situations, it might be useful to monitor ADF page load time. This is pretty easy to achieve with Navigation Timing API and Java Script. Navigation Timing API is supported by modern browsers and allows to retrieve client side load time. It takes into account data transfer time and actual rendering in the browser - real time it took for a user to see the content.
    Download - ADFAltaApp_v2.zip

Wednesday, April 8, 2015

JDev/ADF sample - Simple (Effective) Refresh Approach for ADF Regions

  • Simple (Effective) Refresh Approach for ADF Regions. I often hear developer asking about how to refresh different regions on the same page, when specific event happens in one of the regions - to refresh dependent regions. Usually developers would like to use something more simple than Contextual Event approach. There is more simple approach, may be it doesn't work for all the possible use cases - but it does it job, when just refresh is needed. This approach is based on dummy parameter value, being used as dependent region input parameter, with refresh option set to be ifNeeded.
    Download - SimpleReloadRegionApp.zip

Sunday, March 29, 2015

JDev/ADF sample - Automatic ADF Popup Opening on Fragment Load

  • Automatic ADF Popup Opening on Fragment Load. I had a post about opening ADF Popup on page load - Opening ADF PopUp on Page Load. Approach is quite straightforward, developer needs to use showPopupBehavior operation with appropriate trigger type. When it comes to ADF Popup opening on fragment load, implementation is a bit more complex. There is a known method to implement hidden text field and in the getter method call your custom logic - getter will be executed when fragment loads. However, this is not very efficient, you will need to add condition to distinguish between first and subsequent calls to the getter (it will be executed multiple times). I will describe in this post different approach - using ADF poll component and forcing it to execute only once after fragment load.
    Download - FragmentPopUpLoadApp.zip

Tuesday, March 17, 2015

JDev/ADF sample - ADF BC Property Set to Group Attribute Hints

  • ADF BC Property Set to Group Attribute Hints. There is one ADF BC component not mentioned often - Property Set. This is a bag of properties/hints, it can be applied for EO/VO attributes. Frequently used hints can be defined in Property Set once, without repeating the same for each attribute. This simplifies maintenance, if there will be a change required in the future - much easier to change it in single place. I will show below a practical example, where Property Set is applied for EO attribute to define a date type.
    Download - PropertySetApp.zip

Thursday, February 19, 2015

JDev/ADF sample - ADF BC Range Paging and REST Pagination

  • ADF BC Range Paging and REST Pagination. In this post I would like to explore and integrate two thing - ADF BC Range Paging and REST service pagination. It would inefficient to retrieve entire set of data in the REST service, ideally should be available option to specify number of rows and range number to fetch. ADF BC allows to query VO in Range Paging mode - SQL query will be constructed with row numbers, to query data in certain range of rows (this allows to fetch less data from DB). We could combine this with REST service and provide light interface to access data.
    Download - RestADFBCApp.zip

Saturday, November 29, 2014

JDev/ADF sample - Adaptive Form with Dynamic ADF LOV Value Binding

    Download - DynamicAttributeBindingApp_v2.zip

Wednesday, November 26, 2014

JDev/ADF sample - Suppressing ADF LOV Like Operator Filtering V2

    Download - ADFTableApp_v2.zip

Wednesday, November 19, 2014

JDev/ADF sample - BPM Authentication On Behalf Business User from ADF

    Download - adfbpm11gr4.zip

Thursday, November 13, 2014

JDev/ADF sample - Dynamic ADF Buttons Solution for Oracle BPM Outcomes

  • Dynamic ADF Buttons Solution for Oracle BPM Outcomes. BPM Human Task activity is configured with outcomes. Based on these outcomes, buttons in ADF UI are constructed allowing user to perform different actions with the task. Auto generated ADF Human Task form contains a set of predefined buttons and this set is controller with rendered flag. My sample application is using different approach, it implements custom tasks table and dynamic ADF UI for the human task input form - Dynamic ADF Form Solution for Oracle BPM Process. Once user selects a task, action buttons are generated dynamically - using a set of outcomes configured for the particular task.
    Download - adfbpm11gr4.zip

Friday, November 7, 2014

JDev/ADF sample - Dynamic ADF Form Solution for Oracle BPM Process

    Download - adfbpm11gr4.zip

Tuesday, October 28, 2014

JDev/ADF sample - Handling Date Format and ADF Bindings

  • Handling Date Format and ADF Bindings. There are tips and tricks related to the date format handling and ADF bindings. When Oracle date type attribute is being used through ADF binding expression, it will be converted to String with default format (yyyy-MM-dd), no matter what original format was set. This is described in API for the Oracle date type - Date constructor with String. Below I'm going to explain how it works and how you could optimise ADF application to handle date type attributes from ADF bindings layer.
    Download - DateFormatApp.zip

Saturday, September 27, 2014

JDev/ADF sample - Suppressing ADF LOV Like Operator Filtering

  • Suppressing ADF LOV Like Operator Filtering. ADF LOV component provides filtering option with STARTSWITH operation. This is used to check if similar value exists in the LOV, if such value exists - LOV popup is opened with all the suggested values. If user types 10 and there are 100, 1000 in the LOV, instead of accepting value 10 - LOV popup will be opened and all three values 10, 100, 1000 will be displayed. While this is useful, there is no option to turn off such functionality. My post describes a solution, that can be used to disable suggested LOV filtering.
    Download - ADFTableApp.zip

Tuesday, September 23, 2014

JDev/ADF sample - ADF Region Data Synchronisation with Change Event Policy

  • ADF Region Data Synchronisation with Change Event Policy. This post applies for multiple ADF regions, based on the same Data Control. I will show you can avoid using ADF Contextual Events to synchronise two ADF regions, when both are based on the same Data Control and this Data Control is shared between the two.
    Download - RegionCommunicationApp.zip

Wednesday, September 10, 2014

JDev/ADF sample - ADF BC View Object Change Notification Listener

  • ADF BC View Object Change Notification Listener. ADF BC allows to define triggers to listen for row changes on VO level. We can listen for row updates, inserts and deletes. This can be useful, if you would like to invoke specific audit method or call custom methods to populate dependent transient VO's with updated data.
    Download - ADFBCListenerApp.zip

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