Screenshots of and ADF View Object List of Value

How to automatically select First value in ADF LOV inside a table?

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
  • In the 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

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

2 thoughts on “How to automatically select First value in ADF LOV inside a table?”

    1. Hi DK,
      it’s in the Detail panel of the VO attribute right below where you set the Default Value Expression.
      I updated the post to add a screenshot. Hope it helped!

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top