Repeating Table - Copy Row to New Row

Hi Everyone.
I am trying to accomplish something that sounds pretty straight forward but am losing my mind over it.
I have a repeating table that shows a list of students on a particular course. This is in a repeating table format with SQL Database as the data source (via filters).
I have a button on the repeating table that is labeled "Enter in Exam". This button should copy the row (Student Name, DOB etc.) to another repeating table (no data source).
How can I go about doing this? I'll need a new row created in the second repeating table every time "Enter in Exam" is clicked.
Please help!

Hi,
I have a repeating table that has the following info that is being picked up from SQL Server via data connection.
Firstname     Surname     Ref No      DOB                       Course
John              Smith          1234       01/01/1990           
SharePoint                 Button
Steve             Jones          4321        09/09/2000          
Maths                        Button
When the button is clicked (the button on Row of John Smith) I need this row and this row only to be copied to another repeating table.
If I then click the button on another row i.e. Steve Jones, I need this row to be copied to the same repeating table but placed under the John Smith row.
I hope this makes a little more sense?
I have been through this article and it works great for copying one field at a time but I need a solution that copies the entire row to another repeating table.

Similar Messages

  • How to set a default value in an ADF table when adding a new row

    Hi Guys,
    I have a view object which I am using to create an ADF table. I also have a button which uses a CreateInsert binding to add a new row to the table. I have four fields: created_by, creation_date, last_update_by and last_update_date.
    I want these values to be set automatically when I click add new row.
    The values I want are:
    created_by - admin
    creation_date - sysdate
    last_update_by - admin
    lsat_update_date - sysdate
    Any suggestions on how to do this would be appreciated
    Thanks
    -Mark

    mark,
    Those four fields can be set completely declaratively in the Entity Object (check out the History Colum feature). Copied from the (11g) documentation:
    If you need to keep track of historical information in your entity object, such as when an entity was created or modified and by whom, or the number of times the entity has been modified, you specify an attribute with the History Column option selected (in the Edit Attribute dialog).
    If an attribute's data type is Number, String, or Date, and if it is not part of the primary key, then you can enable this property to have your entity automatically maintain the attribute's value for historical auditing. How the framework handles the attribute depends which type of history attribute you indicate:
    * Created On: This attribute is populated with the time stamp of when the row was created. The time stamp is obtained from the database.
    * Created By: The attribute is populated with the name of the user who created the row. The user name is obtained using the getUserPrincipalName() method on the Session object.
    * Modified On: This attribute is populated with the time stamp whenever the row is updated/created.
    * Modified By: This attribute is populated with the name of the user who creates or updates the row.
    * Version Number: This attribute is populated with a long value that is incremented whenever a row is created or updated.
    John

  • Create a new row in a table without using add new row button

    I want to add a new row to the table without using the add new row button of the table. I'm not able to display default row in the table. Though if click on apply the record appears after saving in the database. Any thoughts how to implement this functionality.

    Here is what you have to do.
    1) You have to handle this in processRequest()
    2) In the AM code , u need to check if there is already a row exisit or vo is blank
    if (vo.getFetchedRowCount() == 0)
    // first time
    vo.setMaxFetchSize(0); // THIS IS REQUIRED.
    Row row = vo.createRow();
    vo.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    else
    //If already rows are there then you suppose to insert in the end
    // i assume you would have execute your vo
    YourVORowImpl row= (YourVORowImpl)vo.getRowAtRangeIndex(0);
    vo2.insertRowAtRangeIndex();
    It should work.

  • Table control- add a new row

    I have a table control on a custom screen with some data from data base table in non-editable mode. Now, when I click insert button, it should create a new row in table control in editable mode. I tried loop at screen and modify screen but no luck. Can somebody please help me?

    hi chandu,
    try this code.
    if sy-ucomm = 'INS'.
    data : wf_lines type i.
    *number of lines of table control
      DESCRIBE TABLE int_factor LINES wf_lines.
      tab_control-lines = wf_lines + 1.
    ENDIF.
    for any clarifiaction pls mail me.
    pls reward points, if this helped u.
    regards,
    anversha.
    [email protected]

  • Split Oracle 11g Table Partition and Insert new rows

    Hi,
    I have a doubt that i would like to be clarified. I need to split a partition of a table with more than 800 Million records, but at the same time (during the split operation) i need to insert new records (not in the partition that is being splited). Is there any problem/risk doing this? Is the insert ETL process going to fail ?
    Thanks in advance
    Greetings.
    Nuno
    Edited by: user13512889 on 1/Set/2011 3:25

    Hi Enrique,
    Thanks for posting in MSDN.
    Based on the description, you want to modify the formula for the A1 and B1 cell when you insert a new rows.
    Yes, we can use Worksheet.Change to dermin the change of data on the worksheet then we can modify the formula as we wanted. Here is a sample for your reference:
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    Me.Range("A1").Formula = "=MAX($A2:$A" & Me.UsedRange.Rows.Count & ")"
    Me.Range("B1").Formula = "=MIN($B2:$B" & Me.UsedRange.Rows.Count & ")"
    End Sub
    You can more detail about Excel VBA developing from link below:
    Getting Started with VBA in Excel 2010
    Welcome to the Excel 2013 developer reference
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Automatically copy formulas to new row

    How do I automatically copy formulas from the previous row to a newly created row in Numbers? Some of the templates included with Numbers 09, such as the Checking Register do this. I apologize if this question has already been asked and answered, but I have been unable to find the answer.

    Welcome to the club.
    For sure, this question was asked and responded several times.
    If every existing standard cells of a column contain the same formula, inserting a new row inserts automatically the same formula in the newly created cell of this column.
    Yvan KOENIG (VALLAURIS, France) lundi 28 décembre 2009 22:26:09

  • Repeat table header after every 20 rows?

    Aloha gang,
    I have a spry table that loads an .xml file - the resulting
    table extends well 'below the fold' of the page
    is there a way to repeat the table header <th> every 20
    rows or so?
    bill - hawaii

    Hi Sergio,
    Thanks for the follow-up. I was thinking (after I made the original post) that I might be able to use a (pl/sql?) region and generate the report manually.
    Thanks,
    Mark

  • Setting the Previous row with New row value

    Dear All,
    I have a af:showDetailItem in which i have a af:table where i can add the Warranty details of Products in which i have:
    eg:
    Product | WEF | ValidUntil
    ================================================
    Prod1 | 01-05-11 | 01-06-11
    Prod2 | 02-06-11 |
    Here i want to enter the "Valid Until" only when i create an entry for new Warrenty details and enter the WEF.ie Valid Until will be WEF-1 of the next row.
    so any idea of how to solve this problem.?
    Regards,
    Soya.

    Hi,
    Aren't effective-dated entities used to create a new column based on some existing column in the same row.
    But my need is to set the value of the previous row when the new row is inserted.
    Product | WEF | ValidUntil
    ================================================
    Prod1 | 01-05-11 | *01-06-11*
    Prod2 | *02-06-11* |
    rgds
    Soya

  • How do you Copy a row to create a new row in the same table?

    Hi,
    We have a PurchaseOrderHeaderView object and on click of Copy Purchase Order we want to copy a row in PURCHASE_ORDER_HEADER table to create a new row. We don't want to copy the primary key only the remaining fields.
    Regards
    Madhuri

    If you use ADF BC, you can create a new row programatically via createRow and use a sequence to create the Id and use the "original" row (probably the current row in the view object) to copy the values from to newly created row. Then use insertRow and commit to create the copied row.
    Ronald

  • Web dynpro ALV table copy selected row

    How to copy a selected row into new row with same values.
    Thanks

    Hi,
    I assume that there is a COPY buttonand there is a single lead seecltion for your alv table.
    Now,
    data:
      lr_node type ref to if_wd_context_node,
      lr_element type ref to if_wd_context_element,
      lr_element1 type ref to if_wd_context_element,
      ls_table type vbak,
    ls_table1 type vbak.
    lr_node = wd_context->get_chaild_node ( 'FLIGHT ' ).
    if lr_node is not initial.
    lr_element = lr_node->get_lead_selection ( ).
    lr_elemnet1 = lr_node->get_element( index = 4). "supose the index of new row is 4
    * you can use the get_element_count to know the record number
    endif.
    if lr_element is not initial.
    lr_element->get_statitc_attributes
    importing
    static_attributes = ls_table
    endif.
    if lr_element1 is not initial.
    lr_element1->set_staitc_attributes
    exporting
    STATIC_ATTRIBUTES = ls_table.
    endif.
    Assume that you have already created a new row...
    use code wizard.
    Regards,
    Lekha.

  • While creating a new row in table,the total data present in table is coming

    Hi,
    From search page,i click add button,it goes to next transaction page.In transaction page i drag and drop one VO in table and in form also.But in that transaction page,The table is coming with data and a new row is also able to insert.But i don't want the previous data whatever present in table in create a new row time.Please give me the solution.
    Thanks in advance
    Sravanthi

    Not sure I understand what you are trying to do.
    If you have a table and a form based on the same data on one page you see the already existing data in the table. If you don't want to see the existing data in the table while entering a new row, the simplest solution would be to
    a) hide the table after the use hits create new row or
    b) navigate to an other page which only shows the form
    Timo

  • Null Pointer Exception When Adding New Row on Table

    Hello JheadStart Team
    I have used detail group with table layout , when I am clicking on AddRow button on detail table , I encounter NulllPointer Exception . I have traced the code and fount that in JhsCollectionModel when adding new row following
    condition occurs :
    DCIteratorBinding ib = getRangeBinding().getIteratorBinding();
    int rangeSize = ib.getRangeSize();
    int rowsInRange = ib.getAllRowsInRange().length;
    because getAllRowsInRange is Null then the error raise.
    My JheadStart ver is 10.1.3.3.85 .
    Detail Group with table layout setting is :
    Use Table range=true
    Show New Row at top=true
    New Rows:empty
    Show Add New Row Button :true
    Regards

    Given the build you are using, I assume you are an Oracle employee.
    Is this correct? if so, please post your question to the [email protected] mailing list.
    Steven Davelaar,
    JHeadstart team.

  • Import new rows to the existing table (urgent)

    Hello everyone,
    i have two databases in different locations. but in the initial stage, both are same.
    if i add rows or update rows in database 1, i want to export the rows updated or added newly from database 1 and import to database 2 without any modification in database2 (i mean only the modified rows and new rows only to be imported to database2)
    for example;
    in initial stage
    database 1-
    table 1(5 rows)
    table 2( 6 rows)
    table 3 (1 row)
    database 2-
    table 1(5 rows)
    table 2( 6 rows)
    table 3 (1 row)
    later stage
    database 1-
    table 1(7 rows)
    table 2( 9 rows)
    table 3 (1 row)
    i need to update the below database 2 with 2 rows in table 1 and 3 rows in table 2. and it should not affect the table 3.
    database 2-
    table 1(5 rows)
    table 2( 6 rows)
    table 3 (1 row)
    i need a solution for this. if anyone know the solution plz post the reply.

    also expdp and impdp commands will work on 10g only i think so. but we are using 9i.Since you're using 9i, use Query option from Export(exp). Below notes would help.
    [http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:478275606639]
    [http://www.dbatools.net/experience/export_query_option.html]
    exp using query parameter
    -Anantha

  • Add new row to a table bound to ArrayList in backing bean

    Hi,
    I have a Arralist<CustomObject> in the backing bean.
    I want to create a table with Add/Delete new row buttons which will add/delete objects from the ArrayList.
    I am using Jdev 11g and I am not using ADF BC.
    Please give me some heads up or links.
    Thanks

    Then that's your problem, change the class to something like:
    public class TableHandlerConsumer
        private static final String LIST_PAGE_FLOW_ATTR = "consumers:" + TableHandlerConsumer.class.getName();
        public TableHandlerConsumer()
            Collection data = new ArrayList<Consumer>();
            buildModel(data);
            tableModel = new SortableModel(data);
            Map<String, Object> pageFlowScope = RequestContext.getCurrentInstance().getPageFlowScope();
            pageFlowScope.put(LIST_PAGE_FLOW_ATTR, tableModel);
        private void buildModel(Collection data)
            baris.add(new Consumer("", "", "", "", ""));
            baris.add(new Consumer("", "", "", "", ""));
            baris.add(new Consumer("", "", "", "", ""));
        public void addRow()
            Consumer consumer = new Consumer();
            ((Collection)tableModel.getWrappedData()).add(Consumer);
        public SortableModel getTableModel()
            Map<String, Object> pageFlowScope = RequestContext.getCurrentInstance().getPageFlowScope();
            return (SortableModel)pageFlowScope.get(LIST_PAGE_FLOW_ATTR);
    }Note that if you're using 10g then change Requestcontext to AdfFacesContext and getPageFlowScope to getProcessScope
    Regards,
    ~ Simon

  • Add new Row at the bottom of the advance table

    Hi,
    I have an advance table which is displaying 50 rows per page. I have a button at the bottom of the table to add a new row in the table.
    Requirement is whenever user clicks on the button to add a new row and if he is viewing the 50-100 rows, new row should be added at the bottom of the same page giving 101st row as new row.
    Is this functionality possible. Please let me know the code for the same.
    Thanks in advance,
    Kaushik

    Hi,
    If the records displayed is set to 50 then at one time only 50 records will be visible.
    101st row will be inserted at seperate navigation 100-150.
    Instead you can insert the row at the top so that 100th row gets shifted to 101 and new row becomes on the same page
    for this use
    vo.insertRowatRangeIndex(row,0);
    Thanks,
    Gaurav

Maybe you are looking for

  • What's wrong with my alignment?

    http://www.whsprx.com/index8-16.html the navigation tabs at the top of my page are a SWF. the table/cell it's in has no padding or spacing or anything, but it's not flush against the right and bottom of the banner like i want it to be. i looked in my

  • Remove Document /View/Save/find taskbar

    How we can we remove Document /View/Save/find taskbar in bo report viewed in sharepoint or infoview or dashboard builder

  • Download assistant stuck

    My adobe downlaod assistant is stuck on "extracting... this may take a while", i cannot click x or pause on the download and restarting/uninstalling the download assistant does not help either. what should i do?

  • Responsible Group Assignment for Interaction Record

    The Functional configuration team is trying to determine how to assign an interaction record to Responsible Group and not to an individual User.   If anyone has any suggestions or experience with how the responsible group can work, it would be greatl

  • Bex Broadcasting Help!!!

    Hello I'm trying to scheule a report in BEX broadcaster with a predefined time. Eg: Every Wed day after Fisc quarter ends. I created a job with name TP_BROADCASTING_**** and included the ABAP program in step :RSRD_BROADCAST_FOR_TIMEPOINT. Now In the