• 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 automatically select First value in ADF LOV inside a table?

Screenshots of and ADF View Object List of Value

When one of your attribute in your View Object is a List Of Values, ADF will add an unselected element that will be shown as the default value.
You will often be asked to have the first value being selected by default, to do that we need to add a function to the VO Implementation. (RowImplementation if the LOV is part of a table row)

Let’s see the following example of an ADF table with LOV on each line:

  • We have the VO that is used to display a table.
  • In this VO table, we have the NextStatus which is an LOV based on another VO (see http://www.awasthiashish.com/2015/02/adf-basics-set-multiple-lovs-on.html)
  • In the RowImpl.java we add the following function to return the first value if no value is already selected
  • In the Detail panel of the attribute add the following Default Value Expression: adf.object.defaultNextStatus()
  • In the Detail panel of the attribute set the refresh Expression Value to false to avoid picking the first value again in case of ppr/refresh
Screenshot of the Refresh Expression Value VO attribute option

Screenshot of the Refresh Expression Value VO attribute option

That’s it, the first value of the LOV will be automatically selected before display.

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