on 05-22-2014 9:01 AM
Hi Expert
I have some problem with to load an Add-on
At my customer SB1 8.81 PL09 I load few add-on in order:
when i start SAp Business One .All add-on are loaded Automatically.
SAP Business One stop the load of my add-on by a message (Restart add-on, Continue without add-on ,Deonnect of society) as long as B1Up isn't load totally.
have you an idea to know this problem?
To connect my Add-on i use the follow code:
Dim sConnectionString As String
SboGuiApi = New SAPbouiCOM.SboGuiApi
'// by following the steps specified above, the following
'// statment should be suficient for either development or run mode
If Environment.GetCommandLineArgs.Length > 1 Then
sConnectionString = Environment.GetCommandLineArgs(1)
Else
sConnectionString = "0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056"
End If
'// connect to a running SBO Application
SboGuiApi.Connect(sConnectionString)
'// get an initialized application object
SBOAppli = SboGuiApi.GetApplication()
If you have a solution to resolve my problem I Buy it ( free naturally)!
Regards
Hi Jean Marc,
are you doing any other operations on startup like setting eventhandlers, make SQL queries etc. ?
Apart from that, I think your line
If Environment.GetCommandLineArgs.Length > 1 Then
should be
If Environment.GetCommandLineArgs.Length > 0 Then
regards,
Maik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
first of all I'm sorry - I was wrong. You are using GetCommandLineArgs where the first element is the file name - your code was right.
So problem is somewhere else.
Is it running from Visual Studio ( Debug mode ) ?
Is there any other code before or after connect that is executed on startup ?
regards,
Maik
Hi Jean-Marc,
There should be an exception firing... I would enclose the initialization code into a try - catch block and display the Exception.Message. By the way, it will also allow you to get the DI-API error code and description.
Mays you post the initialization code for your addon?
Regards,
Eric
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.