B1DE Add-on
Hi,
I wrote an addon using B1DE, but now I cannot run it on a different workstation. How to configure this addon to make it work on a computer with different sql username and pass?
Hi Piotr,
If your add-on uses both the DI API and the UI API, the B1DE should have automatically created the code for what is called a 'single sign-on'. This means that the required connection details are passed by SBO to the add-on when you start it up from within SBO. Therefore, your add-on should automatically work on another SBO system (assuming that the versions are the same and that both have the correct DI API and .NET framework installed).
What errors are you getting and when do they appear?
Kind Regards,
Owen
Similar Messages
-
Hey Gurus,
We have developed an Add-on using the code generator wizard from the B1DE. The Add-on runs fine on machines, where Microsoft Visual Studio .Net 2005 is installed. But it crashes on the PCs, where .Net Framework 2.0 is installed properly and do not have Microsoft Visual Studio .Net installed.
Below are the few information that can help you to track down the issue.
System: SAP Business One 2005 A (6.80.318) SP:01 PL:10
SQL: SQL 2005
.Net Framework: 2.0
Add-on created using: B1DE Add-on Wizard
Error Message:
System.Reflection.ReflectionTypeLoadException
Message: "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information."
Source: "mscorlib"
I did rebuilt the add-on using B1DE, copied my code in the new solution file and the Add-on worked for few days, now it started giving me the problem again
Any help in this regards will be rewarded.. I mean will be highly appreciated..:)
Thanks & Regards,
~BibsHey Rob,
Thanks for the reply.
I did use the B1DE Add-on generator for my Add-on code and the wizard generated the correct and the latest dll i.e., B1WizardBase.dll.
My Add-on works if i rebuilt a new solution and move the code from the old solution file to the latest solution.. But the problem persist after some days..
I think I have mistakenly unmarked my post as normal post and no one wants to help for a post which will not give any rewards...???
Regards,
~Bibs -
Hi,
I did use B1DE to make the installer for my addon
Everything is working perfectly in my development environment which i did install the addon with success.
As soon as I try on the client machine I got the error
Add-on MyAddon : Add-on %s - uninstall failed.
And believe it or not this error appear when I click INSTALL on SAP dialogbox and it is the first time I'm trying to install the add-on on this machine
Any idea ?I don't know if SAP would like us doing this, but when I have a problem where the addon install/uninstall is failing, I go to a text file that sap has on the client machine & remove the xml in the file for my addon. (This wouldn't be a good thing to do if you really do have another addon of the same name). The file is C:\Program Files\SAP\SAP Business One\AddOnsLocalRegistration.sbo.
It has a lots of xml describing each addon installed on the local client. You can CAREFULLY delete all the XML for just your addon (copy the file first) and then save it. Do this when the SAP client is not running.
The code for one addon looks like this:
<AddOn Exe="XXCSBOAddOnMCD.exe" Installer="XXDAddOnMCD_Installer.exe" InstallerMD5="8979d3f0598d8a72ba06c6e91f550868" Name="XXDSBOAddOnMCD" Path="C:\Program Files\SAP\SAP Business One\AddOns\XXD\XXDSBOAddOnMCD" Space="XXD" UID="XXD_XXDSBOAddOnMCD" UnInstEstTime="0" UnInstParams="/x" UnInstaler="XXDSBOAddOnMCD_Installer.exe" UnInstallerMD5="8979d3f0598d8a72ba06c6e91f550868" Ver="1.0"><Common ID="20" Name="vmsqlsap01"/><Common ID="6" Name="JOHNCHADWICK\SQLEXPRESS"/></AddOn>
There will likely be lots of other code in there that looks almost the same, but for other addons) that you don't want to touch, but you can see that what should be deleted is everything between the <Addon .... and </AddOn> for your addon. Like I said be VERY careful not to delete more than you should. NOTE also at the very end of the document is </Addons> - You sure don't want to delete that!
Also go to the C:\Program Files\SAP\SAP Business One\AddOns folder, find the folder for your addon from among the subfolders & delete your addon's folder, if it is there. Again BE CAREFUL.
This process has helped me out many times. -
I am unable to show icon using XML menu in B1DE.
Please help me.
Giuseppei had the same problem, and i couldn't resolve this,
so i load the image after b1De connect the company
Edited by: Danilo Kasparian on Oct 5, 2009 7:27 PM -
Hey Gurus,
We have developed an Add-on using the Add-on code generator wizard from the B1DE. The Add-on runs fine on machines, where Microsoft Visual Studio .Net 2005 is installed. But it crashes on the PCs, where .Net Framework 2.0 is installed properly and do not have Microsoft Visual Studio .Net installed.
Below are the few information that can help you to track down the issue.
System: SAP Business One 2005 A (6.80.318) SP:01 PL:10
SQL: SQL 2005
.Net Framework: 2.0
Add-on created using: B1DE Add-on Wizard
Error Message:
System.Reflection.ReflectionTypeLoadException
Message: "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information."
Source: "mscorlib"
I did rebuilt the add-on using B1DE, copied my code in the new solution file and the Add-on worked for few days, now it started giving me the problem again
Any help in this regards will be rewarded.. I mean will be highly appreciated..:)
Thanks & Regards,
~BibsHi Edward,
I have upgraded the system to PL 44 and did build the add-on but the error still persists, after a detailed research I came to the solution that it is because of the crystal report used in my solution.
After removing the crystal report and all its reference I was able to build my add-on and it is working fine. Now I dont understand how to include the crystal report in my solution
Any help in this regards will be appreciated
Thanks & Regards,
Bibish
PS: I have used Visual Studio 2005 for my solution and have used the inbuilt crystal report of .Net for my reports. -
Purchase Requisition Addon Error
Hi Experts,
While im trying to install Purchase Requisition Addon in client system showing this error:
Error while trying to install the addon.
"EndInstallEx returned - 2"
can any one suggest me to solve this issue,
thanks in advance.Hi Anand,
Check the following thread
AddOn Manager ....Installed Addons
Re: B1DE add-on installer problem
Re: Installation of SAP Addon
*Close the thread if issue solved.
Regards
Jambulingam.P -
How to add multiple table when creating add on using b1de
Hi all,
Plz help me
How to add multiple table when creating add on using b1de.
ThanksHi dns_sap,
Can you explain a little better what you are trying to accomplish? Is it to create UserTables and UserFields in the database, when the addon runs the first time?
If so, you can use the following code
Add User Table
Try
Dim lRetCode As Long
Dim oUDT As SAPbobsCOM.UserTablesMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserTables)
oUDT.TableName = TableName
oUDT.TableDescription = TableDescription
oUDT.TableType = TableType
lRetCode = oUDT.Add
'// Check for error when adding the Table: if lRetCode = 0 the table was created; if lRetCode = -2035 the table already exisits
If lRetCode <> 0 Then
oApplication.MessageBox("Error: " & lRetCode.ToString & ", " & oCompany.GetLastErrorDescription)
End If
Catch ex As Exception
oApplication.MessageBox(oCompany.GetLastErrorDescription)
Finally
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUDT)
oUDT = Nothing
lRetCode = Nothing
GC.Collect()
End Try
Add User Field
Try
Dim lRetCode As Long
Dim oUDF As SAPbobsCOM.UserFieldsMD = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
oUDF.TableName = TableName
oUDF.Name = FieldName
oUDF.Description = FieldDescription
oUDF.Type = FieldType
lRetCode = oUDF.Add
'// Check for error when adding the field: if lRetCode = 0 the field was created; if lRetCode = -2035, the field already exists
If lRetCode <> 0 Then
oApplication.MessageBox("Error: " & oCompany.GetLastErrorCode & ", " & oCompany.GetLastErrorDescription)
End If
Catch ex As Exception
oApplication.MessageBox(oCompany.GetLastErrorDescription)
Finally
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUDF)
oUDF = Nothing
lRetCode = Nothing
GC.Collect()
End Try
Regards,
Vítor Vieira -
How to Create add-on using B1DE tools
Hi,
How to create add-on using B1DE tools. if any documentation is there, send me or attached document.
Thanks,
P.Suresh KumarHi,
Here is the link to find out the info about B1DE:
[Content Deleted]
http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/a175fb62-0c01-0010-a8b5-fa58a13b1cf7 [original link is broken]
you may check them. Happy checking.
JimM
Message was edited by: Jason Lax -
User B1DE to deploy an add-on Created by SAP Business one studio for VS?
Hello, Experts
I created a SAP B1 addon by SAP Business one studio for Visual studio. And I use SAP B1DE to deploy my add-on. But unfortunately, the add-on cannot even started, can anyone guide me how to deploy the add-on?
The B1DE only works on deploying old tradition add-on. But we want to take advantage of the advanced SAP B1 Studio. It can save us a lot code and improve the efficiency a lot.
Thanks in advance.
Really appreciated!Please help ~~~
-
Deploy crystal report with add-on package by b1de
Hi
I have some problem with add-on installer. after i package add-on by b1de, I install it on client machine. It works correctly. But when i call report, It have error with crystal report license code and .dll. I found solution that solve that problem. I must include crystal report merge module and License code into windows installer project. But i use b1de to package. How i can include crystal report merge module and License code into b1de project . If anybody have other method to package crystal report into b1de. please help me.
Regards,Seangfor this problem I created window installer which only have merge modules of crystel report & provide it to user to install it as well , bcz sap installer was not including merge modules
, how ever u can try professional installer of SAP DE
but I have not try it, -
hi,
Please tell me if i create the add-on through B1DE 2005(professional), it will support or not 64 bit Operating Systems like windows 2003 server?you can create 64 bit apps with visual studio
this link might help you
[How to create 64-bit apps|http://blogs.msdn.com/deeptanshuv/archive/2006/04/11/573795.aspx] -
Can't build add-on in vs 2003 by B1DE 2005SP01
Can't build add-on in vs 2003 by B1DE 2005SP01
when i use B1DE 2005SP01 i try to reinstall vs2003,B1DE 2005SP01 but can't solve problem
http://www.uploadtoday.com/download/?296573&A=714675Hello dde,
Please make sure you're using the right B1DE 1.2 for VS 2003.
[Content Deleted]
=>* B1DE 1.2 version for Visual Studio .NET 2003 and .NET Framework 1.1
=> Choose the right SDK version also.
if you are using the right version, please check the followings.
1.Can you create a installaer with the standard windows installation wizard, not SAP B1 installer wizard.?
2.Can you create a brand new installer with SAP B1 simple installer wizard?
Kind Regards, Yatsea
Message was edited by: Jason Lax -
Add-on deployment issues with B1DE 1.4
Dear Expert,
Uing B1DE have already created the installer files with the help of to do list provide by B1DE
Professional Installer , but i am getting an error when running the setup
Please help on this issue
this is the error i am getting
Exception occours while initilizing the installation.
System .Io.filenotfoundexception:could not load files or assembly.
C:
windows\system32\files\sap\sap or one of its dependecies.
system can not find the files sepcified.
All the process is done according to the dolist provided by the B1DE
Edited by: Emon Mukherjee on Apr 25, 2009 2:24 PMHi Emon,
I sometimes get that when installing a newer version of a addon. The only way I found to correct it is by going through the registry and deleting all keys related to the addon.
Regards,
Vítor Vieira -
Add on: Object reference not set to an instance of an object
This message only appears when each user first installs the add on or every time the add on is started manually. If it is automatically started it does not happen. It does not happen in debug mode either.
The add-on still runs and works normally after the message is responded to (but the same message may appear between 2 to 7 times before you can clear it).
I'd appreciate any help - I'm completely baffled.
I'm using Visual Studio 2003 and used the B1DE install wizard to create the installer package and the .ard file. I am also using the DI & use the single-sign on procedure to connect to the application.
SAP VERSION: 2005A (6.80.123) SP: 00 PL: 07
THANKS!!John,
Although I do not remember this being an issue, you are on an older Patch Level for Business One 2005A. The latest patch level for Business One 2005A, if you are not on 2005A SP01, is Patch Level 11. You may want to download this and make sure that you uninstall and re-install the updated DI API on the workstation.
HTH,
Eddy -
A/R Invoice, Add, Do a Test, B1 Continue or My Error Message
Hi,
I like to do a test after you press Add in A/R Invoice.
1) Do my test
2A) Test OK, B1 Message comes: You cannot change this document after you have added it. Continue?
2B) Test NOT ok, my message comes "Hello; we have a error. Continue?" and we go back to the FORM 133 without B1 message if No is selected.
Thank you,
Rune
Edited by: Rune Brattas on Apr 16, 2009 4:25 PMHello Rune,
I use the B1DE, this is a very usefull tool and can save a lot of time.
free for download: [Click here|https://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/a099e0cb-0f44-2a10-85a3-b24cd46619f4]
You can see the reference B1WizardBase, that's part of the B1DE.
Here a code snippet example that I created for you:
namespace Test
using SAPbobsCOM;
using SAPbouiCOM;
using B1WizardBase;
using System;
public class Form__133 : B1Form
public Form__133()
FormType = "133";
[B1Listener(BoEventTypes.et_FORM_DATA_ADD, true)]
public virtual void OnBeforeFormDataAdd(BusinessObjectInfo pVal)
bool ActionSuccess = pVal.ActionSuccess;
Form form = B1Connections.theAppl.Forms.Item(pVal.FormUID);
return DoYourTest();
private bool DoYourTest();
int i = 1;
if (i>0)
return true;
else
return false;
Maybe you are looking for
-
I used to be able to import a Camera Archive in the previous version of iMovie. How can I do the same with the latest iMovie version (10.0.5)? Is it even possible? Thanks!
-
I have application which call adobe live cycle service such as assembler service,form data integration service,reader extension service etc. in my application we set timeout as 30 min. when i call large files for assembling and it looks like assembl
-
Unable To Access SAP Support Portal
Hi Guys, When i tried to connect SAP Support Portal i am getting the fallowing Error. An authorization error occurred when you tried to access the requested document. This may be because you are not authorized to access this document. But on other Ma
-
Download mountain lion free on my macbook pro with retina display
How can I download mountain lion free on my macbook pro with retina display since I bought it after June 11th?
-
10.1.3.3 patch set 3 compatible with Win2003 server?
Oracle® Application Server Patch Set Notes 10g Release 3 (10.1.3) Patch Set 3 (10.1.3.3.0) for Linux and Microsoft Windows Is this compatible/certified for both Windows XP and Windows 2003 server? My dba/sysadmin wants to know this before we even ins