Monday, November 14, 2011

ADF BC : Default Value for Attribute

If you want assign default value to attribute when creating row in ADF BC then do the following.

I am explaining with temporary field.

Create DefaultValAttr in EO and Set the Literal to default value 1. This can be any attribute EO Attribute , Transient etc.

So when you create a row in EO then this attribute will have value 1.

image

Add this attribute to VO

image

When I created the row ,it assigned 1 to defaultvaluettr , this applied to any type of attribute.

image

2 comments:

  1. and what happens is the default value must be provided externally .. I mean a variable default value..

    ReplyDelete
  2. Yes you can do that too. Just give #{scope.variablename} or #{beanname.variablename}

    ReplyDelete