Transfering Table data from one page to another page in OAF

Hi All,
Could you please help me with the following requirement. I am trying to transfer the first page selected records to second page, but running into issue.
I have 2 custom OAF pages:
1st Page is Invoice Search page and upon searching for an invoice, user can select 'multi records' (its table region with multi-select) and click on upload button.
The button internally calls setForwardUrl method and calls 2nd page, where second page contains Advacned Table region to show the selected records from 1st page.
Since user can select more than 1 record in Search region on first page, I would like to hold all rows in an array of Hashmap with Integer index and transfer it to 2nd page. Following is the hashmap syntax I am using:
java.util.HashMap<Integer,InvoiceRow> map=new <Integer,InvoiceRow>(); // Here InvoiceRow is a custom CLASS structure with InvoiceNumber and Customer Number as variables inside.
But if I pass the above HashMap to setForwardURL method, the JDeveloper throwing an exception saying that "setForwardURL cannot invoke" message.
Could you please help me how can I transfer the first page multiselected records to second page?
Appreciate your time.
-- Venkat

Venket, the approach i told you can try in below way:
public String getSelectedData()
        String whereclause = "(";
       // String whereclause1 = "(";
     XXCONTAINLINESVOImpl vo = this.getXXCONTAINLINESVO1();
      //OAViewObject vo=(OAViewObject)getXXDPECONTAINLINESVO1();
      // System.out.println("debTEST"+punload);
       Row[] sumVoRow =vo.getFilteredRows("Select1", "Y");
        System.out.println("deb multi select test"+sumVoRow.length);
    if (sumVoRow != null && sumVoRow.length > 0)
     for (int i = 0; i < sumVoRow.length; i++) {
              String wipEntityId =
              sumVoRow[i].getAttribute("LineId").toString();             
              whereclause = whereclause+sumVoRow[i].getAttribute("LineId").toString()+",";
            System.out.println("deb multi select test"+whereclause);
        if (whereclause.length() > 0 && whereclause.charAt(whereclause.length()-1)==',')
             StringBuilder b = new StringBuilder(whereclause);
             b.replace(whereclause.lastIndexOf(","), whereclause.lastIndexOf(",") + 1, ")" );
             whereclause = b.toString();
           //  return whereclause;          
        System.out.println("deb where clause test"+whereclause);
    return whereclause;
so this method will return the value as like : whereclause=(111,222,333) then put this in one session varibale and pass to the below method from CO
    public void processPOData (String wherclause)
        String query = getXXDPECONTAINDATAVO1().getQuery();//Old queryStringBuffer stringbuffer = new StringBuffer();
                  String newwhereclause ="LINE.LINE_ID IN "+wherclause;
                    System.out.println("DEB NEW where clause:"+newwhereclause);
                     StringBuffer stringbuffer = new StringBuffer();  
                   // stringbuffer.append("SELECT rownum LINE_NUM,A.* FROM (");
                    stringbuffer.append(query);
                    stringbuffer.append("  where ");
                   stringbuffer.append(newwhereclause);
                    ViewDefImpl viewdefimpl = getXXDPECONTAINDATAVO1().getViewDefinition();
                    viewdefimpl.setQuery(stringbuffer.toString());
                    System.out.println("DEB NEW QUERY TEST:"+stringbuffer.toString());
                    getXXDPECONTAINDATAVO1().executeQuery();
Let me know if stil r u facing isssue
Thnaks
Deb

Similar Messages

  • How to transfer table data from one client to another client?

    How to transfer table data from one client to another client?

    Hi,
    Look at the Blog
    /people/community.user/blog/2007/01/07/transport-table-entries
    Regards
    Sudheer

  • Transferring the data from one system to another system.

    Hi All,
       I need to transfer the material master data from one system(e.g - dev1)
    to another system (e.g - dev2).
      front end application is BSP.
      if the user enters the material number 1 to 20 and if he presses the submit
      button, the entire data should be transferred to another system.
      This transferring of data should be done in background.
      1. which method we should opt for this ? either ALE or any other method like XI.
      2. Is there any standard bapi function module to transfer the material master from one system to another system.
      3.  whether this above transferring can be done thru XI and which will be best approach for doing this?
    Points will be awarded.
    Regards,
    Vinoth.

    Hi amole,
       Thanks for the reply.
        How to use lsmw for transferring fo data from one system to another system.?
       whether to download the data from one system in excel or notepad and again to upload into other system?
       can u explain me.
    Regards,
    vinoth.

  • Move tables data from One DB to another using DB-Link ?

    Dear friends ,
    I want to move a table data (for a particular schema) from one database to another database's table (for a particular schema) . Can I do it using DB_Link ?
    If yes , then plz tell me the way , how can I do it ?

    >
    I want to move a table data (for a particular schema) from one database to another database's table (for a particular schema) . Can I do it using DB_Link ?>
    Yes you can use db link.Refer to the example in the link:-
    [http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_5005.htm#sthref6315]
    Anand

  • Table Data From One DataBase to another

    Dear Fellows,
    There are two DataBases running in my NT Server. I want to pull data of a table from other database. Does any body know how can I do it if I dont want to export and then import.
    Thanks in advance
    Danish

    Please find the help for SQL*PLUS command COPY.
    It will be useful when you want to copy datas from one database from another database without using import & export.

  • Transferring all data from one computer to another

    Hi,
    I have an iMac and a Macbook Pro - I would like to completely switch the data on the two computers.  In other words, I'd like to put everything that is on my macbook on the iMac, and vise versa.  I have backed both computers up using Time Machine, but I'm not sure what the best way is to do the swapover.  Any ideas?  I want to do more than just add the data from one to another, I want to completely wipe out the imac and install the macbook data on it, and completely wipe out the macbook and install the iMac data.  Any ideas?

    What I would do is to move all the apps music and other media to the new cmputer.  Make sure the computer is authorized for the iTunes account(s) and iTunes logged into the progler account. Then connect the iPod to the computer and make a backup by right clicking on the iPod under Devices in iTunes and select Back Up.  Restore the iPod from that backup.

  • EXPORT/IMPORT TABLE DATA FROM ONE SCHEMA TO ANOTHER ONE (S.O.S)

    Hi,
    I urgently need your help:(, I have two different instances, in each of them there are two schemas, A and B; which tables are the same, but I need to transfer JUST the table data from A's tables to B's tables, how can I do so??
    Thanks in advance,
    Isabel

    The total number of tables is 989:(And how many do you want ? If 988, and if you're on a 10g db, you can use exclude parameter from expdp/impdp?
    Nicolas.

  • Transfering iCal data from one OS to another

    The new MacBook I am planning to purchase will come with OS X 10.6. How do I get my iCal entries from my older MacBook with Mac OS X 10.4.11 into the newer version. My wife's IMac running OS X 10.5.8 will not read them.

    Sorry for the confusion. I had a iMac G5 with iCal 2.0.5 running on Tiger 10.4.11. I bought a Mac mini with iCal 4.0.3 running on Snow Leopard 10.6.4.
    I migrated all my data from the G5 over to the Mac mini. When I opened iCal, all of my calendars were there, but the events in each calendar did not show up.
    I did try some workarounds, bottom line, none of them worked. I think it's an issue with the G5 using the PPC processor and the mini using the Intel processor.
    The point I was making was that there was a lot of info. in iCal still on my iMac that I needed on my mini and the only way to get it there was to retype it all back in or copy/paste to a file, etc. I was unable to shelve the iMac because of that.
    I'm sorry but I'm not clear on what you mean by "Can I set my old machine back to the non-beta version and keep the beta version on my new machine?"

  • Importing table data from one schema to another schema

    Hi All,
    I exported tablerows only of Schema A, and same I am trying to imported in Schema B.
    While importing I am getting oracle error "row rejected, Integrity constraint violated
    parent key not found".
    What I did is I disabled all the constraints through script in Schema B, and imported data. Data imported successfully, but while executing the enabling the constraints script in Schema B constraints are not enabled due to parent and chile relationship problems, even I executed this script many times.
    Note:- Schema A and Schema B are same structure, Schema A contains data but
    Schema B does not
    Can any body have any idea on this?
    Thanks,

    Hi,
    But I want data to be completely imported without losing.
    I am trying to disable the constraints using the following queries for enabling and
    disabling
    select 'ALTER TABLE '||A.TABLE_NAME||' DISABLE CONSTRAINT '||B.CONSTRAINT_NAME||';'
    FROM user_constraints A, USER_CONSTRAINTS B
    WHERE A.TABLE_NAME = B.TABLE_NAME
    AND A.CONSTRAINT_TYPE = 'P'
    Foreign constraints  -
    select 'ALTER TABLE '||A.TABLE_NAME||' DISABLE CONSTRAINT '||B.CONSTRAINT_NAME||';'
    FROM user_constraints A, USER_CONSTRAINTS B
    WHERE A.TABLE_NAME = B.TABLE_NAME
    AND A.CONSTRAINT_TYPE = 'R'
    -- Check constraints ---
    select 'ALTER TABLE '||A.TABLE_NAME||' DISABLE CONSTRAINT '||B.CONSTRAINT_NAME||';'
    FROM user_constraints A, USER_CONSTRAINTS B
    WHERE A.TABLE_NAME = B.TABLE_NAME
    AND A.CONSTRAINT_TYPE = 'C'

  • Transferring game data from one Touch to another

    I have player data for an MLB game on my 8 GB Touch 2G.
    I want to transfer that player data to the same game on my 32 GB Touch 3G.
    How do I do that?
    Thanks in advance.

    Make sure to back up your iPod manually before you replace it, and use the manual backup to restore the new one from. To back up manually, right click on it in the device list and choose "backup". This does not involve a sync process. Also make sure to transfer your purchases.
    See more details about the content of a backup here: iTunes: About iOS backups

  • Transferring backup data from one blackberry to another

    Hi 
    I had 2 blackberries, both were registered on my blackberry desktop and backed up. I lost one of them. I am now trying to transfer the data on the lost phone onto the second phone but I can't access the backed up data as the desktop software keeps asking me to plug in the lost phone in order to access it. 
    How can I access the data on the lost phone when I can't plug in the handset to access it and transfer it onto my second phone?
    Thanks very much
    Davina
    Solved!
    Go to Solution.

    With the new device plugged in, run the Desktop Software.
    Choose Device > Restore.
    You can find the specific backup you with to restore and can choose restore all or specific "Select Data" to restore.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Move data from one fs to another from a particular position.

    Hi all,
    i have a requirement where i want to move data from one field symbol to another from a particular
    position.
    I have a work area which contains string values. i have converted this string to hexadecimal value .
    in this hex string m lukin for a position where '0A' occurs. Now i have to pick the string till dis '0A' value and move it to some other field symbol. Can anybody tell me how to do that.
    The code i have written is as follows:
      FIELD-SYMBOLS: <fs> TYPE x.
                 data: temp1 type string,
                       p_word type string,
                       temp2 TYPE string,
                       w_len TYPE i.
                       temp1 = wa_value-value. "this wa containd the value
                       w_len = strlen( temp1 ).
             if temp1 cp '"*'.
               ASSIGN wa_value-value TO <fs> CASTING TYPE x.  " converting wa to hex value
                  DATA: VAR TYPE i,
                        COUNTER TYPE i,
                        line_feed_count type i,
                        temp_count type i.
             VAR = strlen( wa_value-value ).
             CLEAR: COUNTER, temp_count, line_feed_count.
               WHILE COUNTER LE VAR.
                IF <fs>+counter(1) = '0A'.
                line_feed_count = line_feed_count + 1.
                COUNTer = COUNTer + 1.
                ENDIF.
                COUNTER = COUNTER + 1.
               ENDWHILE.
            endif.
    Now , i want to pick data from starting till the position it gets '0A' and then again till it finds another '0A'.
    Thanks in advance.

    Hi,
    As everyone has rightly pointed out, there is no direct way of transferring the data from one appset to another. However, there are definitely few ways of doing it:
    1. Run export package. Export the data in flat file. Import the data using import DM package.
    2. Export the data from the cube of your application in excel file. Then run the import DM package to load the data.
    3. Run UJBR transaction in SAP. Take the backup of the transactional data. You will get few flat files. Run the import DM package.
    All the above steps will work only if the structure of the applications in both the appsets is the same. Otherwise, you will have to modify the flat file before uploading the file.
    Hope this helps.

  • How to copy table data from onde DB to another DB using clipboard

    HI,
    i copied table data from one DB to another DB, but it displays an error as "policy with check option violation" when inserting the table data.. so how to resolve the proble.. thanks in advance.

    DECLARE
    log_utl_dir VARCHAR2(100) :=('/apps/home/cmsftp/log/gaa');
    CURSOR tb_compy_cur is
    select tb.compy_acronym
    -- QC 158113 - added below
    ,tb.ivr_plan_num
    from tb_fc_compy tb,tb_xop_entitlements te
    where tb.grant_award_accept_flag = 'Y'
    and tb.ivr_plan_num = te.ivr_plan_num
    and te.entitle_name = 'GAA_RECONCILED'
    union all
    select compy_acronym
    -- QC 158113 - added below
    ,tb.ivr_plan_num
    from tb_fc_compy tb
    where tb.res_stock_flag = 'Y'
    --and   (tb.res_auto_lapse_flag = 2 OR
    --tb.res_auto_lapse_flag = 3)
    and exists (select entitle_name from tb_xop_entitlements te
    where tb.ivr_plan_num = te.ivr_plan_num
    and te.entitle_name = 'GAA_RES_FLAG'
    and te.optionee = 'Y'
    and te.psrep = 'Y'
    and te.sponsor = 'Y'
    and te.advisor = 'Y');
    v_xopgrantz_insertcount NUMBER := 0;
    -- QC 158113 - added below
    v_xopgrantz_accpt_count NUMBER := 0;
    v_user_id VARCHAR2(30);
    insert_file_id UTL_FILE.FILE_TYPE;
    insert_log_file varchar2(45) := 'xop_grantz_insertstats.log';
    BEGIN
    DBMS_OUTPUT.PUT_LINE('success1');
    insert_file_id := UTL_FILE.fopen(log_utl_dir,insert_log_file,'w');
    UTL_FILE.put_line(insert_file_id,'Starting the Process at '|| CURRENT_TIMESTAMP);
    UTL_FILE.put_line(insert_file_id,'INSERTING ROWS FOR Companies turned on for GAA_RECONCILE and GAA/RESSTOCK');
    for compy_rec in tb_compy_cur loop
    v_user_id := 'CMS'||compy_rec.compy_acronym||'_USER';
    ctx_set_session.set_user_session(v_user_id);
    dbms_output.put_line ('success2'||''|| v_user_id);
    INSERT into xop_grantz(grant_num,
    user_id,
    last_user_id,
    restrict_grant,
    child_symbol,
    parent_grant_flag,
    bulking_overide_flag,
    exerrestrict_code,
    rounding_method,
    exercisiable_dt,
    def_res_units_flag,
    opt_gain_def_elig_flag,
    opt_gain_deferred_flag,
    opt_gain_deferred_dt,
    opts_accepted,
    lst_updtby_usercd,
    accepted_type,
    GAA_eligible,
    GAA_LST_UPDTBY)
    select g.grant_num,
    v_user_id,
    'GRNTACCPT',
    'N',
    'N',
    (sel ect code
    from tb_xop_exerrestrict_codes
    where cash_allowed = 'Y'
    and cashlesshold_allowed = 'Y'
    and cashlesssell_allowed = 'Y'
    and stockswap_allowed = 'Y'
    and restricted_allowed = 'Y'
    and sar_allowed = 'Y'
    and cashmargin_allowed = 'Y'
    and cashpartial_allowed = 'Y'
    and sarsale_allowed = 'Y'),
    NULL,
    'N',
    'N',
    'N',
    NULL,
    NULL,
    NULL,
    'N',
    NULL,
    NULL
    from grantz g
    where not exists(select 1
    from xop_grantz xg
    where xg.grant_num = g.grant_num);
    v_xopgrantz_insertcount := SQL%ROWCOUNT;
    dbms_output.put_line ('1');
    -- QC158113 - Optimisation fix--starts
    DELETE FROM gt_xop_grant_accpt_type;
    INSERT INTO gt_xop_grant_accpt_type
    SELECT g.grant_num,e.ivr_plan_num,
    pk_xop_grntaccpt.fn_get_accpt_type (v_user_id,
    g.plan_num,
    g.grant_dt,
    g.opt_num,
    g.grant_cd,
    g.plan_type,
    'Y'
    FROM grantz g,tb_xop_entitlements e
    WHERE plan_type IN (2, 4, 5, 7, 8)
    and g.user_id = v_user_id
    and e.ivr_plan_num = compy_rec.ivr_plan_num
    and entitle_name = 'GAA_RES_FLAG' ;
    dbms_output.put_line ('success3');
    v_xopgrantz_accpt_count := SQL%ROWCOUNT;
    UTL_FILE.put_line(insert_file_id,'Inserted count in gt_xop_grant_acceptance '|| v_user_id||v_xopgrantz_accpt_count);
    -- QC158113 - Optimisation fix--ends
    COMMIT;
    UTL_FILE.put_line(insert_file_id,'Inserted count in XOP_GRANTZ for USER_ID '|| v_user_id||v_xopgrantz_insertcount);
    ctx_set_session.set_user_session('');
    dbms_output.put_line ('process completed');
    end loop;
    UTL_FILE.fclose(insert_file_id);
    EXCEPTION
    when others then
    rollback;
    dbms_output.put_line ('Code '||SQLCODE||':'||SQLERRM||' at '||v_user_id||' .pr_xopgrantz_insert');
    pr_xop_log_errors('Code '||SQLCODE||':'||SQLERRM||' at '||v_user_id||' .pr_xopgrantz_insert');
    pr_xop_log_errors('Code '||SQLCODE||':'||SQLERRM||'INSERTING into xop_grantz for ALL grants');
    END;
    i received this error when running the procedure also, so the table gt_xop_grant_accpt_type is not populated
    {Code -28115:ORA-28115: policy with check option violation at CMSFB_USER .pr_xopgrantz_insert}

  • How to move tables with data from one client to another

    Hello friends
    I have 2 clients 001 and 002.
    I have created a table with lots of data on client 001.
    I have to get the same table on 002 also with the same data.
    Is there an easier way of transfering this data from one table to another?
    I would appreciate any feedback on this.
    I know that mappings etc., can be done using the export and import of tpz file. So I want to know if there is any similar thing to transfer a table with data.
    THanks
    Ram

    hi
    thanks for the response
    We are working on a sandbox system for demo purpose.
    Actually we have two different group of people using two different clients created on the same server.
    Our group is using client 001 and another group is using client 002.
    We don't want the changes that one group does to the table to affect the other.
    Our group has created a z-table and have entered considerable amount of data.
    However, the other group also need to create the same table with the same data.
    So to avoid double work, we were trying to see if there is a way to copy the table with data created on 001 to 002.
    Any suggestions / feedback will be greatly appreciated.
    Thanks
    Ram

  • Moving tables with data from one client to another

    Hello friends
    I have 2 clients 001 and 002.
    I have created a table with lots of data on client 001.
    I have to get the same table on 002 also with the same data.
    Is there an easier way of transfering this data from one table to another?
    I would appreciate any feedback on this.
    I know that mappings etc., can be done using the export and import of tpz file. So I want to know if there is any similar thing to transfer a table with data.
    THanks
    Ram

    If you do not have the client field in your table, then the table is cross-client.
    IF you have the client field filled with 001, then you need to create the same entries with client 002, I dont think that you can do this with a transport.
    You have to write an ABAP that reads and writes the data.

Maybe you are looking for

  • How do i get rid of an app on my iphone?

    I have several apps on my iphone that I want to delete. How do I do this?

  • Backspace on iPhone 3GS

    How do I backspace without deleting all text that is passed over along the way. I want to backspace to the front of a phrase or sentence and insert or correct a character.

  • Generate barcode in oracle Report 10g

    hi all, i want to generate some of my ID's number in barcode. i have searched and followed the idautomation.com i want to download the font file. is there any freeware solution available ? or any one has simple solutoin. i need very simple barcode ge

  • Time machine does not work

    I have a WD My Passport for mac 1 Tb external drive that I use as time machine backup disk. Now the backups are made, evey hour, day ... But when I open timemachine and want to launch, say the backup for 2 days ago, Time machine quits and I have the

  • PE 9 - Audiocompression in AVI?

    Hello, I´m using Adobe Premiere Elements 9 since two weeks now. It´s a great software, but I´ve got some problems with codecs. WMV is a bit slow, I don´t like MainConcept so far. So I decided to use AVI as the container for the video. Under "Video" I