on ‎2022 May 02 2:11 PM
I have a login page and I want to display the list of Company DB available in a certain DB server. I am aware of the oCompany.GetCompanyList but how do I use it when I was just about to login?
Request clarification before answering.
Here is a code sample private List<Company> GetDatabasesForServer(string server, BoDataServerTypes serverType, BoSuppLangs language)
{
var result = new List<Company>();
SAPbobsCOM.Company c = new CompanyClass
{
Server = server,
DbServerType = serverType,
language = language
};
Recordset rs = c.GetCompanyList();
while (!rs.EoF)
{
string dbName = rs.Fields.Item(0).Value.ToString();
string name = rs.Fields.Item(1).Value.ToString();
result.Add(new Company(dbName, name));
rs.MoveNext();
}
return result;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 26 | |
| 18 | |
| 14 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.