Tutorial: Building an Rogue Wave Server Application > Using Dynamic Modeling Services > Defining the Behavior of the Application > Define Implementation of the display Method
 
Define Implementation of the display Method
The display method is a member function of the class Network. You must define its Rogue Wave Views Script implementation. Its purpose is to display all domains of the network. As it is a member function, its name is prefixed by the name of its class and the function takes the object on which it is called is as its first argument.
This function initializes a new iterator on the domains relationship and displays the name of each domain reached at each iteration.
function Network_display(network)
{
writeln("Display all domains for " + network.identifier);
 
// create an iterator
var i = new IlsServerRelationIterator(network.domains);
while (i.next()) {
writeln("==> Domain " + i.current.name);
}
}

Version 6.3
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.