Define Implementation of the display Method
The display method is a member function of the class Network. You must define its 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);
}
}