Adding javascript to Print Form button

Using the Script Editor, can I convert this javascript so that it will fire on MouseUp on the Print Form button? The Designer file is attached for reference.
newDocName = "";
f1 = this.getField("topmostSubform[0].Page1[0].Last_Name[0]").valueAsString;
if (f1!="") newDocName += f1 + " ";
f2 = this.getField("topmostSubform[0].Page1[0].First_Name[0]").valueAsString;
if (f2!="") newDocName += f2 + " ";
f3 = this.getField("topmostSubform[0].Page1[0].Date[0]").valueAsString;
if (f3!="") newDocName += f3 + " ";
f4 = this.getField("topmostSubform[0].Page1[0].Email[0]").valueAsString;
if (f4!="") newDocName += f4;
newDocName = newDocName.replace(/[\\,\/,\:,\*,\?,\",\<,\>,\|,\,,\n,\r]/g,"");
docPath = this.path+"";
docPath = docPath.substring(0, docPath.lastIndexOf("/")+1);
mySaveAs(this,docPath+newDocName+".pdf");

Hi penny, I did figure it out actually or more so Wazala technical support figured it out. Email them as the answer might be slightly different depending on your circumstances.

Similar Messages

  • Problem with JavaScript in my PDF Form buttons

    I am trying to have my user click on a button in my form on my website and e-mail the form data to me.
    I am using the following JavaScript with my form button:
    this.mailForm(false, "[email protected]", "", "", "Subject", "Message Body");
    Protected mode is off.
    When I use the above statement (whether the 1st parameter is set to true or false), nothing happens – no email gets sent and no mail dialog box appears. If I change from this.mailForm(...) to this.mailDoc(...), I get a mail dialog box but, as expected, it sends the blank form without the filled-in data due to low user privileges.
    How can I send the form data with this.mailForm(...)? (Note that I prefer to use this.mailForm(...) rather than mailto:(...) because this.mailForm(...) supposedly allows me to e-mail the form without user interaction.)
    -- Don

    Thanks for responding.  I have been using “Submit a form” in the Mouse up event.  I had that operation do a mailto: and it worked, but required user interaction on the part of the web page visitor.  I have successfully created an equivalent JavaScript including:
        var url = "mailto:[email protected]?subject=mySubject&body=MyMessage"; 
        this.submitForm(url, true);
    The above sent the FDF file successfully, but again, it required user interaction.
    Then I tried this JavaScript - as I mentioned in a previous post - after you said to use doc.submitForm():
        var url = "http://mydomain.com/submit_notice.php";
        doc.submitForm(url, false);
    The above script seemed to do nothing (with no error message). Shouldn't it bring up the PHP file in the web browser?
    I have that php file, submit_notice.php, created, but I have not written any PHP scripts to e-mail the FDF file.  I have never written a PHP script to take the posted FDF data and email it, but I have used the PHP mail() function and posted variables.
    As for what I want to happen on the client side after the submit takes place: I simply want the FDF file to go to an e-mail that I specify.  Additionally, I need it to happen without any client interaction on the part of the web page visitor.  I can expect that visitor to have Adobe reader, but no add-ons or protected mode requirement.
    Please give me an example that emails the FDF file without any user interaction.
    Thank you.
    -- Don

  • Print Forms Central form by user?

    I created an online form using Forms Central. I would like to have my users be able to print their form out for their records but it seems there is no way to do this using Forms Central. Seems like there should be a "Print Form" button that could be placed near the submit button. Am I missing something?
    Thanks in advance for you help.

    Hi,
    Anyone from Oracle Forms Team to answer this?
    Regards,
    Ricardo

  • Radio Buttons & Check Boxes Replaced w/ Rectangles, when printing Form w/ Adobe Reader XI (11.0.03)

    Hello.  I need to be able to print a .pdf copy of a completed web page form.  The form is completed by entering data into text boxes and text areas, and selecting various radio buttons and check boxes.  When the form is complete, it is saved, which converts the form into a .pdf file.
    When I open the saved .pdf file, it looks completely normal.  I will then select the print button, which is built into the display window for the form.  The printed form will appear, but the radio buttons and check boxes will have been replaced with the outline of rectangles.
    This is what the source form looks like, before printing:
    This is what the printed image looks like, after printing.  NOTE: All check boxes and radio buttons (and the data that they contained) are gone:
    I am not sure if this is a setting that needs to be changed in Adobe REader XI, or something else.
    Please let me know what you think it might be.
    Thanks,
    Rick

    Michael,
    It is a web/html form.
    The forms are built and used inside of a software program called WebEOC.
    WebEOC is used to allow for sharing information between different
    emergency response entities (like a State, and the counties within the
    State).
    The form I am working with was built with a web page editing program.  The
    form uses html, xhtml, xml, CSS and javascript.
    A for user would launch the WebEOC form (after logging into WebEOC), and
    they would fill out the form.  Text goes into text boxes and text areas,
    dropdown menu selections are made, and some information is entered using
    radio buttons and check boxes.
    When the form is complete, it is saved within the WebEOC database, as a
    .pdf file.
    You can then open the .pdf file in order to see the form, in it's
    completed state, as a pdf.
    When I try to pint this pdf file of the completed form, the check boxes
    and radio buttons are replaced with rectangles.  Any selections made in
    the radio buttons or checkboxes is lost.
    Thanks,
    Rick
    [signature removed]

  • Very Urgent! Print Report output to local printer on button click in form

    In Sales Order Form there is a print receipt button. In current situation On Clicking the 'Print Receipt Button' it submits a XML Publisher report(PDF output) to the concurrent manager. Currently to print that report i need to go view--> requests--> view output and then print. According to my new Requirement i need to print that report directly to local printer on one simple Print receipt button click in form.
    I am trying to call the printers on server using custom.pll. The report is running successfully but it is not printing output to the local printer. I need to print the report to the local printers based on responsibility. Local printers are available on apps server. Can anyone help me on this issue ASAP.
    Is it possible to print the document using custom.pll? Is there any other alternative to print the report on simple button click in form.
    Environment: Apps 11.5.10.2, Forms 6i
    Here is the code that i am using in my custom.pll.
    if (v_form_name = 'OEXOETEL' --and v_block_name = 'LINES_SUMMARY'
         and name_in('parameter.ACTIONS') = 'PAYMENT_RECEIPT' )THEN
    l_organization_id := Name_In('PARAMETER.OE_ORGANIZATION_ID');
    l_order_header_id := Name_In('ORDER.header_id');
    select to_number(oe_sys_parameters.value ('SET_OF_BOOKS_ID')) into l_sob_id from dual;
    xml_layout := FND_REQUEST.ADD_LAYOUT('XXAFP','XXAFPOEXPMTRCRTF','en','US','PDF');
    select a.profile_option_value
    into v_printer_name     
    from fnd_profile_option_values a
    , fnd_profile_options b
    , fnd_profile_options_tl c
    , fnd_user fu
    where a.profile_option_id = b.profile_option_id
    and c.profile_option_name = b.profile_option_name
    and fu.user_id (+) = a.level_value
    and c.language = 'US'
    and c.user_profile_option_name='Printer'
    and a.level_id = 10003 ;
    if (FND_SUBMIT.SET_PRINT_OPTIONS(v_printer_name, 'Portrait', 2, TRUE, 'N'))
         then
    l_new_request_id := FND_REQUEST.SUBMIT_REQUEST('XXAFP','XXAFPOEXPMTRC',
    null,null,FALSE,l_sob_id,l_organization_id,NULL,NULL,l_order_header_id,
    chr(0), '', '', '', '', '', '', '', '', '', '',
    end if;
    fnd_message.set_string('Request Submitted for Custom Payment Receipt. Request ID is '||l_new_request_id);
    fnd_message.show;
    copy('NULL','parameter.ACTIONS');
    IF (l_new_request_id = 0) THEN
    FND_MESSAGE.RETRIEVE;
    FND_MESSAGE.ERROR;
    else
    l_commit_result := APP_FORM.QuietCommit;
    END IF;
    I need to complete this requirement immediately. Can anyone suggest me better ways in doing this.
    Thanks,
    Srinivas

    I solved this problem myself using shell script through custom.pll. I wrote shellscript and called that shellscript through FND_REQUEST.SUBMIT_REQUEST.It printed 2 copies to local printer.

  • Jsf+javascript for form button enable/disable

    I have a page that has checkboxes and input boxes on it. I want the submit button disable when the page initially loads, and then upon making any chages to the form fields, enable the submit button. I have the javascript working, but the form is actually not going to my submit method in my backing bean. Here is my javascript:
    function enableSubmitButton(form, inputElement) {
        var formId = document.getElementById(inputElement.id).form.id;
        var submitButtonId = document[formId][formId+":submitButton"];
        submitButtonId.disabled = false;
        submitButtonId.setAttribute("class", "inputButton");
        submitButtonId.setAttribute("className", "inputButton"); // for IE which does not recognize "class"
    }Here is an example of a checkbox:
    <h:selectBooleanCheckbox id="chkChannelEmail"
         value="#{services.emailSubscribed}"
         rendered="#{services.renderEmail}"
         onclick="displayRequiredFields(this, 'chkChannelService); enableSubmitButton(this.form, this);">
    </h:selectBooleanCheckbox>and here is my command button
    <h:commandButton type="submit" value="Submit" id="submitButton" action="#{BackingBean.submit}" styleClass="inputButtonDisabled" disabled="true" />It seems to be updating the disabled value, because when my page loads up, i can alert out the disabled value, and it is true, and if I click on a checkbox, it alerts out that the disabled value is false, but submitting my page doesn't actually work.
    Thanks!!
    Edited by: jrthor2 on Oct 16, 2009 3:10 PM

    The commandbutton won't be invoked as long as the disabled attribute still evaluates to 'true' in the server side. So you need to solve this the other way. Let the disabled attribute for example depend on a request parameter or pass a hidden input element which notifies JSF that the disabled attribute should evaluate to 'false' and so on.
    The same story applies on the 'rendered' attribute by the way.

  • Javascript to print slide AND hide playbar

    Hi all,
    I know I can use the simple javascript window.print() to print a slide, but when I do that it also prints the print button and playbar. Is there a way - I'm sure there is, I just don't know how.... to hide the playbar, hide the print button, print the page and then show the playbar or a continue button again? I want my users to be able to print just the slide content.
    Oh, running CP7 64 but on a windows 8 machine.
    Thanks for the help!!
      Lori

    Very unusual, Here are some more questions to help nail down the issue.
    Are both date text lines in form fields? What are the form field names? i.e. is this an exact copy of the existing form field? What are the settings that differentiate the two fields, i.e. Rotation, etc.?
    Could the script be somehow getting run twice?
    On another note, why are you naming all of the fields differently. It looks like they all get the same info. If this is true then you could simplify the script by making them all the same name. You would not need the loop to apply the date text.
    Thom Parker
    The source for PDF Scripting Info
    www.pdfScripting.com
    The Acrobat JavaScript Reference, Use it Early and Often
    http://www.adobe.com/devnet/acrobat/

  • Spry Validations not working javascript:Spry.Widget.Form.destroyAll() in popup

    iam using spry to validate controls in a popup.in that
    validations are working fine but the problem is when we click
    cancel button also thse validations are firing...
    i am using
    javascript:Spry.Widget.Form.destroyAll() to destroy
    validations...but it is not working.
    when we click on cancel button how to destroy the validations
    as well as hide the popup...
    can anyone help me...

    Thanks! (While I'm REALLY not comfortable with code yet (working on it :-) I atleast understood that it was a PHP issue (yay).
    Studied the code in the examples in the book. And added:
    <pre>
    <?php if ($_POST) {print_r($_POST);} ?>
    </pre>
    It worked.  (I'm local testing, with no connection to a database yet. Just trying to get the basic pages to work first.)
    Hopefully the more I work on all of this, the more I'll begin to "get it"! And I'm almost up to the Chapter on PHP. So, I'm hoping to will become clearer as I read on.
    Thanks for the help in pointing me in the right direction!!!
    -- Jami

  • Issue in Print Form

    Hi,
    I have created a print form using Adobe LiveCycle designer 7.1 on SAP ECC 6.0 version. The requirement is to mask first 5 characters of a text field (SSN) on the form while displaying but when printed it should print whole SSN.I have used Javascript option to run at client. In the initialize event, I am changing the value(rawValue) to the masked one(for eg. XXXXX9999).In the prePrint event I am passing the correct value of SSN and again in the postPrint event I am changing the value of SSN to the masked one.The form type is set to Print form and Dynamic PDF.I have created a custom program in SAP to creae PDF and download on to the local machine.
    Now the issue is...
    1)When I opened the downloaded PDF and pressed the print button, the whole document goes blank. This is happening in Adobe Reader 7.0.9.
    2) It works as expected with Adobe Reader 8.1.1 but when I close the document it gives error message like - instruction 0XX.. could not be written to memory.
    I have also tried to hide to set the presence attribute to "visible" in prePrint event and to "invisible" in postPrint event instead of changing the value of the field but same issue is happening with Adobe Reader version 7.0.9.
    I need this to work on any version(7.x or 8.x) of Adobe Reader. Please help.
    Thanks,
    Raghu

    Dear,
    print preview and physical printout are two different things.
    PrintPreview:
    The data stream will be sent to the frontend and rendered with windows-fonts etc (for backend prints a simulation).
    Printout:
    Frontend: You need a printer, that maps the character, you have to use SAPWIN or SAPWINCF when using cascading fonts. The rendering will be done in the windows spooler.
    Backend: Your printer needs also a mapping (look like something with UTF8). Also the printer needs the fonts installed because the rendering will be done in the printer!
    If you use the pdf-printer in SAP, you need to upload all necessary fonts (TTF) for the pdf-composer. Also you need a unicode pdf printer for that.
    Regards,
    Christian

  • Print screen button causing project to advance

    I have added some JavaScript to a button in my captivate project using On success > Execute JavaScript > Script Window > window.print()
    This works fine to print the screen, however, clicking the button also makes the project advance to the next slide.
    Any tips on how to acheive the print screen functionality without advancing the slide would be greatly appreciated. We intend to publish using HTML5 output only.
    The majority of elearning projects we work on require a print screen button, it would be a very useful feature were it to be added to Captivate without the need to dabble with JavaScript.
    Many thanks in advance.

    Curious about this one, Lilybiri
    I know you are the queen of actions, but why would you choose to create an action as opposed to simply clearing the "Continue" option here? That would seem the simpler approach.
    Cheers... Rick

  • Internal table in adobe print forms

    hi there,
    in my WDA-application i use adobe print forms for output.
    i use a table for displaying an internal abap-table.
    in the formular-hierarchy it looks like this:
    table2
    --> line1
      --> cell1
      --> cell2
      --> cell3
    my problem is that i am a complete newbie in scripting in print forms.
    here is what i want to do:
    if cell1 = 'X' then the text in cell2 has to be bold or underlined.
    Can someone provide me with a code-example either in javascript or formclac???
    thx
    David

    thx for answering.
    first i tried the following code:
    data.T1.Tabelle2::ready:form - (JavaScript, Client) -
    this.Zeile1.Zelle2.font.weight = "bold";
    this.Zeile1.Zelle2.font.underline = "1";
    the result is, that cell2 is bold and underlined but only the first row of the table. i want all cell2 in all rows bold and underlined.
    then i tried this:
    data.T1.Tabelle2::ready:form - (JavaScript, Client) -
    if(this.Zeile1.Zelle1.rawValue == "01"
    this.Zeile1.Zelle2.font.weight = "bold";
    this.Zeile1.Zelle2.font.underline = "1";
    nothing happens and i dont understand why. The visible value in Zelle1 is "01"!

  • Manipulation of Print form after generation

    I am using Adobe Forms as print forms within the SAP ERP 5.0 without WebDynpro.
    I have requirement that I need to manipulate the generated PDF file by adding additional attachment files to the PDF generated by the function module. Technically this seems to be possible by combining the different APIs as follows:
    1. Setting the output parameter GETPDF to 'X' while calling FP_JOB_OPEN and
    2. Getting the binary file from the /1BCDWB/FORMOUTPUT object
    3. Then setting the binary to the IF_FP_PDF_OBJECT object via the SET_DOCUMENT method
    4. Adding the additional attachments via SET_ATTACHMENTS method.
    Is there smarter way to do this so that the attachment could be already added via the function modules?
    Is there any linkage between the function modules FP_* used for print forms and the classes  IF_FP_PDF_OBJECT that provide the ADS services?

    It seems that SAP has not even implemented the method IF_FP_PDF_OBJECT~SET_ATTACHMENTS in WebAS 6.40. It simply throws exception without doing anything.
    So it seems that the whole scenario is not even possible in NetWeaver 2004/Basis 6.40.
    On the question on why:
    In our scenario we need to attach additional PDF files (generated in external systems or scanned paper documents) to the print form produced by SAP. It seemed that the PDF attachments would provide solution for combining these external files with the form.
    The other alternative solution, that I have considered, is to "embed" the external documents to the form using the Image Field element in the layout. This is not really an option, because Image Field supports only BMP, JPEG, GIF, PNG and TIFF - NOT PDF. Secondly, it's really designed for embedding fixed-size images to the form. In our case the scanned document can be 10 pages long.

  • Shipping customized BOL report needs to be printed from 'Print BOL' button

    Hi All,
    We have requirement whereby
    Our customized Bill of Lading (BOL) report should be printed when ‘Print BOL’ button is clicked on shipping transaction form. Can this be achieved with any setup change? (we would like to check this option before going for customization)
    Our customized BOL report is ready and as of now we print it by manually submitting concurrent request. As of now clicking ‘Print BOL’ button submits Oracle seeded/standard BOL report.
    (Oracle EBS R12.1.3)
    Thanks
    SidK

    This is the Acrobat.com forum.  Your question will have a much better chance being addressed in the Acrobat SDK forum.

  • Installing and Configuring Adobe Document Services For Print Forms

    Hi,
    I want to use Adobe Document Services,for Print Forms Scenario,on ABAP side.
    I installed the Adobe document Services following the steps in the Installation Guide.I obtained the Credentials file and supplied it during installation.
    Then i followed the steps in the configuration Guide,except for the SSL connection part, as i have chosen Basic Authentication .
    The Web Service is running and on opening the home page,when i test the method rpData,it asks for Username and password,when i supply my username password it says, user does not have rights to method rpData.
    I even tried using J2ee Admin rights,user with SAP_ALL rights, and ADS_AGENT.
    When i test the service from ABAP side,using the RFC destination i created on Client 400,from where i want to use it, the test shows status code OK.
    When i test a form through transaction SFP,it asks for  USERNAME and password,which i tried as my USERID,ADMIN ID with SAP_ALL rights, even with the users i created during Configuration like ADS_AGENT, ADSUser etc.
    Our J2ee Engine is installed on Client 200,i installed the ADS on Client 200 and created the users ADS_AGENt(service user with role SAP_BC_FP_ICF) and ADSuser on Client 200.
    I also activated the ICF services and created the destination for the destination service using Visual Administrator.
    My Issues:
    1)To test the Webservice,what USER ID password needs to be supplied?Do i need some Special role or rights?
    2)During Configuration ,when i create a USer in SAP Web AS ABAP for Basic Authetication,after creating ADSCallers Role and assigning to ADSUSer ,in Visual Administrator,after selecting com.adobe/AdobeDocumentServices*AdobeDocumentServicesAssembly.jar ,under ADSCallers,i ama ble to see the both the users ADSUser(user in j2ee Engine for basic authentication ), and ADSUSER (user type system in ABAP),are visible,
    When try to add ADSUSEr by choosing ADD,from USER Tree , it doesn't do so.So i Added the ADScallers group instead,thus indirectly both users added.Can this be a Problem?
    3)What else do i need to do?Am i missing something?
    Please help.
    Regards,
    Siddhartha

    Hi all,
    I am having an issue in which my ecc could not use properly the ADS on the EP.
    I could properly execute FP_PDF_TEST_00 from se38 transaction which gives the correct version no of ADS.  Also I am able to get the correct version no by giving username and password at http://<J2EE_host>:<J2EE_port>/AdobeDocumentServices/Config  which seems like the ADS is working properly in EP.
    However when the abaper is trying to run his form using spf like ZFORM_VENDOR  it is showing error like
    " Error during activation Message no. EU837 "
    Can you please shed some light on what all steps I need to check to ensure that ADS is working properly ?

  • In firefox I am unable to submit information via form buttons. The buttons are present and clickable but nothing happens once they are clicked.

    I am having trouble submitting information via form buttons. I click on the button but nothing happens. It isn't site specific and is a problem that has only started to happen recently. I have uninstalled firefox and reinstalled it without any rememdy. The problem does not replicate itself in Chrome or Internet Explorer. Can anyone advise what maybe the problem? Is it s a javascript setting within firefox that I may have accidentally turned off? Please help.

    Thank you for the help but I found the answer here: http://support.mozilla.com/tiki-view_forum_thread.php?locale=en-US&comments_parentId=601699&forumId=1
    I am pretty sure you had the same diagnosis and solution to start it in safe mode, and if it does work, go disabling each extension one by one until you determine which extension is the culprit.
    Thanks!

Maybe you are looking for

  • How Do I Put my Music File to iTunes Library?

    I already downloaded mp3 music from a website..how do I put it inside iTunes so I can put it into my iPhone? Also how can I make that song into my ringtone? Someone please tell me step by step instruction.

  • Dynamic file name configuration issue

    Hi, My scenario is Idoc to multiple file scenario.. I need to drop 2 files at the target with the file names to be configured dynamically, at present i have used dynamic UDF to drop the files with the dynamic name. but i am getting the output files w

  • Costing sheet and standard cost estimate

    Hi I am trying to use Costing sheet for overhead calculation . But in costing run I am not getting the overhead amount calculated . I created the costing sheet and assigned that to valuation variant . Where from the actual / Plan values being picked

  • Cannot Create ActiveX Componet

    Hi, I have installed FDM and want to configure shared services i.e. in load balance manager,while entering user credentials I am getting the error as 'Cannot Create ActiveX Component'. What could be the error,please advise. Thanks.

  • Configuring Discovere Viewer

    I need to open a custom report instead of using the "Analyze..." link of the report I put in my portal page. I create a hidden link like this: http://<server>:7780/discoverer/viewer?userName=<name>&password=<pwd>&databaseIdentifier=<connStr>&connecti