cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate a row value automatically...(row count)

Former Member
0 Kudos

Hi,

I have a Table in my application with fields like

ID CNAME

i should generate the values for the ID field dynamically with a Prefix..also this ID field is not visible to users, its for the database update alone...

Thanx.

Arjun.G

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Make this Id attribute calculated.

When you make an attribute calculated you will be able to see the getter method created for the attribute

In side the getter you can generate the value you needed.

For Ex.

public java.lang.String getID(IPrivateTestCompView.IContextElement element)

{

//@@begin getID

return UUID.randomUUID().toString() ;

//@@end

}

Regards

Ayyapparaj