Data in matrix disappear

Hi everyone,
I am using SBO2004+VB.Net, I created a SBO form with serveral panels, I fill data in a matrix in the panel level 2(not bound data to matrix), the data display normally when first fill, but when I resize the matrix column, the data disappear totally, also when i change the form current PaneLevel, the data in matrix disappear too.  
who can help workaround this problem,
Thanks in advance.

Hi Kathy,
I've had the similiar problem in VB6, when the items (matrix, edittext, combobox, etc...) were not binded to userDataSource, data from them disappeared almoust at any change of form, hiding/appearing, changing pane levels, etc ...
Try binding UserDataSources to those items.
Like a:
oFrm.DataSources.UserDataSources.Add "udsCode", dt_SHORT_TEXT, 8
oEditText.DataBind.SetBound True, "", "udsCode"
Regards,
Jaro

Similar Messages

  • Display data to matrix using LoadFromDataSource

    Hello all,
    I tried to display data to matrix.
    I used matrix object's LoadFromDatasouce.
    But it didn't display data at all.
    Pls help me!!
    creationPackage.ObjectType = "EVOSS_BUSTR"      
    creationPackage.UniqueID = "TEST
    creationPackage.FormType = "TEST"
    creationPackage.BorderStyle =  SAPbouiCOM.BoFormTypes.ft_Fixed
    Set oForm = SBO_Application.Forms.AddEx(creationPackage)
    sTableName = "@EVOSS_BUSTR"   
        oForm.Title = sTitle
        oForm.Height = 300
        oForm.Width = 350
        oForm.DataSources.DBDataSources.Add ("sTableName")
        Set oItem = oForm.Items.Add("1", it_BUTTON)
        oItem.Left = 5
        oItem.Width = 65
        oItem.Top = 240
        oItem.Height = 19
        Set oButton = oItem.Specific
        oButton.Type = bt_Caption
        Set oItem = oForm.Items.Add("2", it_BUTTON)
        oItem.Left = 75
        oItem.Width = 65
        oItem.Top = 240
        oItem.Height = 19
        Set oButton = oItem.Specific
        oButton.Type = bt_Caption
        'Adding a matrix
        Set oItem = oForm.Items.Add("TEST, it_MATRIX)
        oItem.Left = 5
        oItem.Width = 340
        oItem.Top = 10
        oItem.Height = 200
        oItem.AffectsFormMode = True
        Set oMatrix = oItem.Specific
        Set oColumns = oMatrix.Columns
        'Adding col 1
        Set oColumn = oColumns.Add("ColNb", it_EDIT)
        oColumn.TitleObject.Caption = "#"
        oColumn.Width = 20
        oColumn.Editable = False
        'oColumn.DataBind.SetBound True, "", "#"
        'Adding col 2
        Set oColumn = oColumns.Add("EVOSS_Code", it_EDIT)
        oColumn.TitleObject.Caption = "Code"
        oColumn.Width = 80
        oColumn.Editable = True
        oColumn.DataBind.SetBound True, sTableName, "Code"
        'Adding col 3
        Set oColumn = oColumns.Add("EVOSS_Name", it_EDIT)
        oColumn.TitleObject.Caption = "Name"
        oColumn.Width = 220
        oColumn.Editable = True
        oColumn.DataBind.SetBound True, sTableName, "Name"
        oMatrix.AddRow
        Set oColumn = oMatrix.Columns.Item("EVOSS_Code")
        Set eItemCode = oColumn.Cells.Item(1).Specific
    '   oForm.Mode = fm_FIND_MODE
    '   oForm.DataBrowser.BrowseBy = "EVOSS_Code"
        'oMatrix.SelectionMode = ms_None
         oForm.Visible = True
         add_line = True
         oMatrix.LoadFromDataSource

    Hello.
    For load a data to a matrix you need call a Query method of the dbdatasource to obtain data from the database.
    By.

  • Can any one tell me How to load data in matrix from user table

    Hi,
    we need to load data to matrix when page loads. After loading data we should add row to that matrix and update the values in database without effecting previous data. It should have functionality like UDO Default Form. Can any help me out in this issue.
    Regards,

    Hi Souji,
    try this,
        SAPbouiCOM.Form oForm;
        SAPbouiCOM.DataTable DBTable;
        SAPbouiCOM.DBDataSource dbDatasource;
         string strqry;
         oForm = SBO_Application.Forms.Item("FormUID");
          int i;
          SAPbouiCOM.Item oitem;
           oitem = oForm.Items.Item("ItemUID");
           objMatrix = (SAPbouiCOM.Matrix)oitem.Specific;
           objMatrix.AddRow(1, objMatrix.RowCount + 1);
       dbDatasource = (SAPbouiCOM.DBDataSourceoForm.DataSources.DBDataSources.Item("TableName");
       DBTable= oForm.DataSources.DataTables.Add("UniqueName");
        strqry = "paste Query that you want to fetch";
        DBTableActivity.ExecuteQuery(strqry);
         for (i = 0; i <= DBTable.Rows.Count - 1; i++)
                objMatrix.FlushToDataSource();
                dbDatasource.SetValue("column1(name)", i, System.Convert.ToString(DBTable.GetValue(0, i)));
                dbDatasource.SetValue("column2(name)", i, System.Convert.ToString(DBTable.GetValue(1, i)));
                dbDatasource.SetValue("column3(name)", i, System.Convert.ToString(DBTable.GetValue(2, i)));
                dbDatasource.InsertRecord(i + 1);
                objMatrix.LoadFromDataSource();
    If it helps you, give me the reward points.
    Thanks
    Sravan Kumar Pothu

  • Has the "reset data and documents" disappeared

    Has the "reset data and documents" disappeared from the advanced settings on icloud.com after signing in?

    Yes.

  • How to add data through matrix from sales order row level to

    user defined document type table ...
    i created matrix in user defined form, i placed one edit text box on that form
    when i entered docnum of sales order the data of sales order row level should have to
    upload to matrix , after fill up the some data in matrix that data should have to add to the user defined document type table
                                any one have code pls post it
                                            thanq

    Hi rajeshwar
    Here is a sample function related to ur senario. just check it out and use the concepts.
    Here I have used a CFL to get the itemcode and I have used a query to  add data to matrix.
    This is a function used.
    Private Sub AddValuesInMatrix(ByRef name As String)
            Try
                'Dim quantemp As Double
                oForm = SBO_Application.Forms.Item("itemdts")
                oMatrix = oForm.Items.Item("matrix").Specific
                Dim rs As SAPbobsCOM.Recordset = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                '//gitemdesc = "SELECT T0.[ItemName] FROM OITM T0 WHERE T0.[ItemCode] ='" & name & "'"
                oMatrix.Clear()
                rs.DoQuery("SELECT T0.[DocEntry], T0.[ItemCode], T0.[Dscription], T0.[Quantity], T0.[Price], T0.[TaxCode] FROM dbo.[POR1] T0 WHERE T0.[ItemCode] ='" & name & "'")
                rscount = rs.RecordCount
                If (rscount < 1) Then
                    SBO_Application.StatusBar.SetText("No Items Found", SAPbouiCOM.BoMessageTime.bmt_Short)
                Else
                    oForm.Freeze(True)
                    ITE = True
                    For i As Integer = 1 To rs.RecordCount
                        oMatrix.AddRow()
                        oMatrix.Columns.Item("V_5").Cells.Item(i).Specific.Value = rs.Fields.Item("DocEntry").Value
                        oMatrix.Columns.Item("V_4").Cells.Item(i).Specific.Value = rs.Fields.Item("ItemCode").Value
                        oMatrix.Columns.Item("V_3").Cells.Item(i).Specific.Value = rs.Fields.Item("Dscription").Value
                        oMatrix.Columns.Item("V_2").Cells.Item(i).Specific.Value = rs.Fields.Item("Quantity").Value
                        'quansum = quansum + rs.Fields.Item("Quantity").Value
                        oMatrix.Columns.Item("V_1").Cells.Item(i).Specific.Value = rs.Fields.Item("Price").Value
                        'pricesum = pricesum + rs.Fields.Item("Price").Value
                        oMatrix.Columns.Item("V_0").Cells.Item(i).Specific.Value = rs.Fields.Item("TaxCode").Value
                        SBO_Application.SetStatusBarMessage("Data Loading In Progress Please Wait.....>>> " & i & " / " & rs.RecordCount, SAPbouiCOM.BoMessageTime.bmt_Short, False)
                        rs.MoveNext()
                    Next
                    ITE = False
                    oMatrix.AutoResizeColumns()
                    SBO_Application.StatusBar.SetText("Data Loading Completed", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Success)
                    oForm.Freeze(False)
                    oForm.Refresh()
                End If
            Catch ex As Exception
                SBO_Application.MessageBox("Matrix Load Function : " & ex.Message)
                ITE = False
            End Try
        End Sub
    -Anto

  • How i get data in matrix grid from A/P Invoice

    How i get data in matrix grid from A/P Invoice before click add button

    Hi,
    Are you trying to read the data in the matrix of a system form? Then you only have to look for the matrix with the ID you can see by visualising the System Information in B1 and then directly read from the matrix cells (using columns element in matrix), the DBDataSources are not filled in until the document has been added to the database.
    There are many messages in this forum talking about how to read information in matrix item, just make a search for it.
    Hope it helps
    Trinidad.

  • The cellular data services have disappeared from my settings. Can anyone help me restore it please?

    The cellular data services have disappeared from my settings. Can anyone help me restore it please?

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased. http://support.apple.com/kb/ht1430
     Cheers, Tom

  • Save data from matrix in folder, on 2nd pane level

    Hi all, having some trouble saving data from a matrix located on the second pane level of a folder. There are 2 matrix in the folder, located on panel 1 and 2 respectively. Data from the matrix on level 1 saves to the database, but the data from pane 2 does not. Both folders and matrix are databound to a dbdatasource.
    Any ideas?
    Ta guys,
    Tjaard.

    Hi there Sebastien, thanx for the interest. Yeah i'm using a user defined tables connected to a user defined object. The matrixes are bound to the user defined tables via a dbdatasource. Each matrix is bound to a seperate child ("Lines") table which, in turn, is connected to a single parent ("Header") Table. This header table is the one connected to a UDO.
    The data from matrix A (the one that works) are saved to the database via the datasource, and flushtodatasource methods.

  • How to insert the data using matrix

    Hi
      All how to insert the data using matrix feild
      plz help me
       thanks
        Loy

    Hi Loy,
    The best way to fill an entire matrix is to use a DBDatasource, here is some sample code:
    Dim oForm As SAPbouiCOM.Form
    oForm = SBO_App.Forms.Item("YourFormTypeID")
            '1. Add a DBDataSource to the form
            oForm.DataSources.DBDataSources.Add("OUSR")
            Dim oColumnDBS As SAPbouiCOM.Column
            Dim oColumnUDS As SAPbouiCOM.Column
            Dim i As Integer
            Dim GenEdt As SAPbouiCOM.EditText
            Dim oMatrix As SAPbouiCOM.Matrix
            Dim oColumns As SAPbouiCOM.Columns
            Dim oDBDataSource As SAPbouiCOM.DBDataSource
            oMatrix = oForm.Items.Item("7").Specific
            oColumns = oMatrix.Columns
            '2. DBDataSource: Binding a field / alias of the table to a column
            oColumnDBS = oColumns.Item("V_1")
            oColumnDBS.DataBind.SetBound(True, "OUSR", "U_NAME")
            '3. getting the data sources bound to the form
            oDBDataSource = oForm.DataSources.DBDataSources.Item("OUSR")
            oMatrix.Clear()
            ' Querying the DB Data source
            oDBDataSource.Query()
            ' Adding the data to the matrix
            oMatrix.LoadFromDataSource()
    When you want to fill a specific field use :
    GenEdt = oMatrix.Columns.Item("V_2").Cells.Item(1).Specific
                    GenEdt.String = "Hello"

  • Cannot input data in matrix field when the form is in add mode.

    I have created an addon form using UDO.The UDO has four child tables.  I input data in the master data fields in form it works but when I come to matrixes for giving data in matrix fields I was unable to input data there .But after saving the data only with master data I reopend the the form with same data using find option.Now the form allows to input data in matrix fields.Please provide a solution so that I can input data in the matrix columns when the form is in add mode.

    Hi,
    After opening the Customized form you have to add a new blank row into your matrix also.
    oMatrix.AddRow(1,1);
    After then only you can input data.
    regards:
    Sandy

  • Data Entry matrix is greyed out for demand planning

    Dear Experts,
    Recently i am  trying to work on new ides system (APO),  when i try to open a exisiting planning book , the data entry matrix is grey out
    May i know whats the reason , do i need to activate any key configuration i cannot able to enter any values in the matrix
    Thanks & Regards
    Raj

    Hello Raju,
    These are the steps to be able to enter data into KF.
    1) Load a selection from the left side.
    2) Once you have made the selection for which you want to enter data, click the "Pencil" icon on the left side top corner.
    3) This will make the page white and let you enter data into the planning books.
    4) Incase if you still see them to be greyed out, click the "Design" button on the right side.
    5) Select the KF which you want to edit.
    6) Right click the KF --> Selected Rows --> Input/Output.
    7) This should make it editable, you can now click the "Live" button, save the changes and then repeat steps 1 thru 3.
    Hope it helps.
    Thanks
    Mani

  • Parse Date To Matrix DateColumn

    Hello all,
    How do parse date to Matrix DateColumn using vb.net
    Thanks

    Hi Prince Annie,
    Date values, in all controls, are stored in the ANSI format: yyyymmdd.
    Just like decimals (ANSI format): . separated values, with no decoration.
    Regards,
    Eric

  • Data in Matrix not showing

    I cannot get the data from my query to show in the relevant matrix columns:
    oForm.DataSources.DBDataSources.Add("OQUT")
                'Create Datatable and populate with query
                oForm.DataSources.DataTables.Add("oMatrixDT")
                oForm.DataSources.DataTables.Item("oMatrixDT").Clear()
                sSQL = "SELECT T0.DocNum, T0.NumAtCard, T0.DocDate, T0.U_PRDClosDate, T0.U_ExpTVal FROM OQUT T0 WHERE T0.CardCode = '" & oBPCode & "' AND T0.DocStatus = 'O' ORDER BY T0.DocNum"
                oForm.DataSources.DataTables.Item("oMatrixDT").ExecuteQuery(sSQL)
                oItem = oForm.Items.Add("oMtrx1", SAPbouiCOM.BoFormItemTypes.it_MATRIX)
                oItem.Top = 10
                oItem.Left = 10
                oItem.Width = oForm.Width - 20
                oItem.Height = oForm.Height - 20
                oMatrix = oItem.Specific
                oColumn = oMatrix.Columns.Add("#", SAPbouiCOM.BoFormItemTypes.it_EDIT)
                oColumn.TitleObject.Caption = "#"
                oColumn = oMatrix.Columns.Add("oClmn1", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
                oMatrix.Columns.Item("oClmn1").DataBind.Bind("oMatrixDT", "DocNum")
                oColumn.DataBind.SetBound(True, "OQUT", "DocNum")
                oColumn.TitleObject.Caption = "Quote Number"
                oLinkedButton = oColumn.ExtendedObject
                oLinkedButton.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_Items
                oLinkedButton.LinkedObjectType = SAPbouiCOM.BoLinkedObject.lf_Items
    Then after more columns....
    oMatrix.LoadFromDataSource()
                oMatrix.AutoResizeColumns()
                oForm.Visible = True
    Any Ideas?

    HI David
    A good code ! Take Care, LinkTo have to show a docentry field not the docnum ! If you have multiple numbering series over PO, it will drop you into a wrong document
        Sub Matrix_TEST()
            Dim oForm As SAPbouiCOM.Form = sbo_application.Forms.Add("MYFORM")
            oForm.Visible = True
            oForm.Width = 300
            oForm.Height = 400
            oForm.DataSources.DBDataSources.Add("OQUT")
            'Create Datatable and populate with query
            oForm.DataSources.DataTables.Add("oMatrixDT")
            oForm.DataSources.DataTables.Item("oMatrixDT").Clear()
            Dim sSQL As String = "SELECT T0.DocNum, T0.DocEntry, T0.NumAtCard, T0.DocDate FROM OQUT T0 WHERE T0.DocStatus = 'O' ORDER BY T0.DocNum"
            oForm.DataSources.DataTables.Item("oMatrixDT").ExecuteQuery(sSQL)
            Dim oItem As SAPbouiCOM.Item = oForm.Items.Add("oMtrx1", SAPbouiCOM.BoFormItemTypes.it_MATRIX)
            oItem.Top = 10
            oItem.Left = 10
            oItem.Width = oForm.Width - 20
            oItem.Height = oForm.Height - 20
            Dim oMatrix As SAPbouiCOM.Matrix = oItem.Specific
            Dim oColumn As SAPbouiCOM.Column = oMatrix.Columns.Add("#", SAPbouiCOM.BoFormItemTypes.it_EDIT)
            oColumn.TitleObject.Caption = "#"
            oColumn = oMatrix.Columns.Add("oClmn0", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
            'oColumn.DataBind.Bind("oMatrixDT", "DocEntry")
            oColumn.TitleObject.Caption = "Quote Key"
            Dim oLinkedButton As SAPbouiCOM.LinkedButton = oColumn.ExtendedObject
            oLinkedButton.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_Items
            oLinkedButton.LinkedObjectType = SAPbouiCOM.BoLinkedObject.lf_Items
            oColumn = oMatrix.Columns.Add("oClmn1", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
            oColumn.DataBind.Bind("oMatrixDT", "DocNum")
            oColumn.DataBind.SetBound(True, "OQUT", "DocNum")
            oColumn.TitleObject.Caption = "Quote Number"
            oMatrix.LoadFromDataSource()
        End Sub

  • How to sort data in Matrix report

    I've used Report6i and create report in Matrix format.I want the report to display data in sorting by data in cell. Anyone pls help me.
    --it's show this
    applicant_id/score Score
    08002 400
    08003 200
    08004 700
    08006 653
    08008 560
    08010 800
    -- but i want to see this
    applicant_id/score Score
    08010 800
    08004 700
    08006 653
    08008 560
    08002 400
    08003 200
    i tried to set the group's property( break order property ). It doesn't allow me to set break order property of applicant_id's group to none. And tried to write 'order by' in the SQL statement but it doesn't help.

    Hi,
    If Oracle can give you back the right sort order without any custom sorting,
    that means you should be able to get the same results in WebI.
    If the object that you pull from the universe is the wrong type (like numeric but you want it alphanumeric),
    then you can either request you designer to give you an object with the right data type,
    or you can change it by creating a report variable using
    FormatNumber([original object],"0")
    this will format the number to a number without leading zeroes, thousand separators or decimal point.
    Now you can use the object as if it came from the universe.
    So you can also use it on the x-axis of a chart.
    Btw. you can also do a custom sort on the x-axis(as long as it is an object or variable, not a formula)
    alternative, if you define a custom sort in a table block, you can state it should be used througout the document.
    (so also in the charts.
    Hope this helps,
    Marianne

  • Form data flashes, then disappears

    We have a fillable form we downloaded from a government website. We have filled in all the forms with our data and saved the file. Then when we reopen it, the data shows briefly, less than one second, then disappears. Anyone know what is going on?
    I'm working in Acrobat 7.1 Pro, and I believe the form was created in Distiller.

    Most likely there is a Reset Form action (or JavaScript) that executes when the form is opened. This is often done for forms that are intended to be used online (filled and submitted). If the PDF does not have security applied then you have a chance of removing this.
    George

Maybe you are looking for

  • Missing printing profiles

    i have a dell xps system with Vista operating system and Lightroom V1.3.1. Windows explorer list all my printer profiles however, in Lightroom under color management, profile, other, not all the profiles are shown. How do i get Lightroom to list all

  • Time Machine backing up huge files

    Hello I have a MacBook Pro (and a mini and air in my house) I initially backed up all my machines to the time capsule the MacBook Pro seems to want to regularly back up around 116GB which is about the size of the original back up. Given that my under

  • How to make a webdynpro component to be as a public part of a DC?

    Hi All,      I've created 2 java web dynpro DCs : DC_A and DC_B in both the same software component.      I want to a component of DC_B, let's call it Comp_B, to be the "Used Web Dynpro Component" of Comp_A in DC_A.      I've done the following work:

  • Language setting for ipod 160

    How do you set the Language on the ipod 160 my ipod was preset when I took it out of the box I need it set to US English I order it from apple.com

  • Problem with downloading after clean install

    Since doing a clean reinstall of my Lion system, I'm having problems downloading some of the small Apps that I use. In Safari, I get a message saying there's not enough space on my HD - and on Chrome, I get a 'Canceled' message. I've repaired permiss