Business Objects and Data Sources > Off-Page Connectors > Creating an Off-Page Connector with the API

The following example shows how to create an off-page connector and add it to a network component.

How to Create an Off-Page Connector with the API
IltDefaultDataSource dataSource = new IltDefaultDataSource();
IltOffPageConnector opc = new IltOffPageConnection("Region B");
IlpPoint center = new IlpPoint(190, 190);
opc.setPosition(center);
datasource.addObject(opc);}