• Tutorial
    • AWS
    • Oracle
    • WordPress
    • Azure DevOps
  • About me
Tutorial
    AWS
    Oracle
    Wordpress
    Azure DevOps
About me
cedricleruth - It's still magic even if you know how it's done
  • Tutorial
    • AWS
    • Oracle
    • WordPress
    • Azure DevOps
  • About me

How to unapply a View Criteria programmatically from a View Object in ADF?

Screenshot of an ADF 11g View Object with View Criteria

Yesterday, I shared a quick tip on how to apply a ViewCriteria in your ADF Controller project. ( www.cedricleruth.com/how-to-apply-a-viewcriteria-programmatically-in-adf/ )

And if you’re using this snippet, you may also need to remove this ViewCriteria from the ViewObject programmatically.

A typical use case is a toggle button on top of an ADF table to only display specific data on demand.

Here is how to do so :

How to apply a viewCriteria programmatically in ADF?

Screenshot of an ADF 11g View Object with View Criteria

You often need to filter and modify the where clause of your view object programmatically in your controller bean depending on a user action. (for example, a click on a button will show a different set of data in the same table)

To do so you can either add the where clause programmatically in the controller or apply specified view criteria.
As a best practice and to allow a better maintainability I would always recommend applying a view criteria as any action on the data should be done in the model. (And it will be easier for you to update it if needed)

Want to be notified when there is more?

Get in touch:

Categories

  • AWS EC2
  • AWS Lambda
  • AWS S3
  • AWS Tutorials
  • Azure DevOps
  • Highlight
  • IT Architecture
  • Oracle ADF
  • Oracle Database
  • Oracle SOA Suite
  • Oracle Tutorials
  • Route53
  • Tutorials
  • Weblogic
  • Wordpress Tutorials

Read more about:

ADF Apache AWS Bean binding bpel Certificate cli cloud convert Database Deployment EC2 ERROR Exception file First Value GIT HTTPS Icons IllegalStateException iterator Java Jdevelopper lambda Oracle Oracle ADF Performance php programmatically RichTable route53 row S3 script sendRedirectforward soa sql SSL table View Criteria View Object VO weblogic WordPress