Copy the data from first line while dynamically adding a new line in table

Hi,
1. There is a table
2. An add button adds a new line to the table using 'AddInstance'
3. A record is entered in the first line
4. When the add button is clicked it adds a new line and along with it copies the data entered in the first line
My question is how to copy the data from the first line and show it in the new line added. This is required so that user can use most of the common values in the first line.
Thanks,
Nikhil

You can use the following Java Script in the Click event of the button.
// Get the number of rows in the table
var nrows = xfa.resolveNodes("page.table.DATA[*]").length;
// Add a new instance(row) to the table
page.table.addInstance.instanceManager(1);
xfa.form.recalculate(1);
// Copy the values from the first line to the newly created row
page.table.DATA\[ nrows \].field1.rawValue = page.table.DATA\[ 0 \].field1.rawValue;
..........field2
..........field3
Thanks,
Chandra Indukuri

Similar Messages

  • How to copy the Data From Oracle Table To SAP Table

    Hi Friends,
    We need to copy the data from Oracle Database Table to SAP Table. The data should be updated simultaneously in both tables . Should I write a program that contains the native sql statement like EXEC SQL PERFORMING WRITE,....
    I appreciate any suggestions regarding this.
    Regards
    CSM Reddy

    Hi,
    since you posted this question in the DB2 forum I assume that you are using a DB2 database for your SAP system.
    To access a table from a legacy ORACLE database you may use the DBSL multiconnect feature. I.e. you open a secondary connecction in the SAP system to your ORALE database. You can then ready the data from the ORACLE database into an ABAP internal table and insert it afterwards into the DB2 table on the main connection.
    Another way to access an ORACLE table from a DB2 database is to use the DB2 federated database feature. This requires a little bit more DB2 skill. With this feature you can make the ORACLE table visible within the DB2 database. To copy data you can then simply use a "INSERT ... SELECT" statement. 
    Regards
             Frank

  • User exit to copy the data from sales order to billing document

    hi everyone,
    Is there an user exit to copy the data from sales order to billing document?
    Regards
    Prabudh

    hi
    copy control would be the better option to choose.. but still u can a give a search in list below and opt for the right one..Refer to the link below..
    http://www.planetsap.com/Userexit_List.htm
    User exits for Sales order
    1•USEREXIT_DELETE_DOCUMENT
    2•USEREXIT_FIELD_MODIFICATION
    3.•USEREXIT_MOVE_FIELD_TO_VBAK
    4.•USEREXIT_NUMBER_RANGE
    5.•USEREXIT_SAVE_DOCUMENT
    User exits for billing
    1.•USEREXIT_ACCOUNT_PREP_KOMKCV (Module pool SAPLV60A, program RV60AFZZ)
    2.•USEREXIT_ACCOUNT_PREP_KOMPCV
    3•USEREXIT_NUMBER_RANGE_INV_DATE (Module pool SAPLV60A, program RV60AFZC)
    4•USEREXIT_PRINT_ITEM (Module pool SAPLV61A, program RV61AFZB
    5.USEREXIT_PRINT_HEAD (Modulpool SAPLV61A, Programm RV61AFZB)
    Reward if Useful
    Thanx & Regards..
    Naren..

  • How to copy the data from one database to another database without DB link

    Good Day,
    I want to copy the data from one database to another database with out DB link but the structure is same in both.
    Thanks
    Nihar

    You could use SQL*Plus' COPY command
    http://technology.amis.nl/blog/432/little-gold-nugget-sqlplus-copy-command
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/apb.htm#sthref3702
    Edited by: Alex Nuijten on Sep 16, 2009 8:13 AM

  • SCM APO can we copy the data from client 001 to client 002???

    Hi Guru's
    SCM APO can we copy the data from client 001 to client 002???
    If it is possibulity please let me know?
    Regards,
    Sree

    Yes you can do.
    Tcode SCCL.
    Options :
    When copying clients, you can select what you want to transfer from the source client to the target client:
    User masters: You select this option, for example, if you want to give all users of an existing client the same authorizations in the target client.
    Client-specific Customizing: You select this option, for example, if you want to set up a new client in an existing system.
    Client-specific Customizing and master/transaction data:
    You select this option, for example, if you want to set up a test client that is identical to the production client (in the same system).
    Client-specific and cross-client Customizing: You select this option, for example, if you want to set up a quality assurance system based on the production client of another system.
    Client-specific and cross-client Customizing and master/transaction data: You select this option, for example, if you want to set up a test client based on the production client of another system.
    http://help.sap.com/saphelp_46c/helpdata/EN/69/c24c4e4ba111d189750000e8322d00/frameset.htm

  • Copy the data from one column to another column using @

    I have two columns here - A and B.
    Column A has a complicated formula that will generate results. I wanted the results in Column A to be reflected in Column B without pasting the A's formula in B. This will save me the trouble of editing formulas in more than 1 column if there is a need.
    I saw somewhere that you can use "@" in column B but I have no idea how to use it.
    Assumingly column A is the first column. I tried to insert '@1' in B's formula and change B's column properties' Data Format as "Treat Text as HTML". It does not work.
    Please advise how I can do that.

    So is there any way to copy the data in Column A into Column B without putting the same formula? something like in Excel where we put "=C1". Its not possible in BI as it comes in excel.....The only way is to create a duplicate column in RPD or Answers screen and incorporate the formula and giving different name to it.
    whats the problem if you duplicate the column with same formula?....Ok still if you dont want to see identical just write some pseudo logic say
    Duplicated column f(x) case when 1=0 then column_name else formula end.....so it appears different to see but it outputs same.
    UPDATED POST
    Dont create in RPD,you can create a dummy column in that report request and change the f(x) to the above case i mentioned by taking the column from columns button in edit formula screen so when ever you edit the actual column formula that would reflect in the dummy column also as it is replicating from original one.Try and see
    hope helps you.
    Cheers,
    KK
    Edited by: Kranthi.K on Jun 2, 2011 1:26 AM

  • I need to transfer all of the data from my old iphone 4s to my new iphone 5

    I need simple help to transfer all of the contents from my old iPhone 4s to my new iPhone 5
    The Apple Store was unable to assist due to too much data for icloud.  I have a MacBook and the cables for each device. 
    Where to start?
    db

    Check this link.
    http://support.apple.com/kb/HT2109?viewlocale=en_US&locale=en_US

  • Unable to get the data from a website with dynamically filled textboxes when accessing through myWb.Document.GetElementById("num1").InnerText;

    Hi Team,
    I am learning on webbrowser control and during the learning phase i have the following issue:-
    My webbrowser [mywb in this case] is successfully navigating and displaying the website content in webbrowser control. However; that site has three textboxes with dynamically allocated text from asp script
    code behind; I have tried to display these textboxes values by providing the correct id of these textboxes in my visual studio 2013 code; but I am not receiving any data except null. Can you help me on this as early as possible.
    asp code written to dynamically assign the data to textbox:-
    <%
    myvar=Request.form("some")
    Response.write("<input type=text id=num1 value=" + myvar+ ">")
    %>
    The code written in VS 2013 to access the textbox  by its id when the DocumentCompleted event is triggered:-
    string mystr ="";
    mystr = myWb.Document.GetElementById("num1").InnerText;
    MessageBox.Show(mystr);
    Thank You in Advance.
    Regards, Subhash Konduru

    Hello,
    Thank you for your post.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because the issue is related to website, I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/
     for better solution and support.
    Best regards,
    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.

  • How to copy the Data from BW 3.X to BI 7.0?

    Hi,
           Once the objects have been migrated to the BI 7.0 System from BW 3.x, How the data will be copied to the BI 7.0 System from BW 3.x?
    Thanks,
    Veerendra.

    You can't copy data from one version to another version after Upgrade.
    What is your system/landscape scenarios? Did you upgrade 3x to BI 7 on same system or different system?
    If same system - data is there after upgrade also. Just migrate and test.
    If different system and you did not do a system copy, you need to load data again.
    Talk to your basis guy and aks how tghey upgraded.
    Hope it helps..

  • How to unlock the data from other user while editing

    Hi friends,
    I have created 4 maintenance views for a table. While editing data by using one view, I must be able to edit other data of the same table using other different view. But it is showing "The data is locked by user pagidala and can be displayed only. do u want to display locked data?". I must not get this error, it must permit me to edit the data. How it will be possible?
    Thanks,
    Ramesh.

    Hi,
    I think Its not possible because If there is such type of option there will not be data security.
    i.e. while your maintaing the data in table others can change it simultaneously and it can lead to errors
    If you wish Go to SM12 and remove the lock manually
    Regards
    Prasanth

  • Copy the data from Sql Server to edirectory using java

    Hi ,
    I am new to e directory.I don't know how it works.Can some one assist
    me on this ,I have to extract data from SQL Server and update these
    data in edirectory.This is needs to be done using java.
    If any one can provide me the sample code or please suggest how to
    proceed .
    Thanks in advance
    dukewarm
    dukewarm's Profile: http://forums.novell.com/member.php?userid=53430
    View this thread: http://forums.novell.com/showthread.php?t=373051

    dukewarm;1792481 Wrote:
    > Hi ,
    >
    > I am new to e directory.I don't know how it works.Can some one assist
    > me on this ,I have to extract data from SQL Server and update these
    > data in edirectory.This is needs to be done using java.
    >
    > If any one can provide me the sample code or please suggest how to
    > proceed .
    >
    > Thanks in advance
    Read the values from SQL server and use LDAP to update the data in
    eDirectory.
    Thomas
    thsundel
    thsundel's Profile: http://forums.novell.com/member.php?userid=128
    View this thread: http://forums.novell.com/showthread.php?t=373051

  • How do I copy the data from a time capsual to a hard drive?

    Hi I need to give someone a copy of my time capsual, can any one tell me how to do that without removing all the information from my time capsual....?

    It is an unusual request.
    What kind of material is on the TC? Do you mean files or do you mean TM backups?
    You can do a direct archive of the TC to a USB drive so the two are exact image of each other.
    But you cannot do it from v6 utility because Apple decided you didn't need that option any more.
    So you need to install 5.6 utility into Mountain Lion. See below for one method.
    If you want to move a backup from network drive to external drive that is a lot different to the above.
    See Q18 in Pondini.
    http://pondini.org/TM/FAQ.html
    How to load 5.6 into ML.
    1. Download 5.6 for Lion.
    http://support.apple.com/kb/DL1482
    Click to open the dmg but do not attempt to install the pkg.. it won't work anyway.
    2. Download and install unpkg.
    http://www.timdoug.com/unpkg/
    Run unpkg on the desktop.. it is very simple.. drag the AirPortUtility56.pkg file over to unpkg.. and it will create a new directory of the same name on the desktop.. drill down.. applications utilities .. there lo and behold is Airport utility 5.6 .. drag it to your main utilities directory or just run it from current location.
    You cannot uninstall 6.1 so don't try.. and you cannot or should not run them both at the same time.. so just ignore the toyland version.. the plastic hammer.. and start using 5.6.. a real tool.
    For screen shots see this post.
    https://discussions.apple.com/thread/4668746?tstart=0

  • Is there a way to keep all the data on my phone while syncing to a new laptop? I lost all the data on my old one.

    Recently my old mac laptop lost all it's data. Is it possible for me to sync my iphone to a new computer without losing everything on my phone?

    Your i-device was not designed for unique storage of your media. It is not a backup device and media transfer was planned with you maintaining a master copy of your media on a computer which is itself properly backed up against loss. Syncing is one way, computer to device, updating the device content to the content on the computer, not updating or restoring content on a computer. The exception is iTunes Store purchases which can be transferred to a computer.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer - http://support.apple.com/kb/HT1848 - only purchases from iTunes Store
    For transferring other items from an i-device to a computer you will have to use third party commercial software.  See this document by turingtest2: Recovering your iTunes library from your iPod or iOS device - https://discussions.apple.com/docs/DOC-3991

  • I copied the photos from my photo stream folder to a new folder on my macbook pro. I then deleted the phots in my photo stream folder. It erased them from the other folder as well. Why? Where did they go? Can I get them back? Please help. Thanks.

    Hello, I wanted to clear out my photo stream folder on my macbook pro, so I copied all the photos to a permanent folder. I then deleted all the photos in my photo stream folder. The photos in my backup folder were automatically deleted and I want them retrieved. They are not in my trash and I can't find them. Are photos autmatically backed up in my phots? How can I retrieve the deleted photos? Please help. Thanks.

    You can't currently delete individual photos but you can reset
    Step 1: Login to your iCloud account on iCloud.com from a Mac or PC.
    Step 2: Click on your name at the top right of the main iCloud page.
    Step 3: Click on the Advanced option.
    Step 4: Click “Reset Photo Stream.” You will then need to confirm.
    Step 5: This Photo Stream reset will not go into effect until you toggle Photo Stream on and off on your devices. In iOS, Photo Stream can be turned off and on in the iCloud settings window of the Settings app.

  • How can I combine the data from 3 old hard drives onto 1 newer hard drive and not duplicate the data?

    Is there an app that will help me do this?

    Finder. Create three partitions, then drag & drop each old HD onto a separate one. Alternatively, create three folders on the new HD and drag & drop each volume onto a separate one.

Maybe you are looking for