Cant add Rows In a Matrix (Child) and No event catching

Hi,
I created a Master File and its Child. Registered as an UDO. Created an UDO Form with the UDO Form Generator.
I Can Add, find, update, records to de Master File, but The Matrix related to the Child Table Only allows me enter information in the first Row.
I Have tried the addrow command in every place possible, but It doesnt work.
        Dim oXmlDoc As Xml.XmlDocument
        oXmlDoc = New Xml.XmlDocument
        Dim sPath As String
        sPath = IO.Directory.GetParent(Application.StartupPath).ToString
        oXmlDoc.Load(sPath & "" & FileName)
        SBO_Application.LoadBatchActions(oXmlDoc.InnerXml)
        oForm = SBO_Application.Forms.Item("F_MX_C071")
The last thing I tried was include this next lines after
        oItem = oForm.Items.Item("mtx_0")
        oMatrix = oItem.Specific
        oMatrix.AddRow(3)
I Also Cant catch the AddRow Event Button. I Set the filters and the event handling for menus and
        oFilters = New SAPbouiCOM.EventFilters
        oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED)
        oFilter.AddEx("F_MX_C071")
        SBO_Application.SetFilter(oFilters)
If (pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) Then
Events are catched before oForm = SBO_Application.Forms.Item("F_MX_C071"). After that, there´s no event catching
Can anyone help me? I have a lot of time spent in this issue.
Thanks a lot.

I dont know if Is it clera for me now, but i try it.
You have matrix on user form. The matrix contains child data. This child data are inserted to matrix manualy or bounded to some datatable, i think with datatable?
When you add new line to matrix, Im using
omatrix.AddRow(1, 0) - 1 is that I want to add 1 row, 0 is position, where the new line will be in matrix
When the matrix is filled with code, Im doing it as
I update usertable
oUserTable.UserFields.Fields.Item("U_Popis").Value = ""
oUserTable.UserFields.Fields.Item("U_PATH").Value = ed.String
then update the form to affect changes to db
oOrderForm.Update()
and then I make new bounding to datatable.
Undestand I correctly it now?

Similar Messages

  • How can i add a new row in System Matrix passing itemcode and quantaty

    Hi All,
    I have to add new lines in the matrix system only through the itemcode and item quantity. I tried several ways without success. Maybe the following code help to explain what I'm trying to do.
    Someone already inserted rows in the matrix system? Can someone show me how I can do. This example is in C# but if someone has in VB I will apreciate.
    FormUID = SBO_Application.Forms.ActiveForm.UniqueID;
                f = SBO_Application.Forms.Item(FormUID);
                try
                    SAPbobsCOM.Recordset oRS;
                    oRS = ((SAPbobsCOM.Recordset)oCompany.GetBusinessObje
    SAPbobsCOM.BoObjectTypes.BoRecordset));
                    oItem = f.Items.Item("38");
                    oMatrix = ((SAPbouiCOM.Matrix)(oItem.Specific));
                    oEditText = ((SAPbouiCOM.EditText)oMatrix.Columns.Item(3).Cells.Item(oMatrix.RowCount - 1).Specific);
                    string Codigo = oEditText.Value; //Select the item number to use in strQuery
                    strQuery = "SELECT U_ART_COM FROM [@SB1EVOL_COMPOSTOS] where
    U_ART_PRI='" + Codigo.ToString();
                     oRS.DoQuery(strQuery);
                    if (oRS.RecordCount > 0)
                        oRS.MoveFirst();
                        numart = oRS.RecordCount;
                        f.Freeze(true);
                        for (j = 1; j <= numart; j++)
                            try
                                ItemCodeTXT = oRS.Fields.Item(0).Value.ToString();
                                oEditText = ((SAPbouiCOM.EditText)(oMatrix.Columns.Item(3).Cells.Item(oMatrix.RowCount).Specific));
                                oEditText.Value = ItemCodeTXT.ToString();
                                f.Update();
                                oRS.MoveNext();
                            catch (Exception oEx)
                                f.Freeze(false);
                                f.Update();
                                MessageBox.Show(oEx.Message + " j = " + System.Convert.ToString(j));
                        j = 0;
                        f.Freeze(false);
                        f.Update();
    In this example i try to add rows in Invoice matrix.
    Thanks in advance.
    Edited by: Luís Filipe Duarte on Jun 26, 2009 4:14 PM
    Edited by: Luís Filipe Duarte on Jun 26, 2009 4:17 PM

    Viva Vitor,
    Antes de mais obrigado pela resposta.
    È esse mesmo o meu objectivo. Passo a explicar qual é o objectivo deste desenvolvimento. O que se pretende é que quando um utilizador escreva o código de um artigo numa linha da matrix de um documento de venda o add-on vai ler esse artigo e de seguida consultar uma tabela de utilizador que ja esta criada para validar se esse artigo tem outros artigos associados, e se tiver, entao o addon tem que os escrever nas linhas imediatamente a seguir. Eu queria mesmo, era escrever qual era o artigo e qual a respectiva quantidade. Eu consigo encontrar qual o artigo que o utlizador escreve e qual os artigos associados. O meu problema acontece quando tendo adicionar as novas linhas.
    Com o codigo que se segue podes ver que estou a atribuir a uma EditText o codigo do artigo a escrever. O problema é se correr em modo debug consigo ver que a aplicação chega a essa linha 
    oEditText.Value = ItemCodeTXT.ToString();
    e volta para trás, ou seja entra num loop e nao sai daqui.
    if (oRS.RecordCount > 0)
                        oRS.MoveFirst();
                        numart = oRS.RecordCount;
                        f.Freeze(true);
                        for (j = 1; j <= numart; j++)
                            try
                                ItemCodeTXT = oRS.Fields.Item(0).Value.ToString();
                                oEditText = ((SAPbouiCOM.EditText)(oMatrix.Columns.Item(3).Cells.Item(oMatrix.RowCount).Specific));
                                oEditText.Value = ItemCodeTXT.ToString();
                                f.Update();
                                oRS.MoveNext();
                            catch (Exception oEx)
                                f.Freeze(false);
                                f.Update();
                                MessageBox.Show(oEx.Message + " j = " + System.Convert.ToString(j));
    Eu para adicionar uma nova linha o que tenho de fazer? não vasta passar a informação do item code?
    Este desenvolvimento é para implementar ecoreee no sap. Nao sei já tiveste alguma coisa dessas entre mãos.
    Obrigado mais uma vez pela atenção. Espero também um dia poder ajudar.
    Com os melhores cumprimentos.
    Luis duarte

  • Matrix Add Row and Duplicate Row

    Hi All,
    Can anybody suggest me how to work on Add row and duplicate row in any document table.
    Lets take one example
    Sales order document
    In this doc we have table format where we specify item no, item description etc. In this table when we right click on particluar row we have option for add, delete, duplicate rows..etc.
    wht i would like to know is that when we click add row .....one row is added and number is incremented under # column.  Hw to perform and display this auto increment/ decrement of number for these rows under this # column
    thanks
    harish

    Hi,
    I tried following both code, but in that i am geting value. Means i am getting .Value  Why i not getting value.
      matrix.Columns.Item("V_-1").Cells.Item(pVal.Row).Specific.value = matrix.RowCount
    and i also tried for "AddRow",
    If pVal.BeforeAction = False Then
                    Select Case pVal.ItemUID
                        Case "AddRow"
                            matrix = form.Items.Item("mtr").Specific
                            If matrix.RowCount > 0 Then
                                If Trim(matrix.Columns.Item("V_-1").Cells.Item(matrix.RowCount).Specific.value) = "" Then
                                End If
                            End If
                    End Select
                End If
    In both example i not getting .Value.
    Plz tell y ?
    Thanks

  • Matrix Add Row

    hi guys,
    I created one form in screen painter and used this form in VB.net. In this form one grid is available.
    In the menuevent of this form I write the code for open the form when user click on menu. I also write the code for add row in the matrix.
    When I open the form first time both opening the form as well as adding row into the matrix works fine.
    After closing the form and open the form second time menuevent occur more than 2 times.
    Due to this many rows are added in the matrix only one click of add row.
    What would be reason for occuring menuevents more than 2 times?
    Can anyone  help me?
    thanks in advance.

    hi kamil,
    this function is called when click on Menu event.
    when form is loaded.
    // code when form is loaded from XML File.
    Public Sub LoadForm1()
            Dim oXmlDoc As Xml.XmlDocument
            oXmlDoc = New Xml.XmlDocument
            Dim sPath As String
            Try
            sPath = IO.Directory.GetParent(Application.StartupPath).ToString & "\"
            oXmlDoc.Load(sPath & "NewInvoicePO.srf")
            Dim cp As SAPbouiCOM.FormCreationParams
            cp = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
                cp.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Fixed
                cp.FormType = "Invoice"
                cp.XmlData = oXmlDoc.InnerXml
                cp.UniqueID = "IndentPO"
                cp.ObjectType = "POHeader"
            oForm1 = SBO_Application.Forms.AddEx(cp)
            oForm1.Title = "Indent PO"
            oForm1.AutoManaged = True
            oForm1.SupportedModes = -1
                'oForm1.DataBrowser.BrowseBy = oForm1.Items.Item("33").Specific().value
                oForm1.Freeze(True)
                oForm1.EnableMenu("1281", True)  '// Add Find Mode
                'oForm1.EnableMenu("1282", True)  '// Add New Record 
                oForm1.EnableMenu("1288", True)  '// Next Record 
                oForm1.EnableMenu("1289", True)  '// Pevious Record 
                oForm1.EnableMenu("1290", True)  '// First Record 
                oForm1.EnableMenu("1291", True)  '// Last record
                oForm1.EnableMenu("1292", True)  '// Add Row
                oForm1.EnableMenu("1293", True)  '// Delete Row
                oForm1.EnableMenu("1294", True)  '// Duplicate Row
            AddDataBindToMainForm()
            CreateMatrixForForm1()
            oDBDataSource4 = oForm1.DataSources.DBDataSources.Add("@INDENTPOMASTER")
            oDBDataSource5 = oForm1.DataSources.DBDataSources.Add("@INDENTPOCHILD")
                oForm1.DataBrowser.BrowseBy = "31"
            GetMaxPONo()
            oForm1.Freeze(False)
                oForm1.Visible = True
            Catch ex As Exception
                MsgBox(ex.Message)
            End Try
        End Sub
    I write the following code in the item event when click on close button.
    // code when click on close button
    If pVal.FormUID = "IndentPO" And pVal.ItemUID = "2" And pVal.BeforeAction = True Then
                    Try
                      oForm1.EnableMenu("1288", False)  '// Next Record 
                      oForm1.EnableMenu("1289", False)  '// Pevious Record 
                        oForm1.EnableMenu("1290", False)  '// First Record 
                        oForm1.EnableMenu("1291", False)  '// Last record
                        oForm1.EnableMenu("1292", False)  '// Add Row
                        oForm1.EnableMenu("1293", False)  '// Delete Row
                        oForm1.EnableMenu("1294", False)  '// Duplicate Row
                        Exit Sub
                    Catch ex As Exception
                        'MsgBox(ex.Message)
                    End Try
                End If
    In the first line of the try block I got the error.
    Error : object reference not set to an instance of an object.

  • Add row in Memu Event can't work

    1:I create a Master UDO
    2:Regist UDO with a child table
    3:use UDO form generator tool to generate a UDO form with xml file
    4:I use load from xml funtion to call form.
    5. Add a buttom name "Add row" and have code with Add a row for matrix 
    I have two problems
    one is,
    I can add row by press "Add row" button and I can delete a row by UDO default menu("delete Row CtrlK"). My problem is why the default menu(Add Row CtrlI) don't work? May I write code for add a row by myself?
    The other is
    When I add menueven sub(catch menueven) in program ,my "Add row" buttom can't work normally. If I remove the menueven sub from my program, the  "Add row" buttom work fine. Why? somebody help me.

    Hi Glen,
    In my case, I developed own functionality to add row for a matrix.
    I don't use 'add row' menu event actually.
    And I don't know about menu event sub problems without any source code.
    Regards,
    Hyunil.

  • Re:Adding a row in a matrix using Lost_Focus event & deleting a row

    Dear All,
    Iam facing a problem in adding a row in a matrix using last focus event.its like if i keep the cusor in the last coloumn in a matrix n if i press tab it should add a row .the row is getting added the problem here is the cursor is gng to first row but it should come to the second row.
    the second problem is while deleting a row the row is getting deleted but the row count is showing the deleted row no.
    pls suggest a solution for these problems.
    Thanks & Regards
    Anand

    Hi,
    If pVal.BeforeAction = False Then
                Select Case pVal.EventType
                    Case SAPbouiCOM.BoEventTypes.et_KEY_DOWN
                        If pVal.ItemUID = "matlab" And pVal.ColUID = "mtimeout" And pVal.CharPressed = 9 Then
                            oMatrix = oForm.Items.Item("matlab").Specific
                            Dim rc As Integer = oMatrix.VisualRowCount
                            If rc = pVal.Row Then
                                addrow()    'funtion for adding row
                                oMatrix.Columns.Item("labc").Cells.Item(oMatrix.RowCount).Click()
                                'SBO_Application.MessageBox(oMatrix.RowCount)
                            End If
                        End If
    This is the function i hav used
    Private Sub addrow()
            Try
                If (oForm.UniqueID = "updt") Then
                    oForm = SBO_Application.Forms.ActiveForm
                    oForm = SBO_Application.Forms.Item("updt")
                    omatrix = oForm.Items.Item("matlab").Specific
                    omatrix.AddRow(1, omatrix.VisualRowCount)
                    Dim rc As Integer = omatrix.VisualRowCount
                    'SBO_Application.MessageBox(rc)
                    otext1 = omatrix.Columns.Item("mdatein").Cells.Item(rc).Specific
                    otext1.String = "s" 'RecSet.Fields.Item("date1").Value
                    otext1 = omatrix.Columns.Item("mdateout").Cells.Item(rc).Specific
                    otext1.String = "s" 'RecSet.Fields.Item("date1").Value
                    End If
            Catch ex As Exception
                SBO_Application.MessageBox(ex.Message)
            End Try
        End Sub
    this is the code which m using
    Regards,
    Anand

  • At Runtime how to select a row in a matrix ?

    Hi friends,
                 I have designed a form with matrix.That matrix is populted with multiple rows.
                 <b> I want to select a row in  that matrix  </b> and i want to get the line data an put into another form
                 Is there is any event handling is there?
                   If i <b>doubleclick</b> on that row that's <b>data has to displayed</b> (eg using message box )
                   If i <b>single click</b> on that row That <b>row has to be selected</b>.
    <b></b>
             Can anybody help me
    Thanks
    V.Rangarajan

    Hi Ranga!
    try to catch the clicks in the ItemEvent of your Application!
    here some code..
    "Matrix1" is the UID of your Matrix!
    If pVal.ItemUID = "Matrix1" And pVal.Row > "-1" And _
    pVal.Before_Action = False And pVal.EventType = _ SAPbouiCOM.BoEventTypes.et_CLICK Then
    oMatrix.SelectRow(pVal.Row, True, False)
    Elseif pVal.ItemUID = "Matrix1" And pVal.Row > "-1" And _
    pVal.Before_Action = False And pVal.EventType = _ SAPbouiCOM.BoEventTypes.et_DOUBLE_CLICK Then
    SBO_Application.MessageBox(oMatrix.Columns.Item(pVal.ColUID).Cells.Item(pVal.Row).Specific())
    End If
    haven't try this yet..but may it works!
    have a try!
    greetz
    Matthias

  • Behavior of ADD ROW button (v 2.0)

    Hi,
    I have a tabular SQL report form with 4 buttons: cancel, add row, submit, delete.
    I come to the screen with no records, execute a query. After that I need to perform insert.
    I press <ADD ROW> button, and correctly have one empty record for my possession. (in the process definition I have only 1 record to add.) I put some data into this row; and without the submitting I add another row by pressing <ADD ROW> button once more. And what happens? HTMLDB saves my 1st record and add another empty one! Is it expected behavior, that is what supposed to be? How to avoid it, not allow to save that recored (because in this case it by pass all my validations and insert a bad data) or at least alert the user that what is going to be?
    Please, help.
    Thanks,
    Jenny.

    Vikas,
    I've made some tests:
    1. ADD button does not add a new record when there are not rows on the screen
    2. if there is a row with invalid data (some mandatory fields are null) it does validations, it works, on the old record, which is on the screen.
    3. after submitting correct record (commit was perfomed), add button gives
    " Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process"
    I my old posting Re: Error handling on Tabular form you created a sample appl to test that null validation function foo() which I'm using now for this process. Can you try ADD button also in that sample appl of yours?
    I tried all these possibilities. So far, they do not work for me.
    Thanks,
    Jenny.

  • I cant add .mp4 movie into itunes

    Hello there, I am just wondering why i cant add mp4 moive into my itunes, and I tried to set up automatic adding folder in my pc, but after i drag the moive into the folder, it automaticlly generate a folder called 'NOT ADDED'. I am wondering if there any reason i cant add this moive,it is very small, around 6m.
    thanks

    You can convert .m4p using iTunes.
    Make a playlist of files and burn to "audio CD". Use the new .aiff file in your iMovie Project.

  • UDO: Add and Remove rows to/from Matrix.

    Hi all,
    Yes, I know there are lots of topics about adding and removing rows but I was having trouble with these and I need some expert's opinion.
    I'm working with a Document type UDO, with 1 header table (ADAT_ONR) and 1 child table (ADAT_NR1 -  MatrixUID = "mtx_NR").
    I add the first row when the user chooses the business partner.
    If oMatrix.RowCount = 0 Then
         oMatrix.AddRow()
          oMatrix.AutoResizeColumns()
         oMatrix.Columns.Item("V_LineId").Cells.Item(1).Specific.Value = 1
    End If
    Then, the user has to press the AddRow button to add new rows, and the user can only add 1 new blank row. Later I'll change the row adding behavior to mimic B1s.
                If pVal.BeforeAction = False Then
                    Select Case pVal.ItemUID
                        Case "AddRow"
                            'ItemHandler_Click = AddRow(oCompany, oApplication, oForm, oForm.Items.Item("mtx_NR").Specific.RowCount())
                            oMatrix = oForm.Items.Item("mtx_NR").Specific
                            If oMatrix.RowCount > 0 Then
                                If Trim(oMatrix.Columns.Item("V_PltCode").Cells.Item(oMatrix.RowCount).Specific.Value) = "" Then
                                    oApplication.StatusBar.SetText(TranslateStr(oApplication, MustChoosePallet), BoMessageTime.bmt_Short)
                                    Exit Function
                                End If
                            End If
                            ItemHandler_Click = NewLine(oCompany, oApplication, oForm)
                            Exit Function
        Private Function NewLine(ByRef oCompany As SAPbobsCOM.Company, ByRef oApplication As SAPbouiCOM.Application, _
            ByRef oForm As SAPbouiCOM.Form) As Boolean
            NewLine = False
            Try
                oMatrix = oForm.Items.Item("mtx_NR").Specific
                Dim Index As Integer = oMatrix.RowCount
                With oForm.DataSources.DBDataSources.Item("@ADAT_NR1")
                    .Clear()
                End With
                oMatrix.AddRow()
                oMatrix.Columns.Item("V_LineId").Cells.Item(Index + 1).Specific.Value = (Index + 1).ToString
                oMatrix.FlushToDataSource()
                oMatrix.LoadFromDataSource()
                oForm.Refresh()
                NewLine = True
            Catch ex As Exception
                oApplication.MessageBox("NewLine(): " & oCompany.GetLastErrorCode.ToString & ", " & ex.Message)
            End Try
        End Function
    When I Add or Update the data, I clear the last blank row, if it exists.
               '// In the Click Event
               If pVal.BeforeAction = True Then
                    Select Case pVal.ItemUID
                        Case "1"
                            If oForm.Mode <> BoFormMode.fm_FIND_MODE Then
                                oMatrix = oForm.Items.Item("mtx_NR").Specific
                                oMatrix.FlushToDataSource()
                                oMatrix.LoadFromDataSource()
                                If Trim(oMatrix.Columns.Item("V_PltCode").Cells.Item(oMatrix.RowCount).Specific.Value) = "" Then
                                    oForm.DataSources.DBDataSources.Item("@ADAT_NR1").RemoveRecord(oMatrix.RowCount - 1)
                                    oMatrix.DeleteRow(oMatrix.RowCount)
                                    'oMatrix.FlushToDataSource()
                                End If
                            End If
                    End Select
    My question is, Is there an easier way to Add and Delete Rows??
    BTW, I still have a problem so solve. With this code, when the user deletes a row the row numbering is incorrect. Example: if I have to rows in a matrix and I delete row nº1, row nº2 will hold the same number...
    Any Ideas?
    Thanks in advanced,
    Vítor Vieira

    Hi Victor,
    there is a Form Data event which you ca use in that try to write the code for adding a row after updating and delete a row while inserting and add a row while traversing.
    sample code.
    Sub FormDataEvent(ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, ByRef BubbleEvent As Boolean)
            Try
                Select Case BusinessObjectInfo.EventType
                    Case SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD, SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE
                        If BusinessObjectInfo.BeforeAction = True Then
                            objForm = objMain.objApplication.Forms.Item(BusinessObjectInfo.FormUID)
                            oDBs_Head = objForm.DataSources.DBDataSources.Item("@Header")
                            oDBs_Detail= objForm.DataSources.DBDataSources.Item("@Line")
                            objMatrix = objForm.Items.Item("83").Specific
                            If objMatrix.VisualRowCount <> 0 Then
                                objMatrix.DeleteRow(objMatrix.VisualRowCount)
                                objMatrix.FlushToDataSource()
                            End If
                            If BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD Then
                                End If
                        ElseIf BusinessObjectInfo.ActionSuccess = True Then
                            objForm = objMain.objApplication.Forms.Item(BusinessObjectInfo.FormUID)
                            If BusinessObjectInfo.EventType =                    SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE Then
                                objMatrix = objForm.Items.Item("83").Specific
                                objMatrix.AddRow()
                                SetNewLineCharge(objForm.UniqueID, objMatrix.VisualRowCount)
                                objMatrix.FlushToDataSource()
                              End If
                        End If
                    Case SAPbouiCOM.BoEventTypes.et_FORM_DATA_LOAD
                        If BusinessObjectInfo.ActionSuccess = True Then
                            oDBs_Head = objForm.DataSources.DBDataSources.Item("@Header")
                           oDBs_Detail = objForm.DataSources.DBDataSources.Item("@Line")
                            objMatrix = objForm.Items.Item("83").Specific
                            objMatrix.AddRow()
                            SetNewLineCharge(objForm.UniqueID, objMatrix.VisualRowCount)
                            objMatrix.FlushToDataSource()
                           End If
                End Select
                End Sub
    Hope this helps,
    OM Prakash

  • Re: Add Row in Matrix

    Hi All,
    I want to add a row in matrix by clicking the Add Row option by right clicking on the matrix. If the form has one matrix means its working well. But if the form has more than one matrix if i activate the Add Row menu and write the code in the MenuEvent i am not able to give the ItemUID so if i add row in any of the matrix one row is added in all the matrix. How can i solve the problem.
    Thanks in Advance.
    Regards,
    Madhavi.

    Hi Madhavi,
    save the position and and the itemuid in a variable.
    use the et_GOT_FOCUS event for this - than you know always in which matrix
    and position you're standing.
    use the variables in the et_MENU_EVENT to add the row in correct matrix and position
    lg David

  • Add Row in Matrix by pressing "Alt" button in last cell of matrix

    Hello All,
    I want to enable the rows of the matrix by pressing "Alt" in the last column so that the next row get enabled instead of
    pressing the "Add Line" Button every time.
    I have done it by pressing "Tab" using pval.charpressed="9"
    But i want to do it by pressing "Alt" key is this posible.
    Please share the code or suggest any way to do it .
    Thanks & Regards,
    Amit

    Hi Amit,
    Only Tab, Enter, Escape, Delete and Back Space are available to charpressed. Alt button has no equivalent coding.
    Thanks,
    Gordon

  • In Matrix Value is duplicating while giving add row

    In matrix i have given add row but the value is duplicating from the previous row in update mode.in add mode its ok
    and while clicking update =    error is coming "This entry already exists in the following tables "
    plz help
    its Urgent

    Hi Nikhil k,
    This is a kind of behavior of matrix.
    So what you can do is that after calling the AddRow () Method put the blank values in the newly added row. Use this as follows:
    oMatrix.AddRow();
    oMatrix.FlushToDataSource();
    this.oForm.DataSources.DBDataSources.Item("@DETAILTABLE").SetValue("U_Code", oMatrix.VisualRowCount - 1, "");
                                                this.oForm.DataSources.DBDataSources.Item("@DETAILTABLE").SetValue("U_Name", oMatrix.VisualRowCount - 1, "");
    oMatrix.LoadFromDataSource();
    Hope it helps.
    Thanks & Regards
    Ankit Chauhan

  • Cant Add UDF Row from UDT

    Hi,
    Need assistance regarding UDF and UDT, I cant add another entry row in the UDF, The UDT is linked with the UDF, I have checked all the other UDF linked with UDF it works fine but only one cant add.
    I cant click the field to manually add the data or Define New.
    Thank you in advance.
    Regards,
    Clint

    Gordon,
    I go to Tools -> then User Tables, then I choice List if Ships, if i will click it it will open the List of Ships, from their I want to add additional Name of Ships, but I cant the form is disabled and grayed.
    I cant input or enter additional Ships. But I check other Names from the List it will add. What maybe the cause?
    Clint

  • Why cant I add contacts on the iphone4? the mail contacts calendars button unders settings, the contacts button, the add a contacts button under message and the phone button will not work to add a contact.

    Why cant I add contacts on the iphone4? the mail contacts calendars button unders settings, the contacts button, the add a contacts button under message and the phone button will not work to add a contact.

    Have you attempted a restore?

Maybe you are looking for

  • 1.1 bytecode doesn't work on W2k ie5?

    One step forward and two steps back... I compiled my applet using the -target 1.1 option, so that everyone could use my applet without plug-in. I could get it to work with a plug-in, but students for some reason had a hard time following the directio

  • Call Smartforms in WD

    Hi all, i want to print the data that i have in Portal (WD)  in a PDF via Smartforms,  can somebody tell me how can i do this? Best Regards

  • Should I Put Disk/Media Cache Folder in Primary SSD with OS and Apps?

    Hello, I have a SATA3 SSD with OS and Apps on them, and 2 SATA2 HDDs, one for footages/projects and the other for renders/archive. I believe putting the disk/media cache in the SSD would boost performance because of the speed, but I heard it can shor

  • Connecting IPOD video to surround sound HELP PLEASE!

    Hi! I have been trying to connect my ipod to my surrond sound system at home, but everytime I plug it in all it says is "Do not disconnect" and won't let me go to my menu to play songs. Any suggestions? Thanks!

  • Php & mysql trouble

    hi there, i'm having trouble to get a working LAMP system. apache, mysql and php are functional (phpmyadmin as well), but when i'm trying to run a backup of website content, i get : Fatal error: Call to undefined function mysql_connect() in ... weird