Insert empty row

Hi all,
I am trying to insert a new emty row to my JTable. After the new row is inserted the user should fill in the values.
I tried inserting dummy data; it works fine. However, when I try to insert an empty Vector I get the following exception. Any reasons for this?
//code
//static MyTableModel myModel = new static MyTableModel(columnNames, data);
TableDemo.myModel.addRow( new Vector() );
java.lang.ArrayIndexOutOfBoundsException: 4 > 0
     at java.util.Vector.insertElementAt(Vector.java:558)
     at javax.swing.table.DefaultTableModel.insertRow(DefaultTableModel.java:347)
     at javax.swing.table.DefaultTableModel.addRow(DefaultTableModel.java:323)
     at project.ListenerCreateRecordButton.actionPerformed(ListenerCreateRecordButton.java:24)
     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1834)
     at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2152)
     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)

Use the DefaultTableModel as is. I don't see any reason for you to extend it.
This posting shows how to use the addRow method of the DefaultTableModel:
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=577919

Similar Messages

  • Inserting empty row in query designer

    Hi Gurus
    Can any one advice me on how to insert a empty row in Query designer
    I'm using structure
    Thank you

    Refer - /thread/814122 [original link is broken]

  • Insert new row in Data Table

    Hi All,
    Based on "Insert, Update and Delete" tutorial it's easy to perform insert by addidng new row in forms.
    Then I tried to do the myRowSet.moveToInsertRow() having a the RowSet bound to a Data Table and no new record appears :( !
    Any workaround ?

    My guess is that you are not refreshing the datatable - you must call execute on the datatable model object again.
    Unless you are expecting a new "inserted" empty row to be created on the datatable itself when you call moveToInsertRow - the JSF standard datatable doesn't support that operation. See the AppModel sample application to see another option to handle that scenario.
    v

  • Print Empty rows in a Template

    Hi All,
    my requirement is to create a template for payslip, which contains earnings, deductions & Net Amount.
    If an employee has 10 earnings and 6 deductions and another employee has 3 earnings and 2 deductions then the Template is differ's based on the data.
    For both the employees, the template should look same, so by inserting empty rows, i think it is solved...
    How to insert Empty Rows in the Template?
    Did anyone get this working and knows what I am doing wrong?
    Regards,
    Dilip

    I think the query is not returning all the data desired.
    You need a zero value for each deduction/earning per employee in the query results.
    To get the query to give all the necessary zeros I would do a union that is simply all the employees returned in the first part of the query matched up with the table(s) that have all the deduction and earnings fields.
    Of course the amount of the earnings or deductions would simply be an expression - zero.
    Then when the data is run against the xmlp template, it would have to sum the values.
    This would make all the reports come out the same.
    The way to think about the the xmlp template is that it does a loop/filter through your data.
    If your loop is on employee - it is only going to return the rows with that employee.
    If that employee does not have a certain deduction then it will not show up.
    If your loop is on deduction or earnings - it is only going to return the rows with that employee.
    Now if you have a fixed list of deductions/earnings then you can code this into the xmlp template - tedious, but it will work.
    If your deductions/earnings ever change, you will have to perform maintenance on the report.

  • 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 can I create an empty row on a #TempTable based on an input parameter

    So if my Line of Business is 'MC' or 'MG', I have to go over to Oracle and get its data accordingly. Then, when I create my final report result set, I think I'll want to UNION in that result set if my Parameter is 'MC' or 'MG'. I don't think I can UNION
    based on the value of the Parameter. So my thought process was to create an empty row on my #TempTable so when I UNION and my parameter is NOT 'MC' or 'MG' then it will have nothing to UNION in. My struggle is how do I create an empty row in my #TempTable
    if my parameter is NOT 'MC' or 'MG'
    If I am wwwaaayyy off here, please tell me so.
    This is my #TempTable Creation SQL...
    IF EXISTS
    (SELECT 1
    FROM [#TempTable_LineOfBusiness_Parameter]
    WHERE [#TempTable_LineOfBusiness_Parameter].[RESULT] IN ('MC','MG'))
    BEGIN
    SELECT *
    INTO [#TempTable_Market_Prominence_Member_Data]
    FROM OPENQUERY
    (RPDMHF,
    'SELECT HCFA_NAME_ORG.NAME_ID,
    HCFA_NAME_ORG.MEMBER_ID,
    HCFA_NAME_ORG.HIC_NUMBER,
    MEMBER.NAME_FIRST,
    MEMBER.NAME_LAST,
    HCFA_DATE.START_DATE,
    HCFA_DATE.END_DATE,
    HCFA_NAME_ORG.COUNTY_CODE,
    HCFA_NAME_ORG.PART_A_PAYMENT,
    HCFA_NAME_ORG.PART_B_PAYMENT,
    HCFA_NAME_ORG.STATUS,
    HCFA_NAME_ORG.ORG_ID,
    HCFA_NAME_ORG.PLAN,
    HCFA_NAME_ORG.ENROLL_DATE,
    HCFA_NAME_ORG.PBP_ID,
    HCFA_DATE.VALUE
    FROM SC_BASE.HCFA_DATE
    LEFT JOIN SC_BASE.HCFA_NAME_ORG
    ON HCFA_NAME_ORG.NAME_ID = HCFA_DATE.NAME_ID
    LEFT JOIN AMIOWN.MEMBER
    ON TRIM(MEMBER.MEMBER_NBR) = TRIM(HCFA_NAME_ORG.MEMBER_ID)
    WHERE HCFA_DATE.INDICATOR = ''plan''
    AND HCFA_DATE.START_DATE >= ''2015-01-01''
    END
    If I add an ELSE, it always comes back and tells me the #TempTable_Market_Prominence_Member_Data already exists. As if it's creating it regardless of the Top IF.
    Thanks for your review and am hopeful for a reply.

    Hi ITBobbyP,
    The error came back from your ELSE Statement most probably caused by the reason mentioned in Hoffmann's post.
    Regarding your requirement, I would suggest you CREATE the [#TempTable_Market_Prominence_Member_Data] explicitly.
    CREATE TABLE [#TempTable_Market_Prominence_Member_Data]
    NAME_ID INT,
    MEMBER_ID INT,
    HIC_NUMBER VARCHAR(99),
    NAME_FIRST VARCHAR(99),
    NAME_LAST VARCHAR(99),
    START_DATE DATE,
    END_DATE DATE,
    COUNTY_CODE VARCHAR(99),
    PART_A_PAYMENT MONEY,
    PART_B_PAYMENT MONEY,
    STATUS VARCHAR(99),
    ORG_ID INT,
    PALN VARCHAR(99),
    ENROLL_DATE VARCHAR(99),
    PBP_ID INT,
    VALUE INT
    IF EXISTS
    (SELECT 1
    FROM [#TempTable_LineOfBusiness_Parameter]
    WHERE [#TempTable_LineOfBusiness_Parameter].[RESULT] IN ('MC','MG'))
    BEGIN
    INSERT INTO [#TempTable_Market_Prominence_Member_Data]
    SELECT *
    FROM OPENQUERY
    (RPDMHF,
    'SELECT HCFA_NAME_ORG.NAME_ID,
    HCFA_NAME_ORG.MEMBER_ID,
    HCFA_NAME_ORG.HIC_NUMBER,
    MEMBER.NAME_FIRST,
    MEMBER.NAME_LAST,
    HCFA_DATE.START_DATE,
    HCFA_DATE.END_DATE,
    HCFA_NAME_ORG.COUNTY_CODE,
    HCFA_NAME_ORG.PART_A_PAYMENT,
    HCFA_NAME_ORG.PART_B_PAYMENT,
    HCFA_NAME_ORG.STATUS,
    HCFA_NAME_ORG.ORG_ID,
    HCFA_NAME_ORG.PLAN,
    HCFA_NAME_ORG.ENROLL_DATE,
    HCFA_NAME_ORG.PBP_ID,
    HCFA_DATE.VALUE
    FROM SC_BASE.HCFA_DATE
    LEFT JOIN SC_BASE.HCFA_NAME_ORG
    ON HCFA_NAME_ORG.NAME_ID = HCFA_DATE.NAME_ID
    LEFT JOIN AMIOWN.MEMBER
    ON TRIM(MEMBER.MEMBER_NBR) = TRIM(HCFA_NAME_ORG.MEMBER_ID)
    WHERE HCFA_DATE.INDICATOR = ''plan''
    AND HCFA_DATE.START_DATE >= ''2015-01-01''
    END
    Explicitly creating the temp table will offer below benefit in this case.
    The ELSE statement is no longer needed, if the no rows get inserted into that table, it has nothing to union an empty table.
    With the column datatype defined, you can avoid such conversion error
    SELECT NULL AS COL1,NULL AS COL2 INTO #T
    SELECT COL1,COL2 FROM #T
    UNION
    SELECT 1,'ABC'--Conversion failed when converting the varchar value 'ABC' to data type int.
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • How do I insert multiple rows from a single form ...

    How do I insert multiple rows from a single form?
    This form is organised by a table. (just as in an excel format)
    I have 20 items on a form each row item has five field
    +++++++++++ FORM AREA+++++++++++++++++++++++++++++++++++++++++++++++++++++
    +Product| qty In | Qty Out | Balance | Date +
    +------------------------------------------------------------------------+
    +Item1 | textbox1 | textbox2 | textbox3 | date +
    + |value = $qty_in1|value= &qty_out1|value=$balance1|value=$date1 +
    +------------------------------------------------------------------------+
    +Item 2 | textbox1 | textbox2 | textbox4 | date +
    + |value = $qty_in2|value= $qty_out1|value=$balance2|value=$date2 +
    +------------------------------------------------------------------------+
    + Item3 | textbox1 | textbox2 | textbox3 | date +
    +------------------------------------------------------------------------+
    + contd | | | +
    +------------------------------------------------------------------------+
    + item20| | | | +
    +------------------------------------------------------------------------+
    + + + SUBMIT + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Database Structure
    +++++++++++++++++
    + Stock_tabe +
    +---------------+
    + refid +
    +---------------+
    + item +
    +---------------+
    + Qty In +
    +---------------+
    + Qty Out +
    +---------------+
    + Balance +
    +---------------+
    + Date +
    +++++++++++++++++
    Let's say for example user have to the use the form to enter all 10 items or few like 5 on their stock form into 4 different textbox field each lines of your form, however these items go into a "Stock_table" under Single insert transaction query when submit button is pressed.
    Please anyone help me out, on how to get this concept started.

    Hello,
    I have a way to do this, but it would take some hand coding on your part. If you feel comfortable hand writing php code and doing manual database calls, specificaly database INSERT calls you should be fine.
    Create a custom form using the ADDT Custom Form Wizard that has all the rows and fields you need. This may take a bit if you are adding the ability for up to 20 rows, as per your diagram of the form area. The nice thing about using ADDT to create the form is that you can setup the form validation at the same time. Leave the last step in the Custom Form Wizard blank. You can add a custom database call here, but I would leave it blank.
    Next, under ADDT's Forms Server Behaviors, select Custom Trigger. At the Basic tab, you enter your custom php code that will be executed. Here you are going to want to put your code that will check if a value has been entered in the form and then do a database INSERT operation on the Stock_table with that row. The advanced tab lets you set the order of operations and the name of the Custom Trigger. By default, it is set to AFTER. This means that the Custom Trigger will get executed AFTER the form data is processed by the Custom Form Transaction.
    I usually just enter TEST into the "Basic" tab of the Custom Trigger. Then set my order of operations in the "Advanced" tab and close the Custom Trigger. Then I go to the code view for that page in Dreamweaver and find the Custom Trigger function and edit the code manually. It's much easier this way because the Custom Trigger wizard does not show you formatting on the code, and you don't have to keep opening the Wizard to edit and test your code.
    Your going to have to have the Custom Trigger fuction do a test on the submitted form data. If data is present, then INSERT into database. Here's a basic example of what you need to do:
    In your code view, the Custom Trigger will look something like this:
    function Trigger_Custom(&$tNG) {
    if($tNG->getColumnValue("Item_1")) {
    $item1 = $tNG->getColumnValue("Item_1");
    $textbox1_1 = $tNG->getColumnValue("Textbox_1");
    $textbox1_2 = $tNG->getColumnValue("Textbox_2");
    $textbox1_3 = $tNG->getColumnValue("Textbox_3");
    $date1 = $tNG->getColumnValue("Textbox_3");
    $queryAdd = "INSERT INTO Stock_table
    (item, Qty_In, Qty_Out, Balance, Date) VALUES($item1, $textbox1_1, $textbox1_2, $textbox1_3, $date1)"
    $result = mysql_query($queryAdd) or die(mysql_error());
    This code checks to see if the form input field named Item_1 is set. If so, then get the rest of the values for the first item and insert them into the database. You would need to do this for each row in your form. So the if you let the customer add 20 rows, you would need to check 20 times to see if the data is there or write the code so that it stops once it encounters an empty Item field. To exit a Custom Trigger, you can return NULL; and it will jump out of the function. You can also throw custom error message out of triggers, but this post is already way to long to get into that.
    $tNG->getColumnValue("Item_1") is used to retrieve the value that was set by the form input field named Item_1. This field is named by the Custom Form Wizard when you create your form. You can see what all the input filed names are by looking in the code view for something like:
    // Add columns
    $customTransaction->addColumn("Item_1", "STRING_TYPE", "POST", "Item_1");
    There will be one for each field you created with the Custom Form Wizard.
    Unfortunately, I don't have an easy way to do what you need. Maybe there is a way, but since none of the experts have responded, I thought I would point you in a direction. You should read all you can about Custom Triggers in the ADDT documentation/help pdf to give you more detailed information about how Custom Triggers work.
    Hope this helps.
    Shane

  • How to delete empty row without validation error in ADF Table(EMP)

    Hi Everyone,
    I am using EMP Table in ADF jspx page to insert the data into database.when i insert a row into table by createInsert operation,it inserting the row.But I need to delete that row immediately with out entering any value.
    But it showing some validation error at empno.Is there any ways to delete the empty row?if not,what are the reasons that we can't delete the row.
    could any one tell me the reasons!!
    Thanks in advance!!
    With Best Regards,
    Amar
    Edited by: 973755 on Dec 11, 2012 6:42 AM

    Amar,
    I am little confused with your logic here.....
    but if you are trying to remove the row by clicking Remove button, you can set the immediate property to true and that remove function will run without executing any entity validation.......
    -R

  • 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?

  • Update empty row / column values

    here is the sample data
    Col_1 -- col_2-----col_3-------col_4------col_5------col_6
    9--------111---------45-----------21
    7--------877
    2--------456
    8--------765
    I am trying to update the col_3,col_4,col_5,col_6 like
    Col_1 -- col_2-----col_3-------col_4------col_5------col_6
    9--------111---------45-----------21--------4654------6534
    7--------877---------67-----------42
    2--------456---------845----------4563
    8--------765
    How to insert/update the col_3,Col_4,Col_5,col_6 by adding values in sequence, I want insert the values in 2nd row then 3rd row etc.
    how to select next empty row of the particular column without including the other column values in where condition.
    Using ROWNUM or ROWID it's possible selecting the next row of the particular column ?
    Thanks in advance.

    following query i use for something:
    with
    week1 as (select decap as decap_w1,desrvid as desrvid_w1 from drdiskspace where deweek = to_char(sysdate,'WW')-1),
    week2 as (select decap as decap_w2,desrvid as desrvid_w2 from drdiskspace where deweek = to_char(sysdate,'WW')-2),
    week3 as (select decap as decap_w3,desrvid as desrvid_w3 from drdiskspace where deweek = to_char(sysdate,'WW')-3),
    week4 as (select decap as decap_w4,desrvid as desrvid_w4 from drdiskspace where deweek = to_char(sysdate,'WW')-4),
    week5 as (select decap as decap_w5,desrvid as desrvid_w5 from drdiskspace where deweek = to_char(sysdate,'WW')-5),
    week6 as (select decap as decap_w6,desrvid as desrvid_w6 from drdiskspace where deweek = to_char(sysdate,'WW')-6),
    week7 as (select decap as decap_w7,desrvid as desrvid_w7 from drdiskspace where deweek = to_char(sysdate,'WW')-7),
    week8 as (select decap as decap_w8,desrvid as desrvid_w8 from drdiskspace where deweek = to_char(sysdate,'WW')-8),
    week9 as (select decap as decap_w9,desrvid as desrvid_w9 from drdiskspace where deweek = to_char(sysdate,'WW')-9),
    week10 as (select decap as decap_w10,desrvid as desrvid_w10 from drdiskspace where deweek = to_char(sysdate,'WW')-10)
    select desrvnaam || ' ' || desrvschijf, decap, decap_w1, decap_w2, decap_w3, decap_w4, decap_w5, decap_w6, decap_w7, decap_w8, decap_w9, decap_w10
    from drdiskspace, drserver, week1, week2, week3, week4, week5, week6, week7, week8, week9, week10
    where drdiskspace.deweek = to_char(sysdate,'WW')
    and drdiskspace.desrvid=drserver.desrvid
    and drdiskspace.desrvid=desrvid_w1
    and drdiskspace.desrvid=desrvid_w2
    and drdiskspace.desrvid=desrvid_w3
    and drdiskspace.desrvid=desrvid_w4
    and drdiskspace.desrvid=desrvid_w5
    and drdiskspace.desrvid=desrvid_w6
    and drdiskspace.desrvid=desrvid_w7
    and drdiskspace.desrvid=desrvid_w8
    and drdiskspace.desrvid=desrvid_w9
    and drdiskspace.desrvid=desrvid_w10
    and drdiskspace.desrvid=:P200_ZOEK;
    greatz,
    Jan Louis

  • 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 ?????

    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

  • Empty rows don't show

    Hello Experts!
    I have a crosstab, which contains Years on the left and some statstic values on the right for each Schools.  Since not all schools have data for each years.  My crosstab will skip some rows when no data have found for some years of the school.  But I want to show all rows even no data was found.
    Although I have checked all "YES" for "Show rows with empty measure....", "Show empty columns", "Show rows with empty dimension values", "Show empty columns", "Show rows with empty dimension values" and "Show when empty" in Edit Format - Display properties.
    The empty rows just won't show up.  Did I miss something?  Please help all experts.
    Thanks.

    Hi Jonathn,
    Have a look on the SAP note 1295827 - When unticked, the 'Show when empty' property for a table in a WebIntelligence report does not work as expected if the table contains null values.
    Symptom
    'Show when empty' property for a table does not work as expected in WebIntelligence report when it is unticked.
    If table contains null values, this does not work.
    Need to hide the table but it is always displayed.
    Reproducing the Issue
    Open Club.mdb & remove 'French Riviera' from Resort table. 
    Login to Infoview & create a new WebIntelligence report using Island Resorts.unv selecting Country and Resort objects. Insert condition on Country=France. Run query.
    Remove <Country> column from the table.
    Select the table and go to Properties.
    The option 'Show when empty' is ticked by default. Untick this -> The table is still displayed.
    WebIntelligence XI Release 2
    WebIntelligence XI 3.0 & 3.1
    Cause
    If this is unticked & the table contains null values, the table is still displayed. This is normal behaviour - this feature does not work with null values in a table.
    Resolution
    The 'Show when empty' functionality, when unticked, only hides the table when it is entirely empty, i.e. when no rows have been returned in the query. It is then only visible in 'Structure' mode.
    For hiding a row which is empty, untick the option/s 'Show rows with empty measures/dimensions'. But the entire row must be empty before it will be hidden by this feature.
    Make use of this for good report design if there are many tables/blocks within the report. If the tables are empty, it's best if they are hidden from view.
    I hope this will help.
    Regards,
    Hitesh

  • 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

  • Set default 3 empty rows on edit (in the table view)

    Hi
    i need to add 3 empty rows, currently only 1 rows gets added by default on edit..
    i tried using the add method of collection wrapper.. i did not find any differrence..
    its adding only one row.
    has anyone worked on similar requirement or any help on this..
    thanks
    Dinesh.

    hi Ravi,
    thank you very much for the reply,  but i even gave 10,10 but there is no change in the display..
    even before edit and after.. in the insert button.. i am able to add 3 new empty rows but on edit
    its not working.. through collection wrapper->Add or insert methods..
    is there any other way to insert new empty rows through program on edit or is there any configuration...
    thanks
    DInesh

Maybe you are looking for

  • Function Module RSDRI_DATA_WRAP_V

    BI Experts, As part of BI 7.0 SAP has delivered a Function Module 'RSDRI_DATA_WRAP_V' which is basically called by the Function Module 'RSDRI_INFOPROV_READ_RFC'. In our particular case we are exposing FM ' RSDRI_INFOPROV_READ_RFC' as a web service. U

  • How to get files rollback by using File Adapter

    Hi All, I have a question.. How can we get the files rollback whenever the inbound file adapter is down after reading some files in source.?? Regards, VenkatCH

  • Need table name used for storing web dynpro methods' code.

    Hi experts, I am trying to retrieve the code of a particular web dynpro component's methods. So can anyone please tell me the table in which the code or logic part  of the methods are stored????????? Thanks in advance..... Edited by: Adithya K Ramesh

  • Cannot download Oracle Client 9.2.0.1

    Hi, I'm tring to download the oracle client 9.2.0.1, but when I click on 92010NT_CLT.zip I always receive the message "The page cannot be displayed". Please let me know if you have some network problem or my Browser configuration are wrong. Best Rega

  • Having trouble understanding Abstract class. Help!!!!!!

    Having trouble understanding Abstract class. when is Abstract class used and for what.