i have one entity object and i want to set default value of attribute like division which is based on employee code.
entity object based on table leavedetail and using refrence table employee_hdr(empcode ,division).
so how can i set default value of division attribute which is based on empcode attribute using SQL
yes user, fetish nailed correctly.
make some viewlink.
something like says as example.
make viewlinks between those vo's
important thing: exposed then source and destination accesor.
use groovy :
go to employee vo - create Department name field ( as transiest)
use this statement default value expersion type.
it will get the value. check over.
so this example well suits to your scenario.
i hope this will helps you.
well create is an video. to get the value using groovy.
Edited by: ADF7 on Apr 14, 2012 5:46 AM