Dynamic View Services > Specifying Dynamic View Types > Server Object Subtypes and View Type Specification
 
Server Object Subtypes and View Type Specification
Notification to Server Object Subtypes
In the CompanyTree specification, the runtime type Manager has no associated specification. When the server has to notify an object of this type, it executes the specification supplied for its parent type Employee.
If you want a subtype to be notified differently from its parent type(s), you can define a specification for it.
For instance, if you do not want the manager to appear as an employee in the tree representation of a department, write the following specification:
view CompanyTree:
 
...
subscribe Department:
represent TreeItemR item:
           ...
    propagate employees;
 
subscribe Employee:
represent TreeItemR subItem:
Ref<TreeItemR> ownerItem=department->item;
string label=name;
subscribe Manager:
# no representations

Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.