How to Transfer Rows from one table to another in a different Page

Hi Friends,
My problem is; I need to call a custom page as a popup using Java-Script. ( This is because our business users want the multi-select LOV to look and function differently ).
I have a table in the popped-up page from where; upon a button action I need to close the pop-up and transfer the selected rows , back to the base-page's table.
( Both the Base Page and the Pop-Up are Custom Pages.)
Please find below the AM code that I call before closing the window using Java Script.
But the Base-Page table remains un-disturbed. Can you please show me how to do the transfer of records if possible ?
OAViewObjectImpl main_vo = getBasePageTableVO1();
OAViewObjectImpl sel_vo = getPopupPageTableVO1();
int fetchedRowCount = sel_vo.getFetchedRowCount();
RowSetIterator iterator = sel_vo.createRowSetIterator("SelectedRows_Iterator");
if (fetchedRowCount > 0)
iterator.setRangeStart(0);
iterator.setRangeSize(fetchedRowCount);
for (int i = 0; i < fetchedRowCount; i++)
PopupPageTableVORowImpl row = (PopupPageTable)iterator.getRowAtRangeIndex(i);
BasePageTableVORowImpl main_row = (BasePageTableVORowImpl)main_vo.createRow();
if (main_vo.getFetchedRowCount() == 0)
     main_vo.setMaxFetchSize(0);
     main_vo.setWhereClause(" 1 = 0 ");
     main_vo.executeQuery();
     main_vo.setCurrentRow(main_vo.last());
main_vo.next();
     main_vo.insertRow(main_row);
     main_row.setNewRowState(main_row.STATUS_INITIALIZED);
     main_vo.setCurrentRow(main_row);
try
main_row.setField1(row.getField1());
main_row.setField2(row.getField2());
main_row.setField3(row.getField3());
catch(JboException _ex)
iterator.closeRowSetIterator();

Thanks Ramkumar. I am able to catch the action after I used formSubmit .
The below lines in processRequest declares the function cszRefreshBase and later; on attaching the function name in the open window java script call, I get my desired functionality.
StringBuffer stringbuffer = new StringBuffer();
stringbuffer.append("function cszRrefreshBase(lovwin, event) ");
stringbuffer.append("{ ");
stringbuffer.append(" if (!lovwin.PopupSL) ");
stringbuffer.append(" return false; ");
stringbuffer.append(" submitForm('DefaultFormName', 0, {'cmePopupEvent':'popupUpdate'}); ");
stringbuffer.append("}");
oapagecontext.putJavaScriptFunction("cszRefreshBaseJS", stringbuffer.toString());

Similar Messages

  • How to transfer data from one table to another without duplicates

    This is what I use to quote bathroom remodels. The first thing I do is completely fill in the Master Item List with every Product or Service we can think of to do the project. The Type column has a pop-up menu which includes Combo because some Contractors don't separate the Product from Labor. The Category Totals Table is useful but since some Contractors provide Product and Service at the same time on one invoice I don't get accurate breakdowns for generating my invoices.
    What I would like is to transfer all Vendor names included in the project to the Vendor Totals Table but without any duplicates. Some Contractors might perform services in several categories. I've read many listings in the forum and am just not seeing the answer.
    I have a sample file ready to send. I don't see a way to send it with this message. First Post! Sorry!
    Thank You
    Jeff

    jwoods007 wrote:
    What I would like is to transfer all Vendor names included in the project to the Vendor Totals Table but without any duplicates.
    Hi Jeff,
    Welcome to Apple Discussions and the Numbers '09 forum.
    If your Vendor names (including duplicates) are all in the same column of the source table, it shouldn't be difficult to transfer them to a second table using the technique described below.
    For the example, the source table is named Main and has one header row, the Vendors are listed in column C (starting at C2), and column B is used as an index column. Note that to use VLOOKUP, the index column must be to the left of the Vendor column.
    The index is generated using the following formula in B2, and filled down to the end of the column:
    =IF(COUNTIF(C$1:C2,C)=1,MAX($B$1:B1)+1,"")
    On the second table, Vendor List, the following formula is used in Column A (starting at A2) to collect the indexed vendors from the Main table"
    =IFERROR(VLOOKUP(ROW()-1,Main :: B:C,2,FALSE),"")
    IFERROR is used to trap the "couldn't find" error in the 'empty' rows of Vendor List.
    'FALSE' displays as "exact-match" in the formula, and prevents the rpeated listing of the last vendor that would be created by 'close-match'.
    Regards,
    Barry

  • How to copy data from one table to another (in other database)

    Hi. I would like to copy all rows from one table to another (and not use BC4J). Tables can be in various databases. I have already 2 connections and I am able to browse source table using
    ResultSet rset = stmt.executeQuery("select ...");
    But I would not like to create special insert statement for every row . There will be problems with date formats etc and it will be slow. Can I use retrieved ResultSet somehow ? Maybe with method insertRow, but how, if ResultSet is based on select statement and want to insert into target table? Please point me in the right direction. Thanks.

    No tools please, it must be common solution. We suceeded in converting our BC4J aplication to PostgreSQL, the MSSQL will be next. So we want to write simple aplication, which could transfer data from our tables between these 3 servers.

  • How to transfer pictures from one itunes to another?

    I have most of my iPod stuff on my laptop, but my pictures are on my mac. I just got a new iPod, and I did what I normally do to get my pictures onto it- go into itunes, go into my pictures, and apply it. This time, however, not all of the pictures got transferred. I think it would be easier to have all my pictures on my laptop, but I do not know how to transfer them from one computer to another. How can I do this?

    If they are synced photos just copy the folders with the photos to the new computer. Synced photos are not associated with iTunes or the iTunes library.

  • How to transfer Signatures from one Mac to another

    In Mail, if I go to Preferences > Signatures, I see in the left column *All Signatures*, and signatures for various accounts.
    How would I transfer the signatures in *All Signatures* from one Mac to another?
    The names of files in the folder ~/Library/Mail/Signatures are all cryptic.
    Moreover, since each signature is tied to a certain account, I don't think that I can just copy these files into the Signature folder of the 2nd Mac.

    Simply moving these cryptic files did not work, in the sense that these signatures did not show up in the right-most column of the Signatures pane.
    I made sure that I did not move the SignaturesByAccount.plist file in the ~/Library/Mail/Signatures folder.
    So, would someone please share with me how to transfer signatures from one Mac to another, with both running Mail?

  • How to transfer photos from one rhyme to another?

    how to transfer photos from one rhyme to another?

    Can you connect the phone to the computer as a disk drive using the usb cable supplied with the phone? Copy the files from the first phone. Disconnect it properly. Connect the second phone in the same manner. This time copy the files from the computer to the phone in the same place where you found them on the other phone.

  • How  to transfer data from one system to another by datamart please give de

    how  to transfer data from one system to another by datamart please give details

    Hi Deba,
    Find the below SAP help doc which may help u...
    http://help.sap.com/saphelp_nw70/helpdata/en/12/43074208ae2a38e10000000a1550b0/frameset.htm
    Also find the below threads...
    Loading data from one cube to another cube.
    data copy from infocube to infocube in two different BW systems
    Delta when loading from ODS to ODS
    reg datamart
    Data mart flag
    Regards,
    KK.

  • How to transfer bookmarks from one computer to another?

    how to transfer bookmarks from one computer to another?

    Export your bookmarks (file menu in Safari, from the Show All Bookmarks option in Firefox) and save to your HD. Copy the saved .html file to the other Mac over the network, or by copying the file to a USB stick and copying to the other Mac, or emailing them to the other Mac. On the other Mac import the Bookmarks file into your browser of choice,

  • How to transfer photos from one make to another

    How to transfer photos from one mac to another wirelessly

    I can give you a few ways to so:
    First (and my favorite way) is the one said above.  First, on the computer with the photos on it, you have to do is turn on file sharing (go to system preferences, sharing, file sharing) and have both computers on the same network.  Second, have the computers you want the photos on, and launch finder.  On the sidebar, there should be a "sharing" category, and below it should be the computer with the photos on it.  Click on it, and you will be prompted for the computer username and password.  It will then show all of the files on your computer.  Then, just find the files, copy them (command-C) and paste them to where you want them! (If this confuses you, I can upload a video step-by-step on how to do this).
    My second way is to use air drop. To start, Both computers must be on the same network.  Then, on the computer with the photos on it select all of the photos you want to send to the other computer (you can select many photos by holding the command key and clicking on photos), right-click (control-click) on the selected photos, find the button share, and click air drop.  On the computer you want the photos on, go to air drop on the side bar.  You should see the name of the computer on the radar-looking screen.  Click your computer.  The photos should begin to download to the downloads folder. (This feature is only compatible with certain computers)

  • How to transfer photos from one computer to another

    How to transfer photos from one computer to another fast from iMac to MacBook both on lion
    help. Tried airdrop to slow

    Hi roseabe
    Please give us more details. What kind of computer (model, speed) are you trying to transfer from and to?
    Besides, you don't hold down cmd/apple+"T" on the target computer - just the "T" key.
    Matt

  • How to transfer songs from one iPad to another iPad using iTunes?

    How to transfer songs from one iPad to another iPad using iTunes?

    You can't without a third party app. If you didn't purchase the Music with your Apple ID or if the music was imported from CD's on your friends iTunes library, syncing will not work ....nor will transferring purchases.
    Look at this app .... TouchCopy
    http://www.wideanglesoftware.com/touchcopy/index.php

  • Copying table rows from one table to another table form

    Hi
    I have a problem about Copying table rows from one table to another table form.On jsf pages if you enter command button go anather jsf page and it copy one row to another table row. But when i execute this process for table FORM it doesn't copy I wrote a code under "createRowFromResultSet - overridden for custom java data source support." Code block is:
    ViewRowImpl value = super.createRowFromResultSet(qc, resultSet);
    try{
    AdfFacesContext fct = AdfFacesContext.getCurrentInstance();
    Number abc = (Number)fct.getProcessScope().get("___");
    value.setAttribute("___",abc);
    }catch(Exception ex){System.out.println(ex);  }
    return value;

    Table may be copied with the
    expdp and impdp utilities.
    http://www.oracle.com/technology/products/database/utilities/index.html

  • I would like to know how to transfer ebooks from one laptop to another with adobe digital editions both authorized with the same adobe ID.

    I would like to know how to transfer ebooks from one laptop to another with adobe digital editions both authorized with the same adobe ID.

    Stop using the account.
    You need do nothing more.
    You will need to authorize your computer for both accounts as you have purchased from both accounts.

  • OBIEE 11g How to pass variable from one prompt to another prompt in dashboard page.

      How to pass variable from one prompt to another prompt in dashboard page.
    I have two prompt in dashboard page as below.
    Reporttype
    prompt: values(Accounting, Operational) Note: values stored as
    presentation variable and they are not coming from table.
    Date prompt values (Account_date, Operation_date)
    Note:values are coming from dim_date table.  
    Now the task is When user select First
    Prompt value  “Accounting” Then in the
    second prompt should display only Accounting_dates , if user select “operational”
    and it should display only operation_dates in second prompt.
    In order to solve this issue I made the
    first prompt “Reporttype” values(Accounting, Operational) as presentation
    values (custom specific values) and default presentation value is accounting.
    In second prompt Date are coming from
    dim_date table and I selected Sql results as shown below.
    SELECT case when '@{Reporttype}'='Accounting'
    then "Dates (Receipts)"."Acct Year"
    else "Dates (Receipts)"."Ops
    Year"  End  FROM "Receipts"
    Issue: Presentation variable value is not
    changing in sql when user select “operation” and second prompt always shows
    acct year in second prompt.
    For testing pupose I kept this presentation
    variable in text object of dashboard and values are changing there, but not in
    second prompt sql.
    Please suggest the solution.

    You will want to use the MoveClipLoader class (using its loadClip() and addListener() methods) rather than loadMovie so that you can wait for the file to load before you try to access anything in it.  You can create an empty movieclip to load the swf into, and in that way the loaded file can be targeted using the empty movieclip instance name.

  • How to transfer data from one macbookpro to another

    how to you transfer data from one macbookpro to another. the other one was stolen.

    If your computer was stolen and you don't have a data backup, you can't transfer data from the stolen computer to your new one. If you have a data backup, restore the data to the new computer.

Maybe you are looking for

  • Installing from an external usb cdrom drive

    I am able to boot an external usb cdrom drive but I cannot figure out how to mount that usb cdrom drive to complete the install. My boot command is: arch-scsi NEEDUSB=auto I cannot run loaddisk, as it does not find the usb cdrom, so I cannot load the

  • Itunes 7 and remote desktop

    I installed itunes 7 locally on my pc and it worked great. But when i go to remote desktop and open it i get an error (ox666d743F). Any ideas?

  • DISPUTE MANAGEMENT - RMS ID

    Hi, I created a custom RMS ID while configuring for the DISPUTE MANAGEMENT in the development environment. But when I go to UDM_DISPUTE transaction and try to change the RMS ID I see only S_CM_DEMO in the list. I don't see even the SAP standard RMS I

  • Web Dynpro error - CX_WD_GENERAL

    Hi, I am getting the below error when try to excute a Web Dynpro application. I am getting the login screen and this error appears afetr providing the login details. Can anyboby help me this, I searched on SDN, saw almost similar issues but still not

  • Schedule a sender JDBC adapter

    Can I schedule my sender JDBC adapter to execute and pick up row at 2pm everyday? I see an option of poll intervals but not sure how to schedule. Any ideas? Thanks, Venkat.