Time for action – adding the view link to the application module
Now we are
going to add EmpVOToDeptVOLink
to the application module to display the master-detail relationship between the EmpVO
and DeptVO
objects. Adding the view link to the application module will help in retrieving the employees within a particular department.
The following steps show how to add a view link to the application module:
Double-click on the
EmpDirectoryModule.xml
file fromcom.empdirectory.model.am
.Open the Data Model section to select the view object instances.
Select the view link accessor for the
DeptVO
in the Available View Objects: section. In the Data Model section, selectDeptVO1
(which is the view object instance name inEmpDirectoryModule
).Shuttle the view object to the Data Model section. Now the
EmoVO2
object will be added as a child toDeptVO1
. This represents the view link association betweenDeptVO
andEmpVO
.The instance name for the view link is
EmpVO3
, in my case.Save the
EmpDirectoryModule
.xml...