cancel
Showing results for 
Search instead for 
Did you mean: 

Add Button in Sales Order

ramco1917
Participant
0 Kudos
166

Hi

  I have below code . I want to add button in Sales Order Form after Cancell Button

SAPbobsCOM.Company oCompany = new SAPbobsCOM.Company();
SAPbouiCOM.Application oApplication = new SAPbouiCOM.Application();

oCompany.Server = "10.0.1.28:30015";
oCompany.DbServerType = BoDataServerTypes.dst_HANADB;
oCompany.CompanyDB = "Test_LIVE";
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());
}

Thanks

View Entire Topic
nidhisingh14
Product and Topic Expert
Product and Topic Expert
0 Kudos
ramco1917
Participant
0 Kudos
Hi, i want to add button on any Form. Connection is o.k. Can you please help with sample code.