Description
Retrieves a list of servers registered with the System Landscape Directory (SLD) server.
Use this method when creating a window for logging into SAP Business One. Create a dropdown list of servers and allow the user to select the server to which to connect.
Syntax
| Visual Basic |
|---|
Public Function GetRegisteredServersList() As Recordset |
Example
| Getting a list of servers (C#) | Copy Code |
|---|
Company oCompany = new SAPbobsCOM.Company(); oCompany.SLDServer = "myServer:40000"; Recordset oRecordset = oCompany.GetRegisteredServersList(); while (!oRecordset.EoF) { Console.WriteLine(oRecordset.Fields.Item(0).Value.ToString()); oRecordset.MoveNext(); } |
|
See Also