Matrix Empty row Binding Problem

Hi ,
i created one matrix using screen painter.. all my columns are binded
with user defined fields.(Doc Rows Table). if my total row count is 5.
and i deleted 2 rows using rightclick deleterow event. after adding if i see the same document  it display the 2 empty rows and 3 rows with my details.. actually its showing that deleted row also.my UDT also having empty row details..
how to resolve this?
Regards,
Ganesh K

Hi Geetha,
i think you misunderstood my scenario. while adding no empty rows
are displayed, even if  i deleted some added row details.After adding,
while retriving the same document  the problem occurs.if am not clear let me know..
As you told, beforeAction = false of Add will be new form with Add mode.so not possible to check that old matrix. otherwise we can delete the empty details from database using query..in beforeaction false pval.actionsucess true part...
regards,
Ganesh k.

Similar Messages

  • Matrix multiple rows adding problem

    Hi all,
    In a SDK developed form, have a button "Add Row". When press Add Row a new row has to be added in the matrix.
    I' ve written the set of codes as
    Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
            Dim oitem As SAPbouiCOM.Item
            Try
                If (FormUID = "Frm_itemsupplier") Then
                    If (pVal.Before_Action = False) Then
                        'Add Row
                        If (pVal.ItemUID = "AddRow") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) Then
                            Dim f As SAPbouiCOM.Form
                            Dim oMatrix As SAPbouiCOM.Matrix
                            f = SBO_Application.Forms.Item(FormUID)
                            oMatrix = f.Items.Item("mat1").Specific
                            f.DataSources.DBDataSources.Item(1).Clear()
                            oMatrix.AddRow(1)
                        End If
    But at run time, when press Add row button first time this will add one row.  Then I cancel the form, open the same form then press add row Button, 1+1 rows are adding in the matrix. If I do the above(cancel and open the form again), keep on increasing rows additionally on every time.
    Let me get a solution how to solve the issue and I will be appreciated.
    Thanks & regards,
    Venkatesan g.

    try it as
    Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
    Dim oitem As SAPbouiCOM.Item
    Try
    If (FormUID = "Frm_itemsupplier") Then
    If (pVal.Before_Action = False) Then
    'Add Row
    If (pVal.ItemUID = "AddRow") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) Then
    Dim f As SAPbouiCOM.Form
    Dim oMatrix As SAPbouiCOM.Matrix
    f = SBO_Application.Forms.Item(FormUID)
    oMatrix = f.Items.Item("mat1").Specific
    f.DataSources.DBDataSources.Item(1).Clear()
                        Dim cell As SAPbouiCOM.Cell
                        Dim col As SAPbouiCOM.Column
                        Dim ed As SAPbouiCOM.EditText
                        col = omatrix1.Columns.Item(1)
                        cell = col.Cells.Item(1)
                        ed = cell.Specific
                        if ed.String <> "" then
    oMatrix.AddRow(1,0)
    end if
    End If
    this will test before addrow if there exist blank first row and in case that no, it will add new row. The sample test for column index 1 and first row.
    Hope it`s what you need.

  • How to insert an empty row on a matrix with multiple loaded lines?

    Hi.
    I want to insert an empty row on my form's matrix. Currently I am using the <b>AddRow </b>method, as it is:
    // C# - it's mandatory to give parameters to the method (=
    oMatrix.AddRow(1,1)
    But, when the matrix already has some rows (at least 1), the method <b>AddRow </b>inserts the new line as a copy of above line, then, I have to manually clear all cells.
    Any idea on this?
    Thanks in advance.

    If you matrix is bound to a dbDatasource you can insert a record in the dbdataspurce instead of using matrix.AddRow... If not only way to do it is by clearing the row after add

  • How to avoid displaying empty rows in a table?

    The situation is as follows:
    I have got a set of questions under a particular category say marketing category.
    The user will be displayed with a table consisting of a set of questions from a particular category with four radio buttons for each question.
    Now once he is done with all the set of questions under a particular category, he will be navigated to the next set of questions under some other category say 'xyz'
    Now instead of creating seperate view objects for each category, we have created a view object which will hold all the set of questions from all the category but will display only the set of questions under a particular category by declaring a variable in the backing bean and setting the question rendering to the value in the variable. the value to the variable will be changed once the user is done with answering all the set of questions under a particular category.
    Now the problem that i am facing is:
    Because of the rendering condition that i have used, it displays only those rows that have the rendering condition set to the variable in the backing and displays all other empty rows overlapped.
    How do i avoid this situation ??

    Seems odd, but you could use COALESCE to achieve this.
    ME_XE?create table all_nullz (col1 number, col2 number, col3 number);
    Table created.
    Elapsed: 00:00:00.20
    ME_XE?
    ME_XE?insert into all_nullz values (1,2,3);
    1 row created.
    Elapsed: 00:00:00.12
    ME_XE?insert into all_nullz values (null, null, null);
    1 row created.
    Elapsed: 00:00:00.06
    ME_XE?
    ME_XE?delete from all_nullz where coalesce(col1,col2,col3) is null;
    1 row deleted.
    Elapsed: 00:00:00.26
    ME_XE?

  • Create empty row

    Hi All,
    I face some problem to create empty row. I need a empty row to show user that is end of operation.
    The output that I need as below.
    OprA     OprB     Data
    A100     (null)     Definition
    (null)     B100     Definition
    (null)     (null)     (null)
    A200     B200     Definition
    A200     (null)     Definition
    (null)     B200     Definition
    (null)     B200     Definition
    all of the null column from row 1, 2, 4, 5, 6, 7 is direct select from table. The row 3 is what I want to create. example A100 is same group with B100. After show last B100, is end of operation '100'. and need a empty or null row. Then continue with operation '200'.
    Thanks for who help me on this.

    Hi Skymonster,
    Not sure how you would be doing your processing.
    However assuming if you are doing it one after the other, meanig you first process 100 display it (here is where you want to append 200 now)
    here is one way of doing it.
    with data as (
    select 'A100' a,null b ,'DEFINiTION' c from dual union all
    select null,'B100','DEFINiTION' from dual),
    dat2 as (
    select null,'B200','DEFINiTION' from dual union all
    select 'A200',null,'DEFINiTION' from dual union all
    select null,'B200','DEFINiTION' from dual)
    select * from data
    group by rollup(a,b,c)
    having (grouping(a)=1 and grouping(b)=1 and grouping(c)=1) or
    (grouping(a)=0 and grouping(b)=0 and grouping(c)=0)
    union all
    select * from dat2However i am of the strong opinion that formatting should be handled by front end application and not in such a manner especially in this case.
    Peter's example is much better than mine where you directly uinon NULL
    Howver if you can give a clue how we can identify end of a record that will be helpfull.
    Regards,
    Bhushan

  • Row template showing always additional empty row

    Hi everybody,
    When I used row templates with apex 3 it worked fine. With apex 4, I always get an empty row in addition to the ones I query.
    This behavior appears with firefox 3.6.7 as well as with ie 8. The standard report template "value attribute pairs" causes the same wrong behavior.
    I appreciate any hints.
    Robert

    Hi Dan
    Thank you very much for looking at my problem. I have created an example. Please have a look under:
    workspace: processlink
    userid: admin
    password: admin
    application no: 395
    Thank you
    Robert

  • Empty row i forms mode

    If I set up a page in Table mode I can specify that I wish to have one or more empty rows when I open the page.
    In forms mode you don't have the same option. I would like to open the page and in case of no rows would like to have a new row added without having to push the Add Row button.
    Can this be done?

    The technique Ibrahim describes is in itself correct for general ADF apps. However, in this specific situation you should not use an invokeAction binding because that does not fire the JHeadstart-specific JhsPageLifecycle.onCreate method which truly sets the page in "createMode"ensuring the correct buttons and titles are displayed/hidden.
    See this thread for the correct technique:
    Re: Insert Mode
    Steven Davelaar,
    JHeadstart Team.

  • Empty row in UI Element DropDownByKey

    Hi there
    I have problems with the DropDownByKey UI Element. The one being populated with somme BAPI data works fine, but I want to implement one with the data from an enumeration of a simple type. What I am missing is the possiblity to set the selected element to the first value instead of having an empty row. Any ideas?
    Thank you for your help!
    Andreas

    hi,
    What is the built in type for the simple type.. I think it is string ? Check that..
    Did u set it as the type for a context attribute and map the context attribute to the dropdownby key UI element.
    If u have done this you can set the value as
    wdContext.currentContextelement.set<Cont attr name>("the value want to be selected");
    This value u want to select will be of the built in type of the enumeration
    regards
    Bharathwaj

  • Empty Row ?????

    Hi
    I have a page with a grid with Record name My_Record. Grid delivered add row is not used instead a custom add Button is present below the grid to add a row .
    On Field Change of Custom Add Button :
    &Rowset0 = GetLevel0();
    &Rowset1 = &Rowset0(1).GetRowset(Scroll.My_Record);
    &Rows = &Rowset1.ActiveRowCount;
    If &Rows = 1 And
    &Rowset1(1).IsNew Then
    &NewRowNumber = 1; /* component variable to track current row */
    Else
    &Rowset1.InsertRow(&Rows);
    &NewRowNumber = &Rows + 1; /* component variable to track current row */
    End-If;
    &RETURN_MODAL = DoModal(Page.MY_SEC_PAGE, "", - 1, - 1, 1, Record.My_Record, &NewRowNumber);
    but when i save first time , it always going to save an additional empty row in the record.
    How an empty row is bieng inserted ?
    On page there is no field on Level0 , if this is the issue ?

    Problem Solved....
    There was another Page in the Component which was no longer required. It had fields of this Record at Level 0 so when Save was called, it saved an Empty Row.
    Edited by: Mohsin on Aug 15, 2012 4:52 PM

  • SSRS display empty rows

    Hi,
    We have a simple report like the following left side, because we use group by in query, now the empty rows will not show in report.
    Is there any way we can show all empty items from column B as the snapshot right side? Thank you.
    select columnA, columnB, sum(total1) as Total
    from mytable
    group by columnA, columnB

    That's not so much an SSRS issue as it is a SQL issue. It can be tough getting SSRS to display data that doesn't exist.
    You may be able to get it to work using a Matrix but my personal preference is to handle it in the SQL code itself. Something like the following should work for you...
    CREATE TABLE #temp (
    ColA CHAR(2),
    ColB CHAR(2),
    Amt INT
    INSERT #temp (ColA,ColB,Amt) VALUES
    ('A1','B1',10),
    ('A1','B1',10),
    ('A1','B2',25),
    ('A1','B2',5),
    ('A1','B3',10),
    ('A2','B1',20)
    -- SELECT * FROM #temp
    SELECT
    t0.ColA,
    t0.ColB,
    SUM(COALESCE(t.Amt, 0)) AS Total
    FROM
    #temp t
    FULL JOIN (
    SELECT
    t1.ColA,
    t2.ColB
    FROM (
    SELECT DISTINCT t1.ColA
    FROM #temp t1
    ) t1
    CROSS JOIN (
    SELECT DISTINCT t2.ColB
    FROM #temp t2
    ) t2
    ) t0
    ON t.ColA = t0.ColA
    AND t.ColB = t0.ColB
    GROUP BY
    t0.ColA,
    t0.ColB
    ORDER BY
    t0.ColA,
    t0.ColB
    Jason Long

  • Create Table with extra empty row

    Hi,
    I have two problems...
    I need to create a table from DB with one extra empty row.
    Is there an easy way to do this?
    And I need a button to delete all in that table.
    something like SQL:
    delete from tableX
    Anything that helps me on the way... what I should look for?

    835652 wrote:
    Hi,
    I have two problems...
    I need to create a table from DB with one extra empty row.
    Is there an easy way to do this?this is strange requirement can you clear what is your use case ?
    >
    And I need a button to delete all in that table.
    something like SQL:
    delete from tableX
    Anything that helps me on the way... what I should look for?Try this http://baigsorcl.blogspot.com/2010/11/how-to-execute-sql-dml-statements-in.html

  • Geting row data problem from datatable

    I have 2 buttons on jsp page(OK button and Search button) and a datatable . under search_button_click ; filling datatable with personInfo also under ok_button_click
    i get all rows using iteration..code is below...first column of datatable is selectBoolean. i try to get row that was checked.
    for (MyBean row : listTable) {
    if (row.isCbteyit()) {
    System.out.println("...:" + row.getPO_KARNE_ADET());
    problem;i can get all rows but i can't get checkbox checked info..all rows return false...
    Balus i try to do like your source code.
    http://balusc.blogspot.com/2006/06/using-datatables.html(Select multiple rows)
    also jsp side binding code is
    <h:dataTable value="#{denemeTEYIT.listData}"

    Dear Jansi
    thanks for the link,
    in SMSY i SEE a difrent massage server in the java and abap? from where did he get the massage server?
    the data source in the java is SLD but in abap is tms/rfc whay?
    regards
    Naor

  • How to create editable table with one empty row ?

    I'm looking for solution how to create editable table with one empty row using ADF BC. I have seen this solution in application that was created in JHeadstart and it's very well idea to use it insead of creation form.

    hammm, i do it this:
    drop the VO on the page, select Table->ADF Table....
    so, drop the botton create, from de VO->operations->create (the firts), and right botton (mouse) Edit binding....
    in Data collection select the VO, in Select an action select CreateInsert
    luck

  • Increase empty rows in BPS Manual planning

    Hi All,
    I have a BPS layout and there is already data in the cube and I can see it. when I want to add additional data via this manual planning layout, ı only see 20 empty rows. when ı insert 20 rows of data and save it, new 20 empty rows will come.
    Is it possible to increase these rows from 20 to 500.
    I want to insert 500 rows of data at a same time.
    I appreciate you for your replies.
    Ali

    Hello Ali,
    we have had the same problem and could extend the number of input ready rows by changing of the system function:
    Function Group: UPP_FRONT_SPREADS
    Include: LUPP_FRONT_SPREADSTOP
    Following line was changed:
    *\constants: c_dummies_number type upp_y_row value  20.
    constants: c_dummies_number type upp_y_row value 500.
    Best regards,
    Kirill

  • Empty rows from imported excel sheet

    Hi all
    I use Intelligent Explorer 8.3 and have an imported excel sheet in the query.
    If I process this file I receive a lot of empty rows on top the data I like receive. But in this excel sheet there are no empty rows. What could be the problem?
    Is there a setting which I can change the path to this excel sheet?
    The only way I know is to rename the excel file that I get a message box to set the path again.
    Thank you very much in advance
    Michael

    I solved the problem with the empty rows already. The problem was that Brio retrieves empty rows if they are used before. There is obviously a difference between empty rows which are used and which are unused. But I am still trying to find the excel settings where you can change the path to the excel sheet.
    Thank you anyway

Maybe you are looking for

  • Tax Line items are not showing seperately as per exp in FB60

    Hi, In FB60, I have booked the two expenses with tax code separately.  While simulating the entry the tax lines are not showing separately as per expenses.  For example: Suppose my tax code = AB which is equal to 10% maintained in FTXP. At present en

  • Spotlight doesn't search

    I have a user who is trying to search our mounted Tiger Server (10.4) volumes from his Leopard (10.5.5) system. He cannot retrieve any search results using spotlight. Searching his home drive works fine, but searching any mounted volume returns incom

  • Submit button change text

    Please how can I change word submit in submit button? I need it have in a local (slovak) language.

  • Setting default preferences (CS3)

    Hi, I seem to be losing my preferences a lot recently, when I have a crash, and it's becoming quite tedious fixing them manually. I've managed to successfully java script a few things to work on startup. However there are a few things I don't know th

  • How to schedule script to automate backup of CAS/CAM

    Hi Team, I want to configure automate backup of CAS/CAM Device on any free server available in network. Is there any script or setting we can configure on these devices