on 02-02-2008 7:48 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.