How to set default values of view object in Oracle ADF

When we insert new data in a row or when we call the create method of the view object, we may need some data by default in every row. This requirement has inbuilt support in Oracle ADF. We can complete this requirement by editing the EntityObject XML

Step 1-
Open the EntityObject.xml file

Step 2-
Go to the Properties and click on the Attributes section

 

Step 3-
Select the particular attribute for which you want to have default values

 

Step 4-
In the Default value section provide the literal value, this value will be put by default when you will try to add a new row


We have put the value "Drake", now this value will be used when we will try to add new row in the view object EmployeesVO

 

 

 

 

 

 

Comments