SBO 2005 problem in DBDataSource InsertRecord

Hello all,
My add on runs on 2004 version, but when I try it with 2005 version, it does not work. When I
   oDBDataSource2.Query(oConditions1)
   oDBDataSource2.InsertRecord(oDBDataSource2.Size)
   oMatrix1.LoadFromDataSource()
   oMatrix1.Columns.Item("Concepto").Cells.Item(1).Click()
With this code, the oMatrix1.LoadFromDataSource() method does not load any record, while i see the dbdatasource record count is >0. I think it is because the instruction "oDBDataSource2.InsertRecord(oDBDataSource2.Size)", because when I comment it, it runs well, but i don't have the blank line at the end of the matrix.
The SBO Version is 2005 PL 04
Is there someone who can help me please ?
Thks for your help

First of all: Please upgrade to a patchlevel higher than PL04 since it contains some nasty bugs in the SDK (and also PL04 is rampup... PL05 is final)
Regarding your question:
I have had the same problem, but found the solution. in 2005A for some reason it is not enough to insert a record in order to get a new row... You also need to set a value in the new row... the following code works:
oDbds.InsertRecord(oDbds.Size);     
oDbds.SetValue(0,oDbds.Size-1,"");
Don't ask why, but it is needed from 2005A (And boy did this give so much problems a few months ago)

Similar Messages

  • Problems installing SBO 2005 B Client (from CD or Server)

    Hello,
    I set up SBO 2005 B on an SQL Server, applied the latest patches and tried to install the client on some maschines.
    After I installed the Client (either from CD or the Server Share) and started it it tries to perform an upgrade which fails with the following errormessage:
    "An error has occured while upgrading your application, A full recovery will be performed".
    Tried the client installation with local admin rights.
    Is there a solution for that?

    Hello,
    you said you perform an upgrade, so from what and to wahat patch level that you want to upgrade ? Is there a valid license ? what SQL version you are used ?
    There is pdf file installation and upgrade in the poduct CD. try to read it carefully.
    Rgds,

  • SBO 2005 combo box does not update value at first time

    Hi!I developed an addon for sbo 2004 with a combo box populated with the months of the year, and it works. The same code run on SBO 2005 works only after the second selection. Has anyone found the same problem?

    definition of the item:
    item = form.Items.Add("oMese", SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX)
                    item.Left = 245
                    item.Top = 5
                    item.Width = 80
                    item.DisplayDesc = True
                    combo = item.Specific
                    combo.DataBind.SetBound(True, "", "uMese")
                    combo.ValidValues.Add(1, "Gennaio")
                    combo.ValidValues.Add(2, "Febbraio")
    event handling:
    inside ItemEvent in case the item is selected
    Case SAPbouiCOM.BoEventTypes.et_COMBO_SELECT
                        Select Case pVal.FormUID
                            Case "PRG_UFM_0002_RegIVAAcq"
                                retCode = oTy_RACQ.FormComboSelect(pVal, BubbleEvent)
      Public Shared Function FormComboSelect(ByVal pVal As SAPbouiCOM.ItemEvent, _
                                               ByRef BubbleEvent As Boolean, _
                                               ByRef funCaller As Object, _
                                               ByVal funCallerID As Integer, _
                                               ByRef aForm As SAPbouiCOM.Form) _
                                               As Integer
            Dim msg As String
            Dim edt As SAPbouiCOM.EditText
            Dim cmb As SAPbouiCOM.ComboBox
            Dim obt As SAPbouiCOM.OptionBtn
            Dim cbx As SAPbouiCOM.CheckBox
            Dim mtx As SAPbouiCOM.Matrix
            Try
                If pVal.Before_Action = True Then
                    Select Case pVal.ItemUID
                        Case "oMese"
                            Dim stre As New strEstremi
                            cmb = aForm.Items.Item("oMese").Specific
                            edt = aForm.Items.Item("anno").Specific
                            If Not cmb.Selected Is Nothing Then
                                GetEstremiPeriod(edt.Value, cmb.Selected.Value, "M", stre)
                                edt = aForm.Items.Item("dtFrom").Specific
                                edt.String = stre.dtFrom
                                edt = aForm.Items.Item("dtTo").Specific
                                edt.String = stre.dtTo
                            End If
    end function
    thank you I hope is enough otherwise please tell me

  • Delete Last Row in Matrix on SBO 2005

    Hi,
    Im using SAPB1 2005 SP1 with B1DE.
    I've seen a post that indicates that the following code should delete a row from a matrix (even the last row) when using SBO 2005
    I still find that all rows except last row of matrix are removed from the database.
    <b>How do I delete the last row from the Del button event handler????</b>
    I'm using
    <i>        [B1Listener(BoEventTypes.et_CLICK, false)]
            public virtual void OnAfterClick(ItemEvent pVal)
                bool ActionSuccess = pVal.ActionSuccess;
                Form form = B1Connections.theAppl.Forms.Item(pVal.FormUID);
                Item item = form.Items.Item("del");
                Button button = ((Button)(item.Specific));
                // ADD YOUR ACTION CODE HERE ...
                int row;
                Matrix oMtx = (Matrix)form.Items.Item("mtx_0").Specific;
                DBDataSource oDBDS = (DBDataSource)form.DataSources.DBDataSources.Item("@SD_POOLCONTRCT_LINE");
                row = oMtx.GetNextSelectedRow(0, BoOrderType.ot_SelectionOrder);
                oMtx.DeleteRow(row);
                if (oMtx.RowCount == 0)
                    oDBDS.RemoveRecord(0);
                if ((form.Mode != BoFormMode.fm_ADD_MODE) | (form.Mode != BoFormMode.fm_UPDATE_MODE))
                    form.Mode = BoFormMode.fm_UPDATE_MODE;
                }</i>

    Hi Ben,
    [B1Listener(BoEventTypes.et_CLICK, false)]
    public virtual void OnAfterClick(ItemEvent pVal)
    bool ActionSuccess = pVal.ActionSuccess;
    Form form = B1Connections.theAppl.Forms.Item(pVal.FormUID);
    Item item = form.Items.Item("del");
    Button button = ((Button)(item.Specific));
    // ADD YOUR ACTION CODE HERE ...
    int row;
    Matrix oMtx = (Matrix)form.Items.Item("mtx_0").Specific;
    DBDataSource oDBDS = (DBDataSource)form.DataSources.DBDataSources.Item("@SD_POOLCONTRCT_LINE");
    Rest of your code will remain same.
    I am making the modification here. I am using the RowCount property that gives me the address of the last row of the matrix.
    <b>row = oMtx.RowCount;</b>
    Every time this will return you the last row and that row will be deleted.
    <b>row = oMtx.RowCount;</b>
    oMtx.DeleteRow(row);
    if (oMtx.RowCount == 0)
    oDBDS.RemoveRecord(0);
    if ((form.Mode != BoFormMode.fm_ADD_MODE) | (form.Mode != BoFormMode.fm_UPDATE_MODE))
    form.Mode = BoFormMode.fm_UPDATE_MODE;
    Regards,
    Prashant

  • SBO 2005 SP00 PL10 -- di bug in adding field ?!

    hi,
    since i update SBO 2005 SP00 to Patch Level 10 i get the following error trying to add user fields in a user defined table:
    Datei nicht gefunden (ODBC -2004)
    Is this a bug of SBO2005 SP00 Patch Level 10 ?
    thanks
    Markus

    Hi
    Same here as posted earlier. PL10 definitively has a Problem:
    ODBC -2004  (Datei nicht gefunden)  ?????????
    /message/1567545#1567545 [original link is broken]
    I've already lost a lot of time trying to reproduce/workaround it and this doesn't make me feel better .
    We need better ways to communicate/show such Bugs to SAP.
    Just my 2 Cents

  • Can I install SBO 2005 and 2004 in the same OS(Win XP)

    Hi, there
    Can I install SBO 2005 and 2004 in the same OS(Win XP)?
    Thanks for any help.
    Lanjun

    Hi Lanjun,
    I know you can install both of them together on one computer. I had a document specifying the steps, but cannot find it now. The problem is that you cannot create a new 2004 company or upgrade your 2004 version.
    I will look for the document and let you know.
    Adele

  • Upgrading SBO-2005 B PL-05 to SBO-2007 B

    Dear all,
    Can you please tell me that u2013
    u201CDirectly running SBO-2007 B installation over SBO-2005 B PL-05 is an upgrade process or upgrade process means something else?

    Directly running SBO-2007 B installation over SBO-2005 B PL-05 is not the proper way to upgrade.
    Take the backup of ur 2005 b data base.
    run the upgrade query..
    if it gives any result solve the problem as per the result of query,if not returing any result measns ur data base is consistant.
    Then download the IRU tool,
    Install the IRU server and IRU clinet.
    Read the help of IRU to get more information.
    then run the upgrade exe.
    if u will directly run the 2007 b upgrade exe,it will craete problem in new data base,
    Hope this will help you.
    Regards,
    Neetu

  • SBO 2005 y W7 Professional

    Buenas tardes,
    Estoy realizando la instalación de SBO2005 en una laptop con W7 Professional. Por lo visto a la hora de hacer la instalación hay alguna incompatibilidad con la instalación del propio cliente y de los addons, que he solucionando activando la compatibilidad con XP SP3. El programa lo he estado testeando y funciona correctamente pero a la hora de desplegar un menú o una ventana lo hace lentamente (le lleva unos 3-4 segundos). No es problema de ram (tiene 3Gb.) ya que en otro equipo igual a ese corriendo con XP va perfecto.
    Me gustaría saber si hay alguna opción gráfica de configuración que lo solucione o algún parche o ejecutable del cliente que arregle este inconveniente.
    Muchas gracias,
    Un saludo.

    Hola.
    SBO 2005 no es totalmente compatible con Windows Vista/7 y tiene problemas de performance. Los problemas que normalmente se encuentran están relacionados con las nuevas caracterrísticas gráficas y las de seguridad de Vista y 7.
    Para mejorar en algo lo anterior, se recomienda desactivar todos los efectos visuales (incluso cambiar la apariencia del escritorio al estilo clásico) y el control de acceso de cuentas de usuario (UAC).
    ¿No han pensado migrar a la versión 2007?. Considero que sería lo mejor.
    Por favor revisar los siguientes links:
    - SUPPORTED PLATFORMS OVERVIEW - RELEASE 2005 AND HIGHER.
    - es compatible SAP bo 2007 con Windows 7.
    - Re: SAP Business One y Windows 7.
    Saludos.
    Edited by: Hector Daniel Hernandez Bacca on Apr 5, 2010 9:00 AM

  • SBO 2005 SP1

    I have SBO 2005 A on my computer. I have just downloaded SBO 2005 SP1. What are the differences between SBO 2005 and SBO 2005 SP1?

    Well... there are many things... Here are the most important.
    Client
    - Better permormance
    - Better support of stock below zero
    - Better help docs
    - New document transfer system (Copy from/Copy To)
    - New standard Reports
    - New Backorder system
    - Greatly improved Pick And Pack system
    - Year to date features
    - Zero total invoices
    - MS SQL Server 2005 Support
    - Admin History
    SDK
    - FormDataEvent
    - FormInfo Object
    - New DI-objects
    - Current Period property
    - Delete Lines in documents
    There sould be no reason not to use the SP01 version... (For some older systems upgrading can be tricky)

  • SBO 2005 does anyone know when it is due?

    SBO 2005, does anyone know when it is due ?
    Thanks,
    Indika.

    Hi Indika,
    Please refer to the info below.
    https://websmp201.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000654576&_SCENARIO=01100035870000000183&_ADDINC=&
    Thanks,
    Nick He

  • Service Call in SBO 2005 B PL 38 - Activity done but not added to call

    Hi All,
    I have updated PL 38, SBO 2005 B, I had created Service call, it was created successfully, now i have done activity of return but it dosent add to activity tab and gives us error -> "Generate SCActivity : A Service Call Activity dose not exist"
    Can any one has idea or solution of this please.
    With Warm Regards
    Chintesh Soni

    Hi
    I am not sure note :891809 is suitable for your issue or not.
    this note is about "The Activity exists but it seems that there is no link saved between
    Service Call and Activity."
    hope it could be helpful.

  • SBO 2005 SP01 - New installation package

    Hi.
    I'm testing MS SQL 2005.
    I need the complete installation package for SBO 2005 SP01. I cannot find it on the partner portal. I'm only able to find the upgrade packages PL01 an PL03.
    Anyone got the complete package ?
    Regards,
    Jostein Kastet

    Hi Jostein,
    The SBO 2005 SP01 is only an upgrade of the 2005 version.
    Please upgrade to the last 2005 patch, then upgrade to SP01 PL01 and after that apply the patch PL03.
    Hope it helps
    Trinidad.

  • How to upgrade SBO 2005 database to SBO 8.8 ?

    Hi Expert,
    Can anybody guide me on how to upgrade SBO 2005 database to SBO 8.8 ?
    BR
    Samir Gandhi

    Hi JimM,
    Many thanks for the solution.
    Kindly confirm my understanding (as below) on your suggested solution.
    1.I have to restore the company database backup ofver 2005 to SQL server.
    2.I have to run the upgrade for Patch Level 15, while selection I will be shown the 2005 ver. dompany DB and I have to select it for upgrade, the SAP PL 15 upgrade utility will bring that company to PL 15 level.
    Right ?
    Once again many thaks for taking interest and providing solution to this thread.
    BR
    Samir Gandhi

  • Issues with SBO 2005 form load which has been created using  XML

    Am converting SBO 2004A addon into SBO 2005 addon, am loading a wizard form (wizard.xml)using following code.
       Dim oXMLDoc As MSXML2.DOMDocument
        Dim sXMLString As String
        Set oXMLDoc = New MSXML2.DOMDocument
        oXMLDoc.Load (App.Path & "FILESWizard2.xml")
        Dim strXml As String
        strXml = oXMLDoc.xml
        mobjSBOApplication.LoadBatchActions strXml
    But when we runs above code in SBO 2005, LoadBatchActions display error "Invalid Form - Item" "3006".
    It seems there are some change in the UI for the loadBatchActions to read the XML file.
    Would appreciate if you could advise on the same urgently.

    Hi Adele,
    Thanks for your reply.
    But this is the error comes with LoadBatchActions method of application object. I have check the same in debug mode but this is not item event error because i followed the loading event in form but action does not move ahead after the LoadBatchActions..
    I have also written GetLastBatchResults just below the LoadBatchActions and the same shows the below error message.
    <?xml version=""1.0"" encoding=""UTF-16""?><result><errors><error code=""-7037"" descr=""Argument is out of Range""/><error code=""-7037"" descr=""Argument is out of Range""/><error code=""-7037"" descr=""Argument is out of Range""/><error code=""-7037"" descr=""Argument is out of Range""/><error code=""-7037"" descr=""Argument is out of Range""/><error code=""-7037"" descr=""Argument is out of Range""/><error code=""3006"" descr=""<b>Form - Invalid Form Item""/><error descr=""Could not recover from previous errors""/</b>></errors></result>"
    but the same is working perfectly ok with 2004A.. would appreciate if you could advise on the same.

  • Compatibility between SDK 2004 and SBO 2005 A

    Hello to everybody,
    The company I joined to has an SBO 2005 running.
    the installation seems not to have an SDK in it.
    The SDK available is the one of 2004.
    I wonder if an AddOn I'm to develop will work on the SBO 2005.
    Or how can I obtain a new SDK to install?
    Regards, vt

    Please go over the E-learning and/or the SDK classroom material...
    ..then you will understand better what "the SDK" means - and that "the SDK" (i.e. the runtime components) is always there where you install the product
    + SDK Help Center (the onloine help) is available here on SDN
    ...SDK samples, UDO library + header + a few tools will be missing though then...

Maybe you are looking for