a month ago
Hi
In below code what value should be passed to sboGuiApi.Connect. Currently it is Dummy value.
sboGuiApi.Connect("0030002");
oCompany = new SAPbobsCOM.Company();
oCompany.Server = "NDB@10.0.1.28:30015";
oCompany.DbServerType = BoDataServerTypes.dst_HANADB;
oCompany.CompanyDB = "LIVE_Database";
oCompany.UserName = "manager";
oCompany.Password = "123";
oCompany.language = BoSuppLangs.ln_English;
oCompany.UseTrusted = true;
int connectionResult = oCompany.Connect();
if (connectionResult != 0)
{
throw new Exception("Error connecting to SAP Business One: " + oCompany.GetLastErrorDescription());
}
SboGuiApi sboGuiApi = new SboGuiApi();
sboGuiApi.Connect("0030002");
Thanks
Request clarification before answering.
Hi ramco1917,
Kindly always use the following value to make the UI API connection:
0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056
It is supplied by SAP and is valid for both development and run time.
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ramco1917,
If you have got the solution, please help to close the thread.
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
User | Count |
---|---|
87 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.