Webservice call not working in published PDF form

I've set up a dropdown field in a standard PDF form and have written the following code to run on the 'On Focus' event:
var service = SOAP.connect("http://localhost:50592/lookup.svc?wsdl");
var values = service.GetDropdownValues();
this.getField("LookupField").setItems(values);
This works great in Adobe Acrobat Pro X, but when I save as a Reader Extended PDF with Additional Features, the code no longer runs and I'm stuck with what was prefilled in Professional before the save.
We're trying to get dynamic values for these fields from users in the field who will be filling out and submitting these forms.  We are also limited to a standard PDF form, LiveCycle isn't an option for us.  Can anyone recommend a method that will work or maybe tell me why this isn't working like we believe it should?
Thanks.
Matt Williams

It's not working because the usage right that is required for it to work in Reader is not added when the form is enabled with Acrobat. It can be added if you enable the form with LiveCycle Reader Extensions.
An alternative is to submit (using doc.submitForm JavaScript method) to a web server and have it return an FDF that sets the dropdown values. This can work even if the form is not Reader-enabled. You'll just need to find out how to create the type of FDF that will do this and program the server to return it.

Similar Messages

  • Published pdf form is unable to connect with database

    Hi Guys!
    I have created a PDF form using Adobe Live Cycle Designer which have some text fields namely RECORD and NAME. I have connected this form with a Database. When I enter a record in the RECORD number field the NAME field of this form has been populated with the help of XFA Script which is written on the exit event of the RECORD text field. When we publish this form, a new interactive PDF is created which works fine and populates the NAME field from the an SQL database but when I access this PDF form (which is located on a shared location) from some another location (not on the same machine where i designed this form) it is unable to connect to the database and does not work as expected.
    I think there is some thing i am missing for the database connectivity.
    If any body on this forum can help me out.
    thanks
    Here is the Script for the above form which i used to populate the NAME FIELD on the basis of enetered RECORD number.
    ----- Document.Page1.txt_MRN::exit: - (JavaScript, client) -----------------------------------------
    /* This dropdown list object will populate two columns with data from a data connection.
    sDataConnectionName - name of the data connection to get the data from.  Note the data connection will appear in the Data View.
    sColHiddenValue  - this is the hidden value column of the dropdown.  Specify the table column name used for populating.
    sColDisplayText  - this is the display text column of the dropdown.  Specify the table column name used for populating.
    These variables must be assigned for this script to run correctly.  Replace <value> with the correct value.
    var sDataConnectionName = "DataSource";  // example - var sDataConnectionName = "MyDataConnection";
    var sColHiddenValue  = "RecordNum";   // example - var sColHiddenValue = "MyIndexValue";
    var sColDisplayText  = "Name";   // example - var sColDisplayText = "MyDescription"
    // Search for sourceSet node which matchs the DataConnection name
    var nIndex = 0;
    while(xfa.sourceSet.nodes.item(nIndex).name != sDataConnectionName)
    nIndex++;
    //var oDB = xfa.sourceSet.nodes.item(nIndex);
    var oDB = xfa.sourceSet.nodes.item(nIndex).clone(1);
    oDB.open();
    oDB.first();
    // Search node with the class name "command"
    var nDBIndex = 0;
    while(oDB.nodes.item(nDBIndex).className != "command")
    nDBIndex++;
    // Backup the original settings before assigning BOF and EOF to stay
    var sBOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("bofAction");
    var sEOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("eofAction");
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayBOF", "bofAction");
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayEOF", "eofAction");
    // Clear the list
    this.clearItems();
    // Search for the record node with the matching Data Connection name
    nIndex = 0;
    while(xfa.record.nodes.item(nIndex).name != sDataConnectionName)
    nIndex++;
    var oRecord = xfa.record.nodes.item(nIndex);
    // Find the value node
    var oValueNode   = null;
    var oTextNode   =  null;
    var sRecordNum  =  $.rawValue;
    for(var nColIndex = 0; nColIndex < oRecord.nodes.length; nColIndex++)
    if(oRecord.nodes.item(nColIndex).name == sColHiddenValue)
      oValueNode = oRecord.nodes.item(nColIndex);
    else if(oRecord.nodes.item(nColIndex).name == sColDisplayText)
      oTextNode = oRecord.nodes.item(nColIndex);
    var found= 0;
    while(!oDB.isEOF())
    if (oValueNode.value== sRecordNum)
      txt_FirstName.rawValue = oTextNode.value;
      txt_LastName.rawValue = oTextNode.value;
      found = 1;
      break;
      //this.addItem(oTextNode.value, oValueNode.value);
       oDB.next();
       if (found == 0)
        txt_FirstName.rawValue = "";
        txt_LastName.rawValue = "";
    // Restore the original settings
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sBOFBackup, "bofAction");
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sEOFBackup, "eofAction");
    // Close connection
    oDB.close();

    Finally achived the database connectivity for the published pdf form developed in the Adobe LiveCycle Designer 8.0.
    There must be the same driver version of the DSN on both machines. The machine which published the form and the one accessing it.
    Use the Admin account to add the DSN on both machines.
    Get rid of the error: Connection for Source "DataConnectionName" failed because the environment is not trusted.
    Thanks
    AbdulHafeez

  • Acrobat Standard (9.4.6) - Issue: "Acrobat could not create a new PDF form"

    I have Adobe Acrobat Standard (version 9.4.6).  I am trying to create a form but when I start the form wizard, locate the document to convert and click next, I get an error message "Acrobat could not create a new PDF form."  What's wrong?  (I've used this feature before in Adobe Pro so I am familiar with the process but I am using Standard now).  It's not letting me upload my document (an MS Word 2003 document).  Please, someone, anyone, help!  I think I got a bad batch of software here.  Any suggestions?  If it's hopeless, who do I call for a replacement if that's the case?  Is this software under warranty?

    Hello Michael,
    Thank you for your email.  The file I am trying to convert to PDF and create a form with is a MS Office Word 2003 file.  It isn't any specific file; the issue happens every time.  I type my text in the Word doc and then proceed to open Adobe Acrobat Standard and use the wizard to create a form from an existing file.  I tried to repairing the software but it does not help.  Any other suggestions?  Is this version of software defective?  I really need this feature.  I look forward to your reply.  Thanks.
    Angela

  • Can not print turbo tax pdf form prints but no data

    can not print turbo tax pdf form prints but no data

    Thanks much for your help
    Works great
    Ward Johnson

  • My adobe is not working cannot open pdf i am going to deleted it

    my adobe is not working cannot open pdf
    i am going to delted it
    typing is not for me phone call is bettr

    Dog so that your inquiry can be directed to the correct forum.  What Adobe software or service are you referring too?  Please see Ned's post for information on how to contact our support team directly.

  • HP ProBook 440 G2, Finger print reader not working when I upgraded form Win 7 Pro to Win 8.1 Pro

    My HP ProBook 440 G2, Finger print reader not working when I upgraded form Win 7 Pro to Win 8.1 Pro.
    In device manager showing that biometric reader is working properly. But actually the finger printer reader is not reading or senseing. It seems like "dummy" part. Please help me to correctly configure step by step for this issue.
    thankyou
    Hillet
    This question was solved.
    View Solution.

    Have you installed the Validity Sensor Fingerprint driver software for Windows 8.1?
    http://h20564.www2.hp.com/hpsc/swd/public/detail?sp4ts.oid=6943811&swItemId=ob_134806_1&swEnvOid=415...
    See page 64 in the following Windows 8.1 user manual for Validity Fingerprint setup information
    http://h20565.www2.hp.com/hpsc/doc/public/display?sp4ts.oid=6943810&docId=emr_na-c04371762&docLocale...
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Top Nav buttons not working after publish, but works in app. WHY?

    I have tried to find out why these buttons will not work after publishing. They work fine while in the iWeb app, but not when publishing. I do not have any objects near the top nav buttons. The first site went off without a hitch
    <www.serenitycustompools.net> the second site began the problem with the last page, the nav buttons would not work. Now this 3rd site, none of the nav buttons at top will work after publish, but will work in app. Anyone else having the same probs? None of my pages have the same names or any punctuation marks, and they are simple one word named pages.
    mini intel   Mac OS X (10.4.9)  

    They all work for me, try clearing your browser cache or using another browser.

  • IWeb moves pictures by itself, links do not work when publishing to folder

    When I first started using iWeb i would save the page I was working on and then publish it to a folder so I could look at it in Safari and it used to work fine. Now when I do this the pictures come up and they are pushed up halfway off of the top of the page and you aren't able to scroll down all the way to see the bottom of the background picture that I have. Also, the links to the other pages of the site do not work after publishing it to a folder. If anyone has any advice I would greatly appreciate it!
    17" Powerbook G4   Mac OS X (10.4.6)  

    I uploaded it to a free host for now. here is the link: http://www.zendurl.com/garrett/cgi-bin/www.garrettramquist.com/Welcome.html

  • Merge call not working in ios7 on Iphone5

    Merge call not working in ios7 on Iphone5 ?

    Same here. We have this call center in our company where after i have added a call to merge i have to push no. 4 and dial from the keypad. This has never been possible in ios but it have been possible to create a contact called "Merge" and add number 4 as it's phone number. Now by merging first my clients call to my collegegue and then to this "Merge" contact it has been dropping me out of line and my client and collegue are merged.
    Now ios 7 wont let me call to this "Merge" contact's number "4"

  • Pause/Play functionality not working with publish to HTML5

    Hi experts,
    I am creating a Captivate course to be deployed on iOS and publishing to HTML5. We are using custom buttons (not playback controls) for navigation to advance through the slides. My client would also like Play/Pause functionality for some of our embedded (MP4) videos. I used the following tutorial to create these buttons to toggle the Play & Pause functionality:
    http://www.youtube.com/watch?v=0v2F0NyEAfs
    This worked PERFECTLY when previewed in a browser from Captivate, but does not work when published and launched in HTML5 format, from the same browser. I didn't use any Flash content, rollover functionalities, or anything noted in the limitations list for HTML5 output. The conditional functions I have set for my buttons are:
    PAUSE:
    Hide > SPI_Pause
    Show > SPI_Play
    Assign > cpCmndResume with 0
    Assign > cpCmndPause with 1
    PLAY:
    Assign > cpCmndPause with 0
    Assign > cpCmndRsume with 1
    Hide > SPI_Play
    Show > SPI_Pause
    The issue I am encountering is that the video completely pauses itself the moment the pause button displays on the stage (no matter where I place it in the timeline). I'm not pressing it or anything, it just initiates the cpCmndPause function and disregards all the others I have set. From there the conditional sequences are rendered useless as the video is already paused even though I didn't press the button. I've verified this happens anywhere I try to use the cpCmndPause function.
    I am running Captivate 6.1.0.309 on Mac OSX 10.8.2. I've tested the HTML5 output in Chrome and Safari with the same results. I did see a thread regarding a patch install (for 6.0.1xxx) that resolved some issues, but this appears to be an earlier version of what I have installed so this should have been resolved with my install?
    Please HELP!

    So, was this issue NOT resolved with the patch, or is this an entirely new/different issue?
    It seems as though this functionality is pretty basic, so I don't understand why this is a restriction with HTML5 output? Please advise, if there are restrictions with advanced actions that are not noted in the HTML5 limitations documentation, then they should be.
    Thank you, I too have a client deadline and have purchased this subscription based on the documentation Adobe has provided about the application's ability to publish to this new format.

  • Outgoing calls not working on iphone 4S after upgrading to ios 6.0.1

    outgoing calls not working on iphone 4S after upgrading to ios 6.0.1.
    It always says call back ...
    incoming is working
    i tried number of sim cards from different networks but same issue
    tries resetting network settings but it also didnt worked

    Just counter-check the following settings.
    1. Settings>General>Set Side Swith To: Rotation Lock
    2. Make sure side switch is not in lock position
    3. If necessary do a reset a few more times

  • Calling not working

    I continuously try calling and getting called by my friends who live across the state, only to have the call not work for me. I don't get any ringing or the pop-up window, it just shows me that they are in a call. When I do try to join, it sits there for approximately 30 seconds trying to connect and then kicks me out of the call. I have reset Skype, I have checked for updates; I have the most recent one, I'm up to date. They all have no problem calling with each other but I cannot join or make calls. Oddly enough, there is only one person I can call or get calls from out of our group, but I don't receive a notification unless it's from her. I have tried calling echo and it works every time but not with my friends. Please send help or something to try to fix this problem, it is making Skype unuseable. 

    Glad we found a workaround. On which network and in which country are you roaming? And who is your home network operator?
    This would help Nokia to investigate. And it helps those to find the workaround who find this thread via an search on the Internet.

  • Why do hyperlinks not work in a pdf when it is signed?

    Why do hyperlinks not work in a pdf when it is signed?

    Adobe reader there any payment to be no problems or allow sharing through hyperlinks.
    Dentistas en lima

  • Click to call not working with Firefox 31 in Windo...

    Hello All,
    I have a problem with Click to Call in my new computer.
    Windows 8.1
    Skype 6.20.0.104
    Click to call 7.3.16540.9015
    Firefox 31
    Click to Call not working with Firefox.
    With IE11 it ok.
    When I directly copy the URL "skype:+48xxxxxxxxx?call"  into address field of my Firefox, then automatically opening Skype with only 1 window- contacts, but not opened window with call phone, and not started to call.
    When I do this same in IE11 , Skype opened 2 windows ( contacts and call phone) and start call to phone number.
    I don't know why. because in my second computer ( this same Firefox, Skype, click to call) but Windows 7, Click to Call working with Firefox.
    Please help me.
    Maybe someone have a solution ?
    Best Regards
    Jarek
    ps. Sorry for my english

    Sounds that you have installed a Firefox Beta release and thus are on the beta update channel, see Help > About.<br />
    The Beta update channel receives an update twice a week.
    You need to install the current release to switch the update channel to release.
    Download a fresh Firefox copy and save the file to the desktop.
    *Firefox 27: http://www.mozilla.org/en-US/firefox/all.html
    If possible uninstall your current Firefox version to cleanup the Windows registry and settings in security software.
    *Do NOT remove personal data when you uninstall your current Firefox version, because all profile folders will be removed and you lose personal data like bookmarks and passwords from profiles of other Firefox versions.
    Your bookmarks and other personal data are stored in the Firefox profile folder and won't be affected by an uninstall and (re)install, but make sure that "remove personal data" is NOT selected when you uninstall Firefox.

  • Employee photo is not Displaying on the PDF form

    Hello Experts,
      We have a static form and passing the form data and photo repository URL (Used FM to get the URL of the photo 'HRMSS_RFC_EP_READ_PHOTO_URI' ) to the form.  And all these sent to ADS for made complete form.
    But we  are facing the probelm that Photo is not diplaying on the form. We have found that Photo URL is not worked priviously
    now made the changes in OAC0 and working fine. But the photo is still not showing  on the form.
    Can anybody help us
          Logic to call the PDF Form
      CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name     = lc_formname
        IMPORTING
          e_funcname = ld_fm_name.
    *Function to open form processing
    Set output parameters and open spool job.
      ls_fp_outputparams-nodialog   = lc_x.
      ls_fp_outputparams-getpdf     = lc_getpdf.      "'M'
      ls_fp_outputparams-connection = lc_connection.  "'ADS'
      ls_fp_outputparams-bumode     = lc_bumode.      "'M'.
      ls_fp_outputparams-assemble   = lc_x.
    ***Function module to open the Spool Job
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = ls_fp_outputparams
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 4
          OTHERS          = 5.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Regards,
    Raj

    Image of Employee
          CALL FUNCTION 'HR_IMAGE_EXISTS'
            EXPORTING
              p_pernr               = wa_itab-pernr
            IMPORTING
              p_connect_info        = p_connect_info
            EXCEPTIONS
              error_connectiontable = 1
              OTHERS                = 2.
          IF sy-subrc = 0.
            CALL FUNCTION 'SCMS_DOC_READ'
              EXPORTING
                stor_cat              = space
                crep_id               = p_connect_info-archiv_id
                doc_id                = p_connect_info-arc_doc_id
              TABLES
                access_info           = lt_infos
                content_bin           = lt_image_bin
              EXCEPTIONS
                bad_storage_type      = 1
                bad_request           = 2
                unauthorized          = 3
                comp_not_found        = 4
                not_found             = 5
                forbidden             = 6
                conflict              = 7
                internal_server_error = 8
                error_http            = 9
                error_signature       = 10
                error_config          = 11
                error_format          = 12
                error_parameter       = 13
                error                 = 14
                OTHERS                = 15.
            IF sy-subrc = 0.
              READ TABLE lt_infos INDEX 1 ASSIGNING <fs_info>.
              IF sy-subrc = 0.
                CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
                  EXPORTING
                    input_length = <fs_info>-comp_size
                    first_line   = <fs_info>-first_line
                    last_line    = <fs_info>-last_line
                  IMPORTING
                    buffer       = l_employee_photo_content
                  TABLES
                    binary_tab   = lt_image_bin
                  EXCEPTIONS
                    failed       = 1
                    OTHERS       = 2.
                IF sy-subrc = 0.
                  wa_itab-pic = l_employee_photo_content.
                ENDIF.
              ENDIF.
            ENDIF.
          ENDIF.
          MODIFY itab FROM wa_itab.

Maybe you are looking for

  • Is there a way to display again the description field by clicking on the gold star near the url (useful to type memos about this site)?

    In the previous versions of Firefox, when you click on the star near the url, you can add this website on your favorites. Another click and you can edit some fields about this bookmark, like the url, the folder, etc... But with FF17, the Description

  • How Can I Print A Unique Number on a Series of PDF documents?

    I have a weird question that I could not find an answer for via search previous questions. I essentaily have a PDF flyer that I want to print X copies of (where as X is a number, 50, 150, whateve amount I need at the moment). I want to have a unqiue

  • Ipod mini battery change

    Can someone walk me through changing a battery to an Ipod mini? Is the battery something that I can buy at a store near me? Is it something i can do on my own, or do i need to send it somewhere? Thanks for any help/information/guidance you can give m

  • BW APD tab delimited file

    Hello, i have to put in as a source a tab delimited file - can nothing do about it, because our report generates it this way. So I have no idea, how to enter kind of \t into the file component delimiter tab. I can enter some 1 char things like ",", "

  • Certain PDFs cause Mail

    Hi Everyone, I have been having an issue, along with several colleauges in my department that a certain type of Adobe PDF causes Lion 10.7.2 to crash when switching from the message or opening it in MacOSX mail or in Preview.  These PDFs are are sent