Button to copy all fields

HI,
I would like to create a button on a form...when the user clicks this button, all of the field values are copied and pasted into a big text field on the form.
Doesn't have to be pretty, I just want all the data from many fields dumped into one field.
Many thanks,
Joe

If an xml format is fine with all field and values then on the button click can assign the xml to a field(field name is: completeData).
var formDataStr = xfa.datasets.data.saveXML("pretty");
  completeData.rawValue = formDataStr;
If need ONLY fieldname and/or values can go by script function and get the values of each n every field on the form.
call "traverse" function on click of the button and pass "oParentNode" as the rootname of the form.
function traverse(oParentNode)
          var allChildElements;
          var intNumElements;
          var currentElement;
          var i;
          var j;
          // Get all occurances of the parent element
          intNumOccurances = oParentNode.all.length;
          for (i=0; i < intNumOccurances; i++)
                    oCurrentParent = oParentNode.all.item(i);
                     // Get all the child nodes of the parent element
                    allChildElements = oCurrentParent.nodes;
                    // Total number of elements in the object
                    intNumElements = allChildElements.length;
                    // Loop through all the child elements
                    for (j=0; j < intNumElements; j++)
                              currentElement = allChildElements.item(j);
                              // If the element is another subform we'll recursively call the function again
                              if (allChildElements.item(j).className == "subform")
                                        traverse(currentElement);
                                        // If the objects are fields or exclusive groups then we'll encode them
                              } else {
                                        if (currentElement.className == "field" || currentElement.className == "exclGroup")
                                                  //Here have the access for both field and value
                                  //your code comes here
                                                  fields += currentElement.name + "\t";
                                                  values += currentElement.rawValue + "\t";
}          // end traverse function
Hope this will help.

Similar Messages

  • Copy all fields from pdf to word

    copy all fields from pdf to word

    Try using shift/apple/4 - gives you a cross-hair selector to grab part of the screen - saves as Picture1.png to your Desktop then drag that into Word.
    Or, /Utilities/Grab

  • Simply Copying All Fields/Info On A Contact

    Is there a way to simply copy all contents of a contact from the address book so that one can simply paste it into another document? I do not seek to import, export, merge, or anything else but simply COPY AND PASTE. For some reason I cannot seem to get the bloody cursor to highlight all the fields to do something as simple (and NEEDED) as this task.
    Any help is appreciated.

    No advise at all???

  • Button to copy text to the clipboard

    Reading the document "Javascript for Acrobat API Reference" Page 120:
    http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf
    the document discusses the execMenuItem command. From all that I have researched it appears I cannot create a button that copies text from a text field to the UI clipboard. 
    On page 121 the API reference says:
    To ensure a secure environment, the menu items that can be executed are limited to the following:
    ●AcroSendMail:SendMail
    ●ActualSize
    ●AddFileAttachment
    ●BookmarkShowLocation
    ●Close
    ●CropPages
    ●DeletePages.............
    ..............●ZoomViewOut
    The list is long but nowhere is "Copy" mentioned. I don't want to surreptitiously copy text or use a trusted function. I am content with the user knowing a button just copied a field of text. I just want to skip the highlighting of multiple field to get all the text. Does anyone know a way around this? I would like to copy a text field to the clipboard so the text can be entered elsewhere in another program.

    All I know is they made this impossible a long time ago, like with Acrobat 5 or 6. I recall because I took advantage of it and never discovered a workaround.

  • How to lock a form (all fields read only) using a button (JavaScript)

    Hi guys,
    I have a form with several input fields, check boxes. Using a button in the form, I would like to lock it using a JavaScript. Locking means in my case that all input fields, checkboxes, etc. are read only (cannot be changed anymore).
    I already use the following approach:
    data.form.MyInputField.access = "readOnly";
    The problem is, that this approach is not comforable from maintenance perspective. I would like a more generic or more simple way.
    Generic:
    loop over all fields and set them to "read only"
    Simple:
    xfa.form.lock; // but this does not work
    Do you have any ideas how to solve this requirement in another way as I currently do?
    Thanks,
    Thomas

    Now I used the following script:
    // set the whole form as container
    var objContainer = data.Report;
    // call the method to set all fields to read only (recursion)
    disableAllFields(objContainer);
    function disableAllFields(objContainer) {
         for (var i=0; i < objContainer.nodes.length; i++) {          
              switch (objContainer.nodes.item(i).className) {
                   case "field" :
                   case "exclGroup" :
                        objContainer.nodes.item(i).access = "readOnly";
                        break;
                   case "subform" :
                        disableAllFields(objContainer.nodes.item(i));
                        break;
                   default:
    It works but is there another possibilitiy such like
    form.lock;
    Thanks,
    Thomas

  • How can I move photos from pictures to my Iomega external hard drive?  I have copied all photos, however it won't allow me to paste them.  The paste button is grayed out.

    How can I move photos from pictures to my external hard drive? I have copied all photos, however it won't allow me to paste the photos.  The paste button is grayed out.

    Do you want to copy some pictures to the external drive, or do you want to move your whole iPhoto library? The latter will free up hard drive space on your start up disk; the procedure is explained here:
    http://support.apple.com/kb/PH2506
    Note this is not the same as a Time Machine backup.
    If on the other hand you want to copy some photos from one drive to another, you can just drag and drop them from one location to another. This is a true copy, the originals will remain intact.

  • How to copy all the javascript of a page to another, including the fields javascript

    I have a PDF form with fields that have validation and formating scripts done in Javascript. I have another PDF form with equal fields: the fields are the same, same name same everything.....
    I want to copy all the fields scripts from 1 document to the other so that I doint have to retype all the javascript in all the fields. How can I do this????
    I am using Acrobat Pro 8.1.2
    Thanks
    Marc

    How do I copy them all with Edit All Javascripts?
    I tried adding new scripts to the file produced and saving it, but the new scripts were not in the PDF with I was done. At least I couldn't see them when I edited again.

  • How to compare and copy the fields from repeating subform to another subform, same structure.

    Dear All,
    I am using LiveCycle Designer 8.2.
    I have the following requirement, and did not figure out the best way to implement it using JavaScript.
    The Form has, say, Subform A with Repeating Inner Subform, say it has the Education History of the Staff.
    I want to put another Subform B, with similar structure to From A, and create a button/function to copy the field data values from A to B.
    Subform A will show the user the fields of education with Read-Only Mode.
    Subform B will show the user the same data values with write-enable mode. This subform will allow the user update his Education Records.
    The fields are:
    0. Staff ID: Text (Key 1) (always read-only and hidden, becuase it is on the main form),
    1. Degree: Text,
    2. Specialization: Text,
    3. Institution: Text,
    4. Start Date: Date (Key 2),
    5. End Date: Date.
    Another function is needed is to compare the same records between form A and Form B.
    (Note: The Education record of a Staff has primary key of Staff ID and Start Date. Meaning, the Staff cannot have tow different degrees in starting on the same date.)
    The user may change the Institution in form B or change the Degree. I need to highlight, on Subform B, the row which was changed or added by the user. This means I need to do lookup against Subform B using the Key Values from Subform A.
    I have already developed the Form, and I have about 5 Subforms to allow updated by Staff: Education, Experience Inside the company, Experience Outside the company, Job Skills, Membership Record, ..etc. One thing I did is that the Field Names I used in Subform A are not the same of the fieldname in Subform B, but the have same suffix, and different prefix. For example, for the Education:
    Subform A - Original Values:
    1. Degree: OrgDegreet,
    2. Specialization: OrgSpecialization,
    3. Institution: OrgInistitution,
    4. Start Date: OrgDateStart (Key),
    5. End Date: OrgDateEnd.
    Subform B - Updated Values:
    1. Degree: UpdDegreet,
    2. Specialization: UpdSpecialization,
    3. Institution: UpdInistitution,
    4. Start Date: UpdDateStart (Key),
    5. End Date: UpdDateEnd.
    I understand if the Key field is updated, then it is like it was deleted, and added a new one.
    I know how to do that in ASP.NET, but need help in Adobe LiveCycle using JavaScript.
    Please help me to write these two functions, as they are very urgent requirement.
    Tarek.

    In the event Exit of the 1st subforum.invoice you will find the code to assign the value to it's "brother" on page4.
    Also, on the add button i added the code to add a record to the page4 subforum.
    To make this work you will have to copy/past the code of the exit event to all fields you want to copy and in the xfa.resolvenode("XXXXXXX[].fieldName") command replace fieldname with the actual name of the field you're at.
    I didnt't do anything to te remove line button because i don't know how you want it to work, but, if you want to control the p4 subform with the p1 subform, you shouldn't allow for lines to be removed directly in the p4 subform.
    Hope this helps.

  • How do i copy all my hard drive files to an USB iBook?

    How do i copy all my hard drive files to an USB iBook (with a progrgram (no drag-and-drop everything), so I can change out my hard drive, I have a MacBook Pro. Thanks.

    Clone Lion using Restore Option of Disk Utility
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Select Disk Utility from the main menu then press the Continue button.
    Select the destination volume from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the destination volume from the left side list and drag it to the Destination entry field.
    Select the source volume from the left side list and drag it to the Source entry field.
    Double-check you got it right, then click on the Restore button.
    Destination means the external backup drive. Source means the Lion startup volume.

  • Copy all subform data and paste into another subform

    Need: I would like to have a button within a subform that allows you to copy all the data (many fields) and then paste it into an empty copy of the subform. Of course the info pasted would fill in all the fields etc.
    Reason: We routinely need to move subform data from page 3 in the document to page 11 (example). Currently we insert a new subform and copy/paste each field from 3 to 11 and then delete 3. It would be great to press a copy button in 3 and insert a new subform and paste.into 11.
    Is this possible?

    Steve's advice is good if this is a runtime question - how a user, filling out a form, can copy data from one section of the form to another.
    If this is a buildtime question - how a developer can duplicate a subform to be used elsewhere in the same form or in a different form, you have the following options:
    Duplicate and move. For one off tasks, select the subform in the Hierarchy pallet, and click Ctrl-D. This creates a copy of the subform, with all its contents, which can then be dragged in the hierarchy to its new position.
    Cut and paste. For one off tasks, select the subform in the Hierarchy pallet, and click Ctrl-C. Select the new position in the Hierarchy and then in the Design View (it seems odd to select the same object twice in different pallets, but this is required for the copied subform to be pasted into the right place). Click Ctrl-V
    Fragment. When the exact same subform is going to be used several times in the same and different forms, create a fragment by selecting the subform in the Deisgn View and drag to the Fragment Library pallet. This creates a fragment XDP file. By dragging the fragment onto forms, you are creating links back to the fragment XDP file. Change the fragment and next time you open a form in Designer it will inherit the changes. Fragments cannot be customised for a specific form.
    Common Object. Similar to fragments, you create a common object by selecting the subform in the Deisgn View and drag to the Object Library pallet. The difference is that when you drag a common object onto a form, it is inserting a copy of the subform. The inserted subform is not linked to the common object and so it can be customised for that form and will not inherit changes to the common object.
    Ben Walsh
    www.avoka.com

  • Write All Fields to Output

    Hi There,
    I am a new SAP developer and have a quick question that I can't find the answer to in my book.
    Is there a way to write all fields to the output without having to list every field name. Basically I am looking for a wild card or a key word or something.
    Thanks for your help.
    Colm

    Not really,  in most cases you need to list them manually,  but you can use the pattern button, then click radiobutton for WRITE statement, here you can specify a structure name(must be in dictionary, and then select the components of it, then copy it back, it will list the fields for you, but again it must exist in the dictionary.
    Regards,
    Rich Heilman

  • Not All Fields are Displayed in RSA3 for a Generic Extractor ??

    Hi all,
        I have a created a Generic Extarctor based on a View and enhanced the Extract Structure with 3 ZZ Fields. Now it has 26 fields with width of 273. In RSA3, I could see inly 12 fields with width of 147 only.
       <b>No</b> field has checked as HIDE in DataSource.
       I have checked <b>Settings</b> --> <b>Layout</b>  --> <b>Current</b>, there are <b>NO</b> columns in Hidden Fields box which is on right side. All fields are there in left side box under Line 1.
       I could see all the fields in ROOSFIELD table for this DataSource.
      When I copy it into Spreadsheet from RSA3, I could see all the fields with data including ZZ fields (Appended Fields).
       What is the problem and how could I fix it, PLEASE ?
       Thanks in advance.
    Regards,
    Venkat,
    Message was edited by:
            Venkat Kodi

    Hi Venkat
    sorry for late response.
    Anyway did you solve your issue.
    Forget about the icon now and check again in ROOSFIELD table and check if the missing field for selection has any parameter value. If so (shoudl be a P value ) then maintain it and put a blank value save the changes.
    this should solve your issue.
    hope this could help you
    regards
    Boujema

  • No "Copy All to Address Book" option in SIM menu, BlackBerry 8100

    Hi! I'm new here...so glad I found this forum! I have searched high and low but have not found a way to solve this problem. I've updated my device software, desktop manager, everything I can think of. I even went back into the Setup Wizard and selected the option to copy my SIM contacts to the Address Book. It looked like it copied them over, but when I went to check, nothing showed up.
    I've gone into the Filter menu while in Address Book and nothing is checked, yet nothing shows up. I've gone into the Address Book, then SIM Phone Book from the menu, then hit the menu button again and the only options I have are:
    New
    Call Voicemail
    SMS Text Voicemail
    MMS Voicemail
    Add to Address Book
    Switch Application
    Close
    No "Copy All" option anywhere to be found. This is a BlackBerry 8100. Help! Any suggestions! Filters are off, Setup Wizard's been tried and retried and nothing appears in the Address Book. HELP!
    ~Emily

    Actually, just yesterday I figured out the problem. Once in the SIM address book I only had to scroll down past the "Voicemail" entry a couple entries down and then when I clicked the menu button the option to "Copy All to Address Book" appeared. All that time and all I had to do was scroll past the first entry. Sheesh!
    Thank you for taking the time to reply with another option. I really appreciate it!
    ~Emily

  • How to create popup window with radio buttons and a input field

    Hi Guys,
    Can somebody give some directions to create a stand alone program to create a window popup with 2 radio button and an input field for getting text value. I need to update the text value in a custom table.
    I will call this stand alone program from an user exit. 
    Please give me the guidance how go about it or please give any tutorial you have.
    Thanks,
    Mini

    Hi,
    There are multiple aspects of your requirements. So let's take them one at a time.
    You can achieve it in the report program or you can use a combination of the both along.
    You can create a standalone report program using the ABAP Editor (SE38). In the report program you can call the SAP Module pool program by CALL Screen <screen number>. And then in the module pool program you an create a subscreen and can handle the window popup with 2 radio button and an input field for getting the text.
    For help - Module Pool programs you can search in ABAP Editor with DEMODYNPRO* and you will ge the entire demo code for all dialog related code.
    For Report and other Module pool help you can have a look at the following:
    http://help.sap.com/saphelp_nw70/helpdata/en/47/a1ff9b8d0c0986e10000000a42189c/frameset.htm
    Hope this helps. Let me know if you need any more details.
    Thanks,
    Samantak.

  • Copy all values from one page to another

    Dear all
    i have creation page user enter all the records and save if the details are not in customer master
    then user click add customer it will call to master customer page and as well as i want to copy all these fields to customer master when ever he click on add customer
    how it is possible..
    Regards
    Sreekanth

    Hi,
    before navigating to the Master customer Page...
    take all the values in hashmap
    hm.put("value1",value);
    hm.put("value2",value2);
    Pass the hashmap in pageContext.setForwardURL();
    then on Master customer Page
    grab the values in string variables using pageContext.getParameter
    and set it on fields using
    setText();
    Thanks,
    Gaurav

Maybe you are looking for

  • Is it possible to install & operate CS3 web Premium On A Vista 64 Bit O.S.?

    I am using a H.P. Pavillion Desktop, with 4 gigs of Ram & a 500 Gig Hard drive,  partitioned into: ('C', as primary Drive, Free space: 318 Gigs ) & ('D' as my factory image Drive, Free space: 1.47 Gigs). Operating System Windows Vista, Home Premium,

  • Mac email quits

    A few days ago our power went out and since then a few things have gone haywire on my older iMac (10.4.8). I will deal with the problem that is most important and attack the others later. My email quits as soon as it starts to download a message. My

  • ACL strange behaviour

    Hello, I've inherited an old  Win 2000 server. On it there are several shares that I'm forced to move on a 10.6.7 server.. I've added this 10.6 server in the AD and moved on it those shares, and I've assigned necessary ACL on them. It's something sim

  • Passing Internal table as parameter to a Method

    Hi, Can somebody tell me how to pass an Internal table as a parameter to a method? Thanks in advance, Best Regards, Manish

  • Building a dynamic dialog in Acrobat with Javascript

    I am attempting to figure out how to build dynamic dialogs within Acrobat using Javascript. I am attempting to write a generalized PDF page splitter.  The user selects a PDF document, and then the script analyzes the open document and determines that