on 01-04-2008 10:29 AM
Hello,
I've developed a form and I registered the addon also.
But, the problem is ---if I open SAPB1 it's showing the message to restart the addon. After restarting the AddOn is running OK but it's really a bug.
(I've done the Filtering.)
Whereas another form as addon is running properly.
How will I solve it?
Rgds
Subrata
Hello Subrata,
Maybe you can debug your form in your programming-environment and take a better look at your code.
Did you use the SAP addon wizard? Which version of SBO and patch level you use?
Good luck!
Best regards,
Teun Aben
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When I debug from my programme environment, it is running properly.
But, after AddOn registration the problem occurs.
I've not done the programming in SAP B1 Environment.
But, I've created the Installer program in
SAP B1 AddOn Installer .Net Wizard.
I'm using SAP Business One 2005B-
SP:00 PL 35
Basically, Like Sales-A/R , I've built a module "Dealer".
And under "Dealer" there are multiple form . I've created and debug all forms in programming environment.
But, after AddOn registration first form under "Dealer" Module is running properly, but all other forms those are using the unique menue id of first form shows "Addon Restart" message after afew times of opening the AddOn.
The line I used in each form under the first form.....
oMenuItem = SBO_Application.Menus.Item("SM_DMID")
whereas "SM_DMID" is the Unique Id of First form under "Dealer" module.
Thanks
Rgds
Subrata
Try something like this:
// INIT CONNECTIONS
retCode = B1Connections.Init(connStr, addOnIdentifierStr, diRequired);
// CONNECTION FAILED - TRY AGAIN... 😛
if ((retCode != 0))
{
System.Threading.Thread.Sleep(2000);
retCode = B1Connections.Init(connStr, addOnIdentifierStr, diRequired);
// ...AND AGAIN...
if ((retCode != 0))
{
System.Threading.Thread.Sleep(5000);
retCode = B1Connections.Init(connStr, addOnIdentifierStr, diRequired);
// UPS
if ((retCode != 0))
{
System.Windows.Forms.MessageBox.Show("ERROR (" + retCode + "): " + B1Connections.diCompany.GetLastErrorDescription());
return;
}
}
}
Sorry, I thought you are using B1DE.
So try something like that:
int ret = 0;
// INIT CONNECTIONS
ret = company.Connect();
// CONNECTION FAILED - TRY AGAIN... 😛
if ((ret != 0))
{
System.Threading.Thread.Sleep(2000);
ret = company.Connect();
// ...AND AGAIN...
if ((ret != 0))
{
System.Threading.Thread.Sleep(5000);
ret = company.Connect();
// UPS
if ((ret != 0))
{
System.Windows.Forms.MessageBox.Show("ERROR (" + retCode + "): " + company.GetLastErrorDescription());
return;
}
}
}
Hello Marek Roszatycki ,
I did it, but not solved yet.
After each 5/10 minutes the AddOn shows me a message of "Restarting the AddOn".
After restarting it was running perfectly .
And Now after adding your code it shows me the
"ERROR(0):Unknown Session " and itemevents are not working whereas form opens.
I can't understand.
Need Help.
Rgds
Subrata
Edited by: Subrata Chatterjee on Jan 8, 2008 6:22 AM
Is it the only AddOn you start with SBO?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
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.