Populate Default Dynamic Filename In Adobe Form (On Click of Save in Menu) - SAP

Hi,
We have a scenario in which we want to populate the file name dynamically in Adobe form integrated in SAP Webdynpro.
Scenario - 
A adobe form has been intergrated in the SAP webydnpro application which opens the form in Web Browser (IE).
There is a save button which is part of standard adobe form menu and on click of that save button (circled - 1 in image )  the name of the form ( i.e techincal name of adobe form created in SAP {ZTESTSS} ( circled - 2 in image ) appears.
We want to change the default name to (employee_date_time ) on click of save.
We have found a approch by using the folder level javascripts (http://forums.adobe.com/message/2266799#2266799%232266799).
In case we use folder level scripts "where should we write the JavaScript code in the Adobe Form to trrigger the this script on click of Save Button (in the menu)?"
Also is there any other apporch which does not require folder level javascript as its a security issue also we need to maintain in all the user systems.
Please let me know the approch to address the issue.
Thanks .
Tausif

Hi,
you can't change the behavior of the save button in the browser nor in Reader/Acrobat.
You can add a custom button within your form which calls a custom script from a folder level script using the browserForDoc method.
The browseForDoc methos is the only one whcih can change the name in the saveAs dialog.
Here's an example., you can run from Acrobat console.
You need to combine it with the solution from the other thread to make it work with your form.
http://forums.adobe.com/message/2266799#2266799%232266799
var oRetn = app.browseForDoc({
    bSave: true,
    cFilenameInit: "MyForm.pdf",
    cFSInit: "",
if (typeof oRetn !== "undefined") {
    this.saveAs({
        cFS: oRetn.cFS,
        cPath: oRetn.cPath,
        bPromptToOverwrite: false

Similar Messages

  • Merging of cells of a dynamic table in adobe form

    Hi,
    I am trying to Merge 2 columns in a dynamic table in adobe form.The requirement is to merge column 3 and column 4 if column 4 is empty. I used the below javascript code in both "Form ready " and Initialize event of the row.
    if (this.Cell4.rawValue == " ")
    this.Cell3.colSpan = "2";
    this.Cell4.presence = "hidden";
    Note : Since above code was not working , i used the below code in my subform also but it did not returned desired output.
    if(Table22.Row1.Cell1.rawValue == " ")
    Table22.Row1.Cell3.colSpan = "2";
    Table22.Row1.Cell4.presence = "hidden";
    The problem is that in my dynamic table , its the second row where the requirement is fulfilled ie in the 2nd entry of my table the column4 is blank (the exact row number might change depending on input data).
    is there a way to loop in the dynamic table and check if column 4 is empty for a particular row.
    the above code does not help to fulfill my requirements. kindly help.
    Thanks
    Aditi

    Hello Aditi priya,
    Hope you are doing good..
    Please go through my recent blog..
    http://scn.sap.com/community/interactive-forms-by-adobe/blog/2015/01/02/merging-internal-table-cells-dynamically-in-sap-adobe-forms-using-java-script-code
    I hope you will find all answers from this blog..Reward if helpful...
    Thanks & Regards,
    B Raghu Prasad

  • Multiple images into a subform in a dynamic non-interactive adobe form

    I want to convert a set of images into a PDF (one page for each image) with Webdynpro. I'm trying with a non-interactive adobe form.
    I followed the tutorial "Dynamic Non-Interactive PDF Form".
    I've got a multiple Context node: 'Images' with a string attribute 'url' for each image.
    In the form, I've created subform1, and subform2 within. I put an image field into subform2, setting its url to: $record.Images[*].url
    and its script to: this.value.image.href = xfa.resolveNode(this.value.image.href).value;
    It doesn't work.
    If I add a field into subform2 binding it to url attribute, I can see some lines with the correct path for each image, but the image isn't displayed.
    It works with a single dynamic image in the page. What am I doing wrong?
    Regards
    Anibal Pozo.

    No. It's form scripting. In any case I'm working with Webdynpro Java.
    I tried this code in table 'initialize' event.
    for int=0 upto $record.nImages do
    Table1.Row1[int].ImageField.value.image.href = $record.Images[int].url;
    Table1.Row1[int].Cell4.value.#image.href = $record.Images[int].url;
    endfor
    Cell4 is a static image.
    In 04SP9, it show always the same image in the image field (first column), and alternating image in cell4 (second column).
    In 04sSP6, it shows always the same image in all the rows in both columns.
    Any idea? I didn't find any OSS related.

  • Dynamic Text in Adobe forms

    hi all,
    I am working o adobe forms, i have to print a paragraph text which has both dymanic and static elemets in it. By putting all the text in a static text it works fine, but allignment does not happen properly.
    do we have something like  &.....& we have in smartforms.???
    I saw in a example in which  the variable was used  as  { } and that was dynamically filled at run-time... but i am not able to do  the same...may be i am missing some settings or something...
    Any help will be appreciated....in this regard.

    hi
    Check this
    Difference between Smart Forms and Adobe Form
    Re: Smart Forms & Adobe Forms
    Adobe forms
    /message/4983958#4983958 [original link is broken]
    Re: adobe forms
    adobe forms
    adobe forms
    adobe forms

  • Dynamic image in Adobe Form

    Hello experts,
    I have created a form with the transaction sfp and want to bind in an image. This image has to be dynamic, so that it can be changed, if necessary.
    Is it possible to have an image in a structure and this structure in the interface of the adobe form in sfp?
    The structure will be part of a web dynpro for abap context. So I will create the dynamic in the web dynpro component.
    Can someone help?
    Thanks a lot!
    Best Regards
    Ingmar
    Message was edited by:
            Ingmar Kroll

    Hi,
    The moment i make my context element of type BINARY ,
    the form does not display.
    It says "Failed to process request"
    Any suggestions?

  • Default email subject for Adobe Form from Netweaver Guided Procedure

    Hi everyone.
    When we generate an Adobe form from a Netweaver Guided Procedure, a default subject of "Interactive Form {xxxxxxxx}" is used where xxxxxxxx is the Process ID of the Guided Procedure.  Is this default subject configurable?  Where can I change it?
    If we define a custom email template for the form,  the subject of the email becomes our custom subject concatenated with the Process ID.  Where is it defined that the Process ID must be included in the email subject?
    Thanks,
    .. Craig

    Hello,
    I have no experience regarding the table of pictures, but you could try a workaround if you don´t insist of displaying the images. You could attach the pictures as attachments (you know, the little attachments icon on the left in your Reader). The ABAP coding for this can be found in SE38 FP_* and when you check the descriptions you should be able to find the one working with the attachments.
    Would be better than nothing I guess,
    Otto

  • Dynamic call for ADOBE FORMS

    Hi ,
    I want to call Adobe forms with dynamic table .
    Some one please explain me how I can implement this in ADOBE interface ?
    Any Pointers or Help higly appreciated.
    Thanks
    James

    hi
    Check this
    Difference between Smart Forms and Adobe Form
    Re: Smart Forms & Adobe Forms
    Adobe forms
    /message/4983958#4983958 [original link is broken]
    Re: adobe forms
    adobe forms
    adobe forms
    adobe forms

  • Populate Drop down values to Adobe forms

    Hello,
    I am in the process of developing the HCM forms for PCR's. This is using old technology. How can I pass values to the Adobe forms based on certain condition selected in previous screen. For eg. Based on Position selected, I should have a certain value in Drop down pre-selected on the next screen and when the user does a drop down a list of the values should be listed. Where should do the coding for the subsequent drop down values?
    Appropriate points rewarded.
    Prasad

    Here a change in the question below. Based on Position selected, I should have a certain value in Drop down pre-selected on the next screen from table IT1008
    and when job is selected drop down from table T500P should be listed. Does this need to be handled in badi or in the Adove form scripting?
    Thanks
    Prasad

  • Adobe Form output cropped when sent directly from SAP to printer

    I have created an Adobe Form (not interactive) that looks perfectly OK when previewed in Adobe Acrobat viewer but when printed blank margins of 4-5 millimeters are applied on all 4 paper edges. The form was designed with a coloured frame around it but the margins effectively remove most of the frame. The form content is being cropped instead of being compressed inside the margins.
    The form has been created with LiveCycle Designer via SAP transaction SFP. I am generating the form from an ABAP program
    When the form is printed from the Adobe Acrobat viewer I have the option to set Page Scaling to 'Fit to Printable Area'. This makes the form content being compressed inside the blank margins and the coloured frame remains intact. If I leave the Page Scaling setting as 'None' the output is being cropped as described above.
    The real problem occurs when I want to print without previewing first. I need to do that since previewing enables the user to skip printing and the application must know if the form has been printed or not. I have so far found no way to make the printer print on the paper edges or fit the content to printable area. Is there some setting in the output parameters than handles this?
    Also there is a need for duplex printing when sending form directly to printer. On help.sap.com there is information about duplex print for SAPscript and Smartforms but nothing for Adobe Forms.
    Here is an excerpt of the ABAP code used for printing the Adobe Form:
      DATA: zs_outparams TYPE sfpoutputparams,
                 z_fmname     TYPE rs38l_fnam.
    Set some print parameters
      zs_outparams-nodialog = abap_true.        "No user dialog
      zs_outparams-device   = 'PRINTER'.          "Output device
      zs_outparams-dest     = z_pdest.              "Printer name
      zs_outparams-reqnew   = abap_true.        "New spool request
      zs_outparams-reqimm   = abap_true.        "Print immediately
    Open print job
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = zs_outparams
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 4
          OTHERS          = 5.
      IF sy-subrc <> 0.
        RAISE print_error.
      ENDIF.
    Get FM name for form
      CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name     = 'Z_TEST_FORM'
        IMPORTING
          e_funcname = z_fmname.
    Call FM to print form
      CALL FUNCTION z_fmname
        EXPORTING
          i_header       = t_data_for_form
        EXCEPTIONS
          usage_error    = 1
          system_error   = 2
          internal_error = 3
          OTHERS         = 4.
      IF sy-subrc <> 0.
        RAISE print_error.
      ENDIF.
    Close print job
      CALL FUNCTION 'FP_JOB_CLOSE'
        EXCEPTIONS
          usage_error    = 1
          system_error   = 2
          internal_error = 3
          OTHERS         = 4.
      IF sy-subrc <> 0.
        "Ignore
      ENDIF.
    Please advise on how to
    -  avoid the content cropping
    -  enable duplex print
    when sending Adobe forms directly to the printer
    Thanks very much!
    Bernt Evensen

    Thanks for your answer, Ramachandra!
    However I need some more specific information to solve this.
    Which printer layout settings are relevant for the handling of margins and duplex printing for Adobe Forms?
    I have not set up the printer myself but when talking to the printer guy which settings should I recommend him to look at?
    I can see in transaction SPAD that there are settings specific to SmartForms but there is nothing said about Adobe Forms. Is there some way to make Adobe Forms related setting appear in SPAD for a device type?
    Maybe my problem is not related to the printer device settings but rather to the way the printer is being called. When printing duplex we will have to override the default settings of the printer anyway.
    Function module FP_JOB_OPEN has a parameter structure of the type SFPOUTPUTPARAMS. Which fields in this parameter structure are to be manipulated to get duplex print and output fitted to page size?

  • Send Adobe form by email on save of PO

    Hi All
    I want to send PO output as abode form to vendors as soon as the PO is created and saved. I have created new output message type, new adode form for PO output. Do I have to create new program as well? So that I can put in new output type along with new form (NACE). Can any one take me through the procedure?
    Thanks in advance
    Sunny

    Hi
    Thanks for your reply it was helpful.
    I am now able to call Adobe form in PO print preview.
    But unable to send email on SAVE action of PO in ME22N. In the same output message type NEU I have added Transaciton medium as External Send. On save it is showing status as successful in Message buttion but email is not send. Can you tell me where I am wrong?
    Regards
    Sunny

  • Dynamic images in Adobe forms

    Hi,
        Can anyone tell me how can i display images from a URL , Adobe doesnt support href property from version 8.1...

    Try this,
    Re: Image field dynamic display employee photo
    Thanks and Regards,
    Siva

  • Dynamic Headers in adobe form

    Hi,
    I want to display dates as headers  in my form.How can I implement this?
    I am using this form in a ABAP WD application.
    I was able to get statis text on multiple pages but dynamic text is only appearing one time.
    I have created a new content area and page2 I have created a subform to hold header descriptions.
    I tried to bind it to a table which holds date values.headers are comming only in 2nd page there after they are not showing up.
    Rgds
    Praveen
    Edited by: PRAVEEN s on Apr 1, 2009 12:11 AM

    Hi Praveen,
    I am facing similar problem. Please go thru the below thread if you find time.
    http://scn.sap.com/thread/3205664
    Could you let me know how did u resolve?
    Thanks,
    Swami

  • Subform dynamic position in adobe forms

    Hello All,
    I need to place a subform for document totals always at the end of content area. It needs to be after the last printed item and if there is enough space, otherwise jump to the end of next content area (in next page).  Anchor option in layout tab is not available for subforms.
    Please, does anybody knows how it can be realized ? (if technically possible)
    Edited by: Aurelio Bertaglia on Dec 16, 2008 12:04 PM

    Hi,
    Are you displaying your items in a table?Else it will be better if you can elaborate on the scenario.
    Swar.

  • Does anyone know how to get one drop down populate multiple drop downs in adobe form not live cycle!

    I have one drop down that when value selected another drop down is filled with list of choices, and then one of those choices is made another drop down should be populated with some choices.
    ish

    Hi zach317,
    Thank you for visiting the HP Support Forums.  As stated in the thread you have cited, the purpose of this forum is to give feedback or make suggestions on ways to improve the forums.  Should you have feedback on other issues, please contact HP directly using this link.  This is a user-to-user forum, so you'll have to use this link for direct assistance from HP.
    Many members of the community are extremely knowledgable. If you're having an issue you believe the other users in the community may be able to assist you with, please feel free to find the appropriate forum and post your question there. 
    Should you have any further questions or concerns, you can send a Private Message to me or another moderator or admin at any time.
    Thank you!
    Message Edited by SandyD on 11-22-2008 03:03 AM
    Clicking the "Kudos star" to the left is a great way to say thanks!
    When your problem has been solved, accept the solution by clicking the "Accept as Solution" button to help other members in the future!
    Rules of Participation

  • How to set a fixed path while clicking the save button in sap adobe form

    Hi Experts,
    I would like to save a form to the same location but there seems to be no way to set a default folder. Its popup save as dialog box asking when i was save the first time.
    Kindly give the solution to close this requirement.
    Warm regards,
    Satheesh kumar.M

    Hello
    We cannot set the default location in Adobe PDF. Refer below the link confirming that this is a limitation.
    How to save PDF files to a default location (Adobe Reader)
    Please Share your response for benefit of others and assign the Correct Answer (plus any Helpful Answers) to close the thread.
    Regards
    Sandy

Maybe you are looking for

  • RSBBS Jump Query -- Assignment Details

    Hi , I went RSBBS Jump Query --> Assignment Details --> InfoObject is Company Code so I (select type "Variable") --> Field Name I tried both Info Object Name("0comp_code")and Variable of Infoobject "0comp_code" is "ZS_CC" Manual entry variable for ch

  • Unzip files from a folder which is updating regularly using multithreading

    Hi All, I have acode which unzip all the files from a folder .This code picks up all the zipped files at a time and then unzip it and write them to another folder but now my requirement is changed ,suppose the source folder where all the zipped files

  • Logic node keeps quitting

    Im running LP7 on a dual g5 2.7 and a Logic node on a MDD DP 1.25 G4 with 2 gigs of Ram but the node app keeps quitting.Im only using the node on tracks which have only logic au's and fx etc(not a mixture of 3rd party and logic plugs) but logic node

  • Download iWeb site from .mac

    Hello I make most of my iWeb pages (ver 1.1) at home, but sometimes I am at my vacation home. I have iLife on both machines. Can I download the site I have made which is on .Mac to my second computer AND create new pages to be uploaded to .Mac? I hav

  • IPOD touch - volume!!! Help

    Hi, I am getting no volume on my speakers unless i use the headphones, when i view videos on youtube there is no volume, on my settigns i have volume as both. Can someone please help me