Showing posts with label ADF Query. Show all posts
Showing posts with label ADF Query. 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

Thursday, July 10, 2014

JDev/ADF sample - ADF 12c (12.1.3) New Feature - ADF Query Item Reordering and Custom Operators

  • ADF 12c (12.1.3) New Feature - ADF Query Item Reordering and Custom Operators. There are quite many new features in ADF 12c (12.1.3). One of them - ADF Query item reordering on runtime, user can choose the order to display criteria items displayed in ADF Query. View Criteria wizard in JDeveloper is updated, besides Criteria UI Hints (as we had before), now developer have access to Item UI Hints (here you can set item visibility, multiple values selection and removable support). Important addition - new tab in the wizard to define and manage Custom Operators for View Criteria items (this was possible before directly in the source code, now we have a wizard).
    Download - ADF12cQueryApp.zip

Tuesday, May 20, 2014

JDev/ADF sample - Personalising ADF Query with MDS User Persistence

  • Personalising ADF Query with MDS User Persistence. I bet you are familiar with ADF Query UI having many criteria items. This may look irritating to the users, as there are so many options to use for the search. I will describe alternative approach in this post, with MDS user persistence and personalisation involved. It might be more user friendly, to offer only few criteria items by default and allow to add other items through ADF Query advanced option, together with MDS user persistence feature enabled for personalisation. Post is based on sample application from - ADF Query Saved Search in ADF 12c.
    Download - SavedSearchApp_v2.zip

Sunday, April 27, 2014

JDev/ADF sample - Check Box Support in ADF Query (11g R2 and 12c)

  • Check Box Support in ADF Query (11g R2 and 12c). Few years passed since my previous post about check box support in ADF Query - Yes-No Check Box in Query Criteria. It was not working before, but there are improvements in the latest ADF releases. I will describe approach to handle multiple values from the same column, using check box in ADF Query. By default, you could render multiple values with choice list - but there is a way to use a group of choice lists (when column values will be known in advance).
    Download - ADFQueryCheckboxApp.zip

Saturday, April 12, 2014

JDev/ADF sample - ADF Query Design Revisited with ADF 12c Panel Drawer

    Download - ADFQueryPreviewApp.zip

Friday, April 4, 2014

JDev/ADF sample - Hide All Search Operators for ADF View Criteria Item

  • Hide All Search Operators for ADF View Criteria Item. During this week work, I received interesting question from ADF developer - how to hide all operators for specific ADF View Criteria item. There is an option to go and hide different operators one by one, following API guide for JboCompOper. You could follow this approach, but there is one smarter way - to hide all operators at once. See below - how.
    Download - ADFQueryNoOperatorsApp.zip

Tuesday, September 17, 2013

JDev/ADF sample - ADF Query Saved Search in ADF 12c

    Download - SavedSearchApp.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

Wednesday, April 25, 2012

JDev/ADF sample - Bug in ADF 11g R2 View Criteria Bind Variable Timestamp Type Configuration

    Download - SearchDateApp.zip

Saturday, April 21, 2012

JDev/ADF sample - How to Search in Range with Single ADF Query Field

  • How to Search in Range with Single ADF Query Field. ADF Query supports out of the box between search operator. This operator is applied for single VO attribute, ADF renders two field (from and to) on UI to enter search range. We may have different use case - to display on UI only one query field and in the background to search by two different attributes (minimum and maximum range value). I will describe how to implement such use case, sample application is available for download as usual.
    Download - SearchInRangeApp.zip

Saturday, May 29, 2010

JDev/ADF sample - Use Case: View Criteria Conditionally Query-able Attribute

  • Use Case: View Criteria Conditionally Query-able Attribute. Today I will talk about specific use case - how to reuse the same ADF Task Flow with View Criteria for different scenarios. Generally, it is quite clear how to do this, however I will point on several tips and tricks. Hopefully, it will help you to implement stable design easier and with less effort.
    Download - ViewCriteriaConditionalQueryAttr.zip

Saturday, May 22, 2010

JDev/ADF sample - Yes-No Check Box in Query Criteria

  • Yes-No Check Box in Query Criteria. There are several posts on internet where it is described how to implement Yes-No (Y-N) type check box using ADF Faces boolean check box component. However, when you want to use Yes-No check box in Query Criteria, there is one additional trick should be applied - I will explain it today.
    Download - YesNoSearchBox.zip

Thursday, February 4, 2010

JDev/ADF sample - Default Value for Date Field in Query Criteria

  • Default Value for Date Field in Query Criteria. I got a question about how to assign default value for Date type field available in Query Criteria. Developer had a requirement to initialize Date type query field with date equal to 10 days before current date. This requirement is very simple for ADF and can be implemented in 5 minutes without writing any code.
    Download - DateSearch.zip

Wednesday, December 23, 2009

JDev/ADF sample - View Criteria Inside ADF Library

  • View Criteria Inside ADF Library. I got a question from blog reader, if its possible to include VO with View Criteria into ADF Library and later reuse this View Criteria from another ADF BC project. Reader was facing problems, so as usual I developed sample working application and now posting it here.
    Download - ViewCriteriaReuse.zip

Wednesday, September 30, 2009

JDev/ADF sample - Persisting Query Criteria Results Across Sessions with Oracle MDS

  • Persisting Query Criteria Results Across Sessions with Oracle MDS. For my previous blog post I got interesting comment from one of my readers - Husain. He was asking, how he can save search results across multiple sessions in Oracle ADF application. Actually, while asking he found solution by himself and updated my sample application from my previous post. Today I'll describe this updated application and will cover MDS topic for persisting query criteria results.
    Download - UserCustomizationsSession2.zip

Sunday, September 6, 2009

JDev/ADF sample - Programmatical Reset for Query Results

  • Programmatical Reset for Query Results. If you are using ADF Faces Rich Client af:query component in your application, probably you have noticed that if View Criteria is declared not to query automatically, query results are not cleared when Reset button is pressed. There is no bug in this, its how framework works by default, however what to do if customer wants to have it differently. Today I will describe how you can use executeEmptyRowSet() method in order to clear query results.
    Download - QueryReset.zip

Saturday, July 25, 2009

JDev/ADF sample - TrackQueryPerformed Property Usage and ADF Task Flows

  • TrackQueryPerformed Property Usage and ADF Task Flows. I will describe following scenario - two ADF Task Flows, second ADF Task Flow is opened as Isolated. First ADF Task Flow provides query functionality implemented as View Criteria, and second ADF Task Flow accepts current row key value and allows to edit data. Scenario is pretty simple, and can be implemented in Oracle ADF very fast. However, there is one trick if you open second ADF Task Flow as Isolated. I will describe it and provide solution.
    Download - TrackQueryPerformed.zip

Saturday, February 21, 2009

JDev/ADF sample - View Criteria and CRITERIA_AUTO_EXECUTE Property

  • View Criteria and CRITERIA_AUTO_EXECUTE Property. I'm writing today blog post, based on information found in following document - Known Issues for JDeveloper and ADF 11g (11.1.1.0.1). In current ADF release there is no option to control View Criteria automatic execution feature using Expression Language, auto execution can be set only decloratively in Edit View Criteria wizard, Control Hints section. However, its possible to control auto execution mode programmatically, using CRITERIA_AUTO_EXECUTE property. I will describe how to use this property and how it can be applied.
    Download - ViewCriteriaAutoExecuteHint.zip
Spanish Summary:

En este post se muestra como lograr la ejecucion automatica en los View Objects. Para ello Andrejus desarrolla un ejemplo con 2 tablas : una de departamento y otra asociada a los empleados. El efecto de ejecucion automatica se notará cuando ustede seleccione una fila de la tabla empleados y luego se mostrará la tabla de los empleados asociados a ese departamento los cuales se cargaron automaticamente.

Saturday, February 7, 2009

JDev/ADF sample - Improving Performance in ADF Applications - Page Load Time in Query Forms

  • Improving Performance in ADF Applications - Page Load Time in Query Forms. I have noticed, in documentation or sample applications, very basic and at the same time important problem usually is not discussed - initial Web page load time. When developer creates Web page with ADF framework, most often implementation is done in default way - on page load database is queried and row data is shown to the user. However, such default approach is very dangerous in large applications. In this post I will focus on Query type forms, CRUD type forms will describe in next post.
    Download - ADFPerformance.zip
Spanish Summary:

En este post, se muestra unos tips para mejorar la ejecución de las consultas usando Jdeveloper 11g. Para lograr este propósito Andrejus nos muestra de que manera podemos usar a los Query Criteria para inicializar la consulta de datos con valores vacios y evitar recargar los formularios de datos.