Redefining the Representation Type Associated with DomainTree
By default, the representation associated with an instance of a view type on the component side is an instance of IlsRepresentation. Thus, the following code sample defines a specification that associates a representation of type TreeRepresentation to each instance of CompanyTree. This representation has an attribute named resourceFile:
view CompanyTree:
represent TreeRepresentation repres:
string resourceFile="tree.ilv";
subscribe origin Company:
...
Note that the directive represent associated with a dynamic view type may appear either 0 or 1 time. This means that 0 or 1 representation only can be attached to one view type (whereas one server object type can be mapped to 0, 1 or n representation objects).
Version 6.3
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.