SBO 2004
Hi all:
I have just recieved the version SBO 2004, and in reference of the UI, I want to know when they will be available the tree control and Hierarchical's tables, because I need this structure to make a project.
Thanksssssss
Heard too, that B1 2004 supports ActiveX using B1 UI forms. How to use ActiveX component on a form ? Is it possible to host an ActiveX form on a B1 UI form ?
The idea is, the component palatte from B1 is not that rich and the UI components (for example Matrix) are not that smart. We want to make an ActiveX form and place the whole ActiveX form on the UI form of B1. By this way, we still using B1 forms with their layout and keeping the MDI child order, instead of using a normal WinForm, which will be hidden from the B1 client, when activating it and loosing the Z-order of the MDI.
Similar Messages
-
I heard, that SBO 2004 now supports ActiveX at the UI API. Where can I find an ActiveX sample ? We want to use ActiveX forms, instead of only a control, by this way we will want to be able to use .Net components directly via a WinForm as ActiveX form in a SBO UI form.
I have also read about .Net connectors. Are they available in SBO 2004 ?
Greetz
KristianHere is a link in the forums "SAP Business ONE" where they talk about this:
SBO 2004
Perhaps posting your message there will give you a better response.
Message was edited by: Craig Cmehil -
Version incompatibility issue with Interop.SAPbobsCOM.dll in SBO 2004
Hi,
I have encountered an incompatibility issue in DI API 2004 across different patch level-versions. Originally, I developed an application in SBO 2004 pl4 environment. Now, some of the customers who were installing the application, notified me that the application has a login problem. It turned out that the CompanyClass.connect() method returns an error message "object reference not set to an instance of an object", when the DI API version installed in the production environment is higher (in this case, pl7) than the DI API version which was used in the development environment.
I figured out that the problem can be fixed by replacing the Interop.SAPbobsCOM.dll file in the application directory by a newer version that reflects the DI API that is installed in the system. However, it seems a rather lousy workaround, if the customer needs to manually replace the dll. Maybe the installer could be customized to "sniff" the correct DI API level, but this too would be a pretty kludgy solution.
Does anyone know a better solution to this problem ?
Regards,
Henrynormally this is not a problem as long as they don't change the signatures on the DI-API (which they said they wouldn't) but it appears in P5 they changed that signature... we noticed some enums that got added and a few minor changes.
-
How can I get license info using SBO 2004
Hi, everyone
I know there is a License API available in SBO 2005, but I'd like to detect the user license number etc. in SBO 2004, who has experience about get license info in SBO 2004, please share your method.
Thanks in advance!Hi Alexey,
Thanks for your reply; actually I want to get the user buy SAP License Number, in other word I want to get the maximum count of user using SAP in the same time.
I can see the license directory, do you know which file and entry point that I can get the license number.
and also if my add-on does not run in the machine that license server running, I think may be there is none license directory in the machine which does not install server tools, if this is true, do I need use other way to get the SAP license info?
Thanks again Alexey! -
If Choose from list function included after SBO 2004 patch 31?
Hi, there
I know Choose from list function valid in SBO 2005, but I don't know if it is included in SBO 2004, especially after SBO 2004 patch 31?
Thanks.Hi Indika,
You are right - the Choose from list is only available from SBO 2005. -
Hello All,
Can I install SBO 2004 and 6.5 in one system?
Johnyes, if you go to the service marketplace and search SAP Notes for #765303 or you can search under the Application Area SBO-BC.
Craig. -
Rightclick and context menu functionality in SBO 2004
hi guys...
how to capture the right click event and the context menu event. I have seen the right click example in the SBO 2005 examples but how to get that functionality in SBO 2004, there r no SAPbouiCOM.ContextMenuInfo and SBO_Application.RightClickEvent
thanx in advance..
regards,
Vasu..Hi,
I don't think you can achieve this in the 2004 version as it was an entirely new feature in the 2005A SDK.
Regards,
Owen -
I have problem to register add-ons to SBO 2004
-. I am using sample HELLO WORLD providing for SDK 2004.
-. I build the installer using packager default of Visual Basic 6.0.
-. i builf file .ard
-. when i register the add-on and restart SBO 2004, the system show the message error:
"Command Line arguments..."
Someone, have a procedure step by step to register add-ons to SBO?
thanksYou need to declare this functions from the SBOAddonReg.dll.
I got this code from SAP, hope this works, it's VB .NET
Also: To use the license key I go to Project/Project properties/Configuration properties/Command line arguments
and I copy the license to this field, and it works.
Did you try from command line something like this?
c:\project.exe license_key
2) Code for a useful application
contact me, if you don't understand the example:
[email protected]
Option Strict Off
Option Explicit On
Friend Class Form1
Inherits System.Windows.Forms.Form
#Region "Windows Form Designer generated code "
Public Sub New()
MyBase.New()
If m_vb6FormDefInstance Is Nothing Then
If m_InitializingDefInstance Then
m_vb6FormDefInstance = Me
Else
Try
'For the start-up form, the first instance created is the default instance.
If System.Reflection.Assembly.GetExecutingAssembly.EntryPoint.DeclaringType Is Me.GetType Then
m_vb6FormDefInstance = Me
End If
Catch
End Try
End If
End If
'This call is required by the Windows Form Designer.
InitializeComponent()
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal Disposing As Boolean)
If Disposing Then
If Not components Is Nothing Then
components.Dispose()
End If
End If
MyBase.Dispose(Disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
Public ToolTip1 As System.Windows.Forms.ToolTip
Public WithEvents CmdUnReg As System.Windows.Forms.Button
Public WithEvents CmdReg As System.Windows.Forms.Button
Public WithEvents CmdExit As System.Windows.Forms.Button
Public WithEvents CmdAddOnStr As System.Windows.Forms.Button
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container
Me.ToolTip1 = New System.Windows.Forms.ToolTip(Me.components)
Me.CmdUnReg = New System.Windows.Forms.Button
Me.CmdReg = New System.Windows.Forms.Button
Me.CmdExit = New System.Windows.Forms.Button
Me.CmdAddOnStr = New System.Windows.Forms.Button
Me.SuspendLayout()
'CmdUnReg
Me.CmdUnReg.BackColor = System.Drawing.SystemColors.Control
Me.CmdUnReg.Cursor = System.Windows.Forms.Cursors.Default
Me.CmdUnReg.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.CmdUnReg.ForeColor = System.Drawing.SystemColors.ControlText
Me.CmdUnReg.Location = New System.Drawing.Point(24, 112)
Me.CmdUnReg.Name = "CmdUnReg"
Me.CmdUnReg.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.CmdUnReg.Size = New System.Drawing.Size(153, 25)
Me.CmdUnReg.TabIndex = 3
Me.CmdUnReg.Text = "UnRegister"
'CmdReg
Me.CmdReg.BackColor = System.Drawing.SystemColors.Control
Me.CmdReg.Cursor = System.Windows.Forms.Cursors.Default
Me.CmdReg.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.CmdReg.ForeColor = System.Drawing.SystemColors.ControlText
Me.CmdReg.Location = New System.Drawing.Point(24, 64)
Me.CmdReg.Name = "CmdReg"
Me.CmdReg.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.CmdReg.Size = New System.Drawing.Size(153, 25)
Me.CmdReg.TabIndex = 2
Me.CmdReg.Text = "Register"
'CmdExit
Me.CmdExit.BackColor = System.Drawing.SystemColors.Control
Me.CmdExit.Cursor = System.Windows.Forms.Cursors.Default
Me.CmdExit.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.CmdExit.ForeColor = System.Drawing.SystemColors.ControlText
Me.CmdExit.Location = New System.Drawing.Point(24, 160)
Me.CmdExit.Name = "CmdExit"
Me.CmdExit.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.CmdExit.Size = New System.Drawing.Size(153, 25)
Me.CmdExit.TabIndex = 1
Me.CmdExit.Text = "Exit"
'CmdAddOnStr
Me.CmdAddOnStr.BackColor = System.Drawing.SystemColors.Control
Me.CmdAddOnStr.Cursor = System.Windows.Forms.Cursors.Default
Me.CmdAddOnStr.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.CmdAddOnStr.ForeColor = System.Drawing.SystemColors.ControlText
Me.CmdAddOnStr.Location = New System.Drawing.Point(24, 16)
Me.CmdAddOnStr.Name = "CmdAddOnStr"
Me.CmdAddOnStr.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.CmdAddOnStr.Size = New System.Drawing.Size(153, 25)
Me.CmdAddOnStr.TabIndex = 0
Me.CmdAddOnStr.Text = "Create AddOn String As File"
'Form1
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.BackColor = System.Drawing.SystemColors.Control
Me.ClientSize = New System.Drawing.Size(202, 206)
Me.Controls.Add(Me.CmdUnReg)
Me.Controls.Add(Me.CmdReg)
Me.Controls.Add(Me.CmdExit)
Me.Controls.Add(Me.CmdAddOnStr)
Me.Cursor = System.Windows.Forms.Cursors.Default
Me.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Location = New System.Drawing.Point(4, 23)
Me.Name = "Form1"
Me.RightToLeft = System.Windows.Forms.RightToLeft.No
Me.Text = "Form1"
Me.ResumeLayout(False)
End Sub
#End Region
#Region "Upgrade Support "
Private Shared m_vb6FormDefInstance As Form1
Private Shared m_InitializingDefInstance As Boolean
Public Shared Property DefInstance() As Form1
Get
If m_vb6FormDefInstance Is Nothing OrElse m_vb6FormDefInstance.IsDisposed Then
m_InitializingDefInstance = True
m_vb6FormDefInstance = New Form1()
m_InitializingDefInstance = False
End If
DefInstance = m_vb6FormDefInstance
End Get
Set
m_vb6FormDefInstance = Value
End Set
End Property
#End Region
'long GetInstallPath(const char *installDataFile,char *outStr,long len);
Private Declare Function GetInstallPath Lib "SBOAddonReg.dll" (ByVal installDataFile As String, ByVal outStr As String, ByRef lLen As Integer) As Integer
'BOOL RegisterAddOn(void);
Private Declare Function RegisterAddOn Lib "SBOAddonReg.dll" () As Boolean
'BOOL UnRegisterAddOn(const TCHAR *installDataFile);
Private Declare Function UnRegisterAddOn Lib "SBOAddonReg.dll" (ByVal installDataFile As String) As Boolean
Private g_sInstallPath As String
Private g_sInstallFullPath As String
Private g_sPreviousDir As String
Private g_sAddOnExeName As String
Private Sub CmdAddOnStr_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles CmdAddOnStr.Click
Shell(VB6.GetPath & "\AddOnRegDataGen.exe", AppWinStyle.NormalFocus)
CmdReg.Enabled = True
End Sub
Private Sub CmdExit_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles CmdExit.Click
End
End Sub
Private Sub CmdReg_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles CmdReg.Click
Dim sPath As String
Dim lLen As Integer
Dim InstallStrFile As String
sPath = Space(1024)
'Getting the sPath where I have to install the addon exe
InstallStrFile = VB6.GetPath & "\SBOAddOnRegData.sld"
lLen = GetInstallPath(InstallStrFile, sPath, Len(sPath))
'Coping the addon exe into the path location I got
MsgBox("Please copy your Addon exe file into: " & Trim(sPath))
'Writing to the registry
If RegisterAddOn = 1 Then
MsgBox("AddOn Was Registered Successfully")
CmdUnReg.Enabled = True
Else
MsgBox("Failed To Register AddOn")
End If
End Sub
Private Sub CmdUnReg_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles CmdUnReg.Click
Dim InstallStrFile As String
InstallStrFile = VB6.GetPath & "\SBOAddOnRegData.sld"
If UnRegisterAddOn(InstallStrFile) = 1 Then
MsgBox("AddOn Was UnRegistered Successfully")
Else
MsgBox("Failed To UnRegister AddOn")
End If
End Sub
End Class -
How many Licenses in SBO 2004 of trial version?
hi all~
How many Licenses in SBO 2004 of trial version?
And when client access to server, License manager get the ID of window?1 full license.
as for license server check sbo licensing doc downloadable from this site -
Hi, I am developing a solucion using jco for sap sbo 2004 pl 30. And it works fine on my computer windows xp, but when i copied my application and the jco's jar files to my production server (linux) and It returns the following error:
java.lang.UnsatisfiedLinkError: no sbojni in java.library.path at java.lang.ClassLoader.loadLibrary
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at com.sap.smb.sbo.wrapper.util.WrapperUtil.loadSBOJNILibrary
at com.sap.smb.sbo.wrapper.com.Dispatch.<clinit>
at com.sap.smb.sbo.api.SBOCOMUtil.newCompany
I guess that this error is becouse there is no "sbojni.dll" file for linux, there must be a different version of jco for linux...
Do you have any Idea about running jco application on linux?
many thanks,
Sergio Arrivillaga.Hi Sergio,
It is not possible to run the jco on linux, only on windows, because it has as com-interface to SBO.
If you want your application to run ion linux you should connect to sbo using the DI-server.
Regards,
ad -
Hi Guys,
How can I run both SBO 2004 & 2005 on my development machine. I have to do this to maintain different clients on different versions. Add-Ons can be upgraded from 2004 to 2005 but then they won't work on 2004 anymore and for the interrim I need to be able to work on 2004 & 2005 simultaniously.Hi Barend, i think you should think of using Virtual PC or VMWare.
FYI: Virtual PC and SBO
HTH -
SBO 2004 & Framework 2.0
Hi,
My environment of development is SBO 2004, and .net 2005.
Any body knows if there are any problem working in this scenario?
ThanksHector,
There are no problems that I am aware of. Are you experiancing any?
Eddy -
How to use Crystal Reports XI in SBO 2004 ?
Hello,
I´m making an Add-on in VB .Net and need to show a report from Crystal Reports XI (a .rpt file). My Add-on is a Console Application. From what i have read from this forum the best way is to use a Windows Form (not a form from SBO) with a "Crystal Report Viewer". How is this done exactly?
1 - What refences to include in the project?
2 - How to assign to Crystal Report Viewer to the Windows Form?
3 - How do i change in VB .Net code (that is, in runtime) the datasource from the .rpt file?
Can you please give a code example.
Thank You.
Jorge LopesThanks Ibai.
My code to change DataSource is:
Try
Dim rpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument
rpt.Load(strPath & RELATORIO_ORCAMENTO)
'/ Inicio
Dim rptTableLogonInfo As New CrystalDecisions.Shared.TableLogOnInfo
Dim rptConnectionInfo As New CrystalDecisions.Shared.ConnectionInfo
Dim rptTables As CrystalDecisions.CrystalReports.Engine.Tables = Nothing
Dim rptTable As CrystalDecisions.CrystalReports.Engine.Table = Nothing
With rptConnectionInfo
.ServerName = ODBC_DATASOURCE
.DatabaseName = objCompany.CompanyDB
.UserID = System.Windows.Forms.SystemInformation.UserName
End With
rptTables = rpt.Database.Tables
For Each rptTable In rptTables
rptTableLogonInfo = rptTable.LogOnInfo
rptTableLogonInfo.ConnectionInfo = rptConnectionInfo
rptTable.ApplyLogOnInfo(rptTableLogonInfo)
rptTable.Location = rptTable.Location
Next
If (rpt.Subreports.Count > 0) Then
ActualizaSubReports(rpt.Subreports, rptConnectionInfo)
End If
'/ Fim
rpt.SaveAs(rpt.FileName)
rpt.Close()
Catch ex As Exception
objApplication.MessageBox(ex.Message)
End Try
Jorge Lopes -
Variable list for reports SBO 2004
Hi all!
Where can I find the variable list for reports (release 2004)?
Thanks in advance for your help.
Kindest regards,
Veronica VezzaliHi Veronica,
AFAIK, there is not such a document. I have asked for it too a couple of times, but nothing. There is an old one (6.2 I think) regarding to an specific document (can´t remember which one). But nothing else.
If someone knows about it, I´ll be very interested too.
Regards,
Ibai Peñ -
Problem trapping event in a matrix SBO 2004
Hi
I am trying to trap when the lost focus event in a matrix, so if the cell is empty I want to put the focus back into that cell and call a formatted search
I can't seem to get the cursor to go back to the original cell. Can anyone help please ?
Regards Andy
Case et_LOST_FOCUS:
' check if parish code is empty in posts matrix
If pVal.formuid = "CONTACTS" And pVal.ItemUID = "228" And pVal.ColUID = "u_dpcode" And pVal.Before_Action = False Then
Set oform = SBO_Application.Forms(formuid)
Set omatrix = oform.Items("228").Specific
If Trim(omatrix.Columns("u_dpcode").Cells(pVal.Row).Specific.String) = "" Then
omatrix.Columns("u_dpcode").Cells.Item(pVal.Row).Click ct_Regular
' SBO_Application.SendKeys ("+{F2}")
End If
Set omatrix = Nothing
Set oform = Nothing
End IfHi Paul,
Have you debuged the app and ensure if this line is executed?
omatrix.Columns("u_dpcode").Cells.Item(pVal.Row).Click ct_Regular
Which version is it?
in 2005, the Validate and Before_Action = true event is rised too, and you could use it to set the BubbleEvent to false(In 2004 it is not rised).
Regards,
Ibai Peñ
Maybe you are looking for
-
Production order usage for external vendors
Hi Guys, I am working on a scenario where the company is orderiing to manufacture from external vendors involving different stages. There is no material sent to the vendor and the vendor manufactures the first stage and sends to next vendor, there ar
-
Drop Shadows and Transparency in Illustrator CS4
here's what's happening in Illustrator CS4. Create a new document In Attributes, check overprint fill Add any text Apply a drop shadow Dave as Illustrator EPS - during save, set Overprint to "Preserve" Once saved, you get the dreaded white box behind
-
Can you create rows of "spaces" in Lion?
I'm about to update my OS to Lion but there's one thing keeping me from taking the plunge. I use spaces very heavily and I rely on my 2x3 layout. It's my understanding that lion keeps spaces (or I guess they're now called desktops or something) in
-
Hi gurus. When i create a new organizational unit, i can't see the business partner asigned in the PPOMA_CRM. Why can it happen? Thanks Regards Miguel.
-
Wfload erroring out (workflow, standalone, on 10r2 database on linux)
I'm having problems installing workflow workflow 10.1.0.3 on my Ubuntu linux box, that is running an oracle 10 release 2 database. The Workflow configuration agent (that is started via this script: $ORACLE_HOME/wf/install/wfinstall.csh), claims that