on 05-02-2022 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?
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 |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.