Rogue Wave Server/Rogue Wave Views Integration > Server/Views Mapping > Server/Views Mapping Component > Function IlsMvComponent::Connect
 
Function IlsMvComponent::Connect
This function establishes the connection with a server and returns a component. You can then use this component to open views on objects if they had been declared on the server.
For example:
IlsMvComponent* comp = IlsMvComponent::Connect("network1", "host");
if (comp) {
IlsSwComponent* swComp = IlsSwComponent::Narrow(*comp);
if (swComp) {
swComp->openSwView("object1", "view1");
}
}
For the component to be initialized, a valid Rogue Wave Views display or Rogue Wave Views application must be supplied. Multidisplay applications cannot be used with the Server/Views mapping library. If you provide an Rogue Wave Views application, this application will be used to store panels that are created by IlsSwRepresentation object when a view is opened without a Server data source.
The class IlsSwComponent is a central class when it comes to:
*opening a new view (see Opening Views in the Server/Views Mapping);
*managing user types (see Managing User-Defined Server Object Types).
As a subclass of IlsMvComponent, IlsSwComponent has all features of this base class, such as acknowledgement of view opening, transaction management, and others.

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