Access parent row data inside child table using Groovy expression.

Groovy script is the powerful scripting language and ADFBc has a good support with Groovy. Below article shows how to access parent row data in child table. Create model objects from the XE schema.




















Open the EmployeesView view object and go to structure panel.You can see all the view link accessors related to EmployeesView. 


Create a transient attribute called DeptName in EmployeesView and give the default value as groovy expression DepartmentsView.DepartmentName     ( <View_Link_Accessors_Name>.<Parent_Attribute_Name> ) .








Run the BC tester.

 


Environment : Jdeveloper 11.1.1.6.0
Database : Oracle XE
Download : Link



No comments:

Post a Comment