Issue in adobe forms scripting.

Hi Guys,
I'm trying to create here an Interactive form embedded into a Wed Dynpro Java application. On the Interactive form i simply have a Text Field and two buttons.
On the click of one button, the Text Field should get Invisible, and on the click of the second button the Text Field should be visible again. When in the NWDS, in the Livecycle Designer i try to look from the Preview PDF tab, the functionality works perfectly fine and i get no issues whatsoever. But when i deploy and open the same application in Internet Explorer this functionality does not work. I have tried testing this using IE 7 and also IE 8, along with different versions of adobe reader(8 and 9) but nothing seems to work.
For Button1 to make Text Field invisible i have doen the scripting as below:
Subform.TextField.presence = "hidden";
and, for the Button2 to make the Text Field visible again i have done the scripting as:
Subform.TextField.presence = "visible";
If somebody has any idea, kindly help me find where I'm going wrong.
Thanks,
Abhishek Goel.

Hi ,
Set the property of the interactive form dynamically.
wright the below code in wdDoModifyView()
               if(firstTime){
     IWDInteractiveForm Form = (IWDInteractiveForm)view.getElement("ID of Interactive Form Ui Element");
     Form.setDynamicPDF(true);
Also use the complete path for the visibility setting like if your Text field is under BodyPage->Subform->TextField
Then use
BodyPage.Subform.TextField.presence = "hidden";
Regards
Ravindra

Similar Messages

  • SAP and Adobe Form - Scripting Issues

    Hello experts,
    before i start with the the issue, I would like to describe some functions which we have developed in our adobe form (not interactive Form!).
    We are displaying XHTML Text coming from SAP , in order to load the XTHML into the controls we are calling the following line of code during the initialize event:  
    this.value.exData.loadXML(this.rawValue); 
    We are printing a table which contains 3 position types (SAP DATA)
    Product items
    Groups
    Texts/Pictures (XHTML/Binary Data)
            On each new page a header line shall be printed if the type is product item. This codding is placed inside the layout:ready event:
    data.BODY.HIERARCHY.GS_HIER.DATA.ALTERNATIVE_NODE_TYPE.NODETYPE::ready:layout - (JavaScript, both) 
    var vPage = xfa.layout.page(this); 
    Script.setHeaderline(vPage, this.rawValue, this.parent.FLAG_HEADER_LINE.rawValue); 
    data.BODY.HIERARCHY.GS_HIER.HEADER::ready:layout - (JavaScript, both) 
    var vPage =  xfa.layout.page(this); 
    Script.getHeaderline(vPage); 
    if (Script.gHeader == "X") { 
      this.presence = "visible"; 
    else { 
      this.presence = "hidden"; 
    SCRIPT SECTION: --> 
    var gHeader = "Y"; 
    var level_hier = 5; 
    var new_page; 
    var gPage = 1; 
    arrHeader = new Array(); 
    function setPage(in_page) { 
      gPage = in_page; 
    function getPage(out_page) { 
      out_page = gPage; 
      return out_page; 
    function setHeaderline(in_page, in_nodetype, in_flag_header_line) { 
      if (in_page != gPage) { 
           if (in_nodetype == "1" && in_flag_header_line != "X") { 
                arrHeader[in_page] = "X"; 
      else { 
           arrHeader[in_page] = "N"; 
      gPage = in_page; 
    function getHeaderline(in_page) { 
      gHeader = arrHeader[in_page]; 
    The first functionality was working always pretty good. For making the second functionality available we started calling the Adobe Forms using the Parameter DYNAMIC = 'X'. Unfortunaltey the first functionality is then not working anymore correctly. We have tried to change javascript processing to server side/client side and both, but in the mode DYNAMIC = 'X' it does not have any influence, all javascript is performed at the client and at runtime. The result is that some pdf reader can not see the XTHML texts and we are expierencing some other problems with pictures.
    We need to have both functionalities working at the same time for all readers. I guess this is only possible if the javascript is processed at the server side and the ADS returns a finished/static PDF document.
    Does anyone has an idea how to solve this issue ?
    Thanks a lot,
    Wladimir

    Thanks for the info Juergen. I am still awaiting your blog on secured web services , if you get time please post it.
    @Anil: Please close the thread if the issue is resolved.
    Chintan

  • Performance issue with Adobe forms

    Dear SAP Experts,
    We have the following issue/requirement from our client. The client is on SAP ECC 6.0 - production environment.
    The client is highlighting  performance issue while accessing the adobe forms for HR and FI business process ( both static and interactive ).
                    Examples are
        FI – Invoice Approvals
                    HR – Job Salary Change
    The client is asking us to provide best practices surrounding:
    1.       How to improve the performance of the adobe forms while accessing in SAP.
    2.       Is there any other technology which we can use in SAP to replace the adobe forms which has better performance factor.
    3.       Are there solutions such as webdynpro floor plan manager, UI Fiori which can be alternately used?
    Regards,
    Sakthi

    Hello Priya,
         Adobe forms are easy to develop and much more comfortable than SAP Scripts and Smartforms. Initially they are a bit difficult but once you have your hands on, they are the most simplest things in ABAP.
    Performance in Adobe forms is a mix of both fine tuning the Layout as well as back end coding.
    Performance in Adobe forms cannot be done overnight. A lot of care has to be taken during the initial stage of development.
    As far as my experience is concerned, please consider the below points while developing SAP Adobe forms.
    1) Avoid Scripting (Javascript/Formcalc) as much as possible inside the form. It drastically reduces the performance and makes the form to execute slower. If you still want to use scripting(which cannot be avoided for some requirements), use Formcalc since it is comparatively faster than JavaScript.
    2) Try to avoid the coding inside the Form Interface. You can always handle the maximum coding in the Driver program and pass it to the form.
    3) Use Form Caching.
    For forms that have fixed layout, its a good way to increase the performance of form rendering. In the layout, go to Form Properties. Then Click on Defaults tab and select Allow Form Rendering To Be Cached On Server. Then Click OK.
    For forms that have flowable or dynamic layout, render the forms on the client side because it improves performance.
    Last but not the least, please go through the below post by Otto Gold which is worth a read at least once.
    How to write a messy form

  • Adobe form script changes not reflected when PDF created by ADS.

    Hello Experts,
    We have done some modifications (UI elements java script) in PDF form in the Development system and tested... everything fine and as expected everything working.
    When we move the same changes to Quality system, the expected functionality is not working. For error analysis we followed below things.
    --1. I have checked the PDF form in SFP TCode is newly added script code is available or not.... Is available in Quality system.
    --2. I have run the application In SAP Portal, where we show this adobe form and saved locally generated PDF form by application. Then we imported  same saved PDF form into ALD  and checked... is newly written java script is available or not....strange is not available...... but in ECC under  SFP TCode i am able to see the newly written script code.
    --3. o.k. we feel that some issue with ADS server so avoid that we restarted the server even though same.... the newly written script PDF form is not picked  by ADS server while generating the PDF in the portal application.
    Can some one throw some torch on this issue?
    Regards
    Malli
    Edited by: mallikarjuna pasupulati on Apr 7, 2011 9:03 AM

    Steve,
    Might M. Kazlow's announcement be relevant?
    Announcement: Mac OS X.7 Lion Compatibility and Acrobat X
    Mac OS X.7 is not fully compatible with Acrobat X.
    Please see http://kb2.adobe.com/cps/905/cpsid_90508.html for more details.
    by MichaelKazlow at Jul 20, 2011 1:17 PM
    Be well...

  • Adobe Form Scripting

    Hi All,
    I have a table and two buttons (Add / Delete ) in Adobe form and i am trying to do scripting for adding a row and deleteing a row in the table.
    I am using the instanceManager.addInstance(1) for Add button.
    My life cycle designer version is 7.1, i have also tried it in 8 version. This form is used in Webdynpro for Java.
    the script is not working.
    Can anyone please provide step by step details of doing this scripting? also the configuration required for dynamic form settings?
    thanks,
    Anil.

    Thanks for the info Juergen. I am still awaiting your blog on secured web services , if you get time please post it.
    @Anil: Please close the thread if the issue is resolved.
    Chintan

  • Issue with Adobe Form Layout

    Hi,
    I have an issue with the Adobe Form Layout.Although I have added a field in the Context Menu of the Form Builder but the context has not been added to the Data View.
    Could you please help me to understand how to include the parameters and structures that we define in the context and add them to the Data View in layout?As far as I know, it is done automatically.But in this case I don't understand what the problem is.
    Please help me.
    Thanks,
    Sandeep.
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Jul 14, 2009 4:10 PM

    it is normally done automatically. Do ANY of your fields show in your DATA VIEW? Or, are you just missing the new one?
    If you're only missing the new one, make sure your Context has the field defined correctly and generated.. Then make sure you have updated the mapping in your View Context and generated that.
    After those 2 things, your field should now show.
    You cannot, as far as I know, define an attribute as any sort of TABLE - we have a common structure that has several Table Types in it. When we import that structure, we have to delete those attributes and create Nodes to mimick those tables.
    If you've accidentally included a Table type as an attribute, you won't see any fields in your Data View.
    EDIT: by the way, there's an Adobe Interactive Forms Forum where you should ask these kinds of questions.
    Edited by: robert phelan on Apr 2, 2009 8:51 PM

  • Issue with Adobe forms in HCM P&F

    Hi Friends,
      We are using HCM Processes and Forms with Workflow. When the Manager starts the processes from MSS by opening the Adobe form we are getting 3 scroll bars. For this we applied the note 1143512. Even After applying this note the Manager gets 3 scroll bars but when the HR Administrator starts any process he can see only 2 scroll bars. What could be the issue. Is there anywhere we need to pass the Initiator?
       Also after applying that note the size of the Adobe form became small. we tried changing the HRAS_PROCESS iView  Height Type to FULL_PAGE. Still its not working. Please advice if there is any note available for this.
    Rgds,

    This has been answered in this forum many times and I believe someone (Brian?) posted a blog about it. PLEASE SEARCH.
    As for what you are seeing....for MSS/ESS, the "form app" is actually running INSIDE another "window"....that's why it is smaller than when an HR Admin runs it.
    Also, for the Adobe size fix, make sure you user params are set correctly.
    Please search and find the blog about the 3 scrollbars....that will help you.

  • 100% CPU utilization issue by Adobe Form

    Hi
    I am creating a new Adobe Interactive Form in my web dynpro java application.
    When I am trying to run that application on server which is having only 2-3 UI elements in interactive form it's using 100% CPU and adobe form is not getting render.
    Some of the adobe forms are already working properly on the server.
    Does anybody faced such issue or somebody knows what may cause this issue so please help me out on that.
    Thanks
    Ravi

    Clear CPU Temp folders START->RUN-><Type TEMP> you will get processed Forms that are locally stored in your system Temp folder select all and delete.
    and also START->RUN-><Type %TEMP%>  and delete the corresponding files in that folder.
    Kanagaraja L

  • Urgent : Regarding Adobe Forms ,Scripts and Smartforms

    <i>
    Hi Floks
    Any body having Adobe Printing Forms ,Scripts and Smartforms documents Links can you send me to me . Its will be help full to me
    thanks
    suresh</i>

    Hi Suresh,
    SCRIPTS
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
    http://www.thespot4sap.com/articles/SAPscript_Introduction.asp
    http://www.onestopsap.com/sap-miscellanous/sap-script/
    http://sap.niraj.tripod.com/id19.html
    http://help.sap.com/saphelp_45b/helpdata/en/65/897415dc4ad111950d0060b03c6b76/content.htm
    http://www.thespot4sap.com/Articles/SAPscript_commands.asp
    Smartforms
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm

  • Data Integration issue with Adobe form

    Hi,
    We have been using many xACF forms in our WebDynpro java based application.
    For one of the xACF adobe form sometimes I'm not getting the data from adobe form to webdynpro context.
    Anyone can pls tell what may be the problem other then binding because that part i have already checked and it's working fine in some of the PC.
    Regards
    Ravindra Singh

    Hi Chintan,
    thanks for your reply.
    I tried that part already by converting xACF form to ZCI but facing issues with the drop-downs.
    Actually some of the dropdowns have values more than 1000. The value help for these drop downs comes as pop up in case of ZCI forms and the mazer problem is that in offline scenario doesn't even shows values for such dropdowns as a pop up or normal drop down.
    As per the SAP Note 1013227 we are using the enumerated type of drop downs for such larger values but no help in offline  scenario. I tried by changing the parameter value in visual admin as suggested in sap note which prevents pop-up for lager values but it's not recommended by SAP. Only because of this issue we are not able to migrate from xACF to ZCI.
    Do you have any idea how to get values for such drop downs in offline scenario.
    Thanks & Regards
    Ravindra Singh

  • Digital Signature issue with Adobe Form

    Dear members,
    I have a Adobe Form in my current development which is having Digital Signature set and working fine.
    When I have created a new Adobe Form, in which I am calling the same Digital Signature, I am getting below error -
    com.adobe.ProcessingException: Signature failure error detected while certifying a PDF for credential alias: DocumentCertification
    Processing exception during a "Certify" operation.#Request start time: Mon May 26 16:16:45 BST 2014#com.adobe.ProcessingException: Signature failure error detected while certifying a PDF for credential alias: DocumentCertification##Specific error informat
    Am I passing wrong parameters or missing something.
      fp_params-NODIALOG   = 'X'.
       fp_params-connection = 'ADS_HTTPS'.
       fp_params-getpdf     = 'X'.
       fp_params-dest       = ls_itcpo-tddest.
       fp_params-nodialog   = 'X'.
       fp_docparams-FILLABLE   = 'N'.
    Its not an interactive form.
    Any advice would be helpful.
    Thank you.
    Regards,
    Arpit Varma.

    Hi,
    Just try creating that signature again on that form. Sometimes, copy might not do!
    Thanks,
    Nitin

  • Issue in adobe forms(Printing table)

    Hi experts...
    I have one requirement.I have two tables in the form.In first table after each row second table should appear.This is done.But one issue is if no records are there in second table it should not appear in the form.i have written scripting for this.but of no use..Can you pls help me to resolve this issue..thanks

    Hi,
    Read the respective table that has entries.If it has zero entries(doesnt contain any data) then set a FLAG.
    In the conditions tab set a condition if FLAG NE 'X'.
    Hope this Helps.
    Pls donot forget to give points if useful
    Regards
    Akmal

  • Hiding Image field based on the page number in Adobe Form- Script

    Hi Folks,
    I have a problem with the print form that I am working on. I need to insert an image of lines (OMR) based on the page numbers. For the OMR part, the first page will always have 4 lines as a image, the middle pages will have 3 lines as a image and the last page will have two lines as a image.
    I have uploaded these 3 images a BMPs in SE78 and I am using Xstring of these images in the form. I have two master pages. First master page is for the first page and the second master page is for the remaining pages. The first master page will always have the 4 line image. I created a positioned subform in the master page2, in that subform, I have 2 hidden numeric fields, as the run time properties one for the current page number, other one for the total number of pages. I placed those two images(one for the three line image and the other one for the two line image) exactly on the same location positioned dimensions wise. 
    I have written the java script for these two image fields to show based on the page numbering. But, somehow, it is not working. Can anybody please let me know where I am doing wrong. I am posting my java script here.
    for the three line image:
    var cp = data.PageSet.MasterPage2.OMR.cpage.rawValue;
    var np = data.PageSet.MasterPage2.OMR.npages.rawValue;
    //if(data.#pageSet[0].MasterPage2.OMR.cpage.rawvalue == data.#pageSet[0].MasterPage2.OMR.npages.rawvalue){
    for (j=0; j<xfa.layout.pageCount(); j++){
      if(cp == np){
        xfa.resolveNode("data.PageSet.MasterPage2[" + j + "]").OMR.OMR2.presence = "hidden";
      else{
        xfa.resolveNode("data.pageSet.MasterPage2[" + j + "]").OMR.OMR2.presence = "visible";
    For the two line image:
    var cp = data.PageSet.MasterPage2.OMR.cpage.rawValue;
    var np = data.PageSet.MasterPage2.OMR.npages.rawValue;
    for (j=0; j<xfa.layout.pageCount(); j++){
      if(cp == np){
        xfa.resolveNode("data.PageSet.MasterPage2[" + j + "]").OMR.OMR3.presence = "hidden";
      else{
        xfa.resolveNode("data.pageSet.MasterPage2[" + j + "]").OMR.OMR3.presence = "visible";
    Please give me a direction as this is kind of hurry.
    Thanks,
    Srinivas.
    Edited by: srinivas kari on Jun 9, 2010 2:03 AM

    HI Otto,
    Thanks for the response. You are right, I am struck with this image. My problem was to keep the OMR marking on each page based on the page number. It is like a lines with 10mmX10mm dimension at the top right corner for the sorter machine to know the number of pages to put in the envelope. The logic for this is, on the first page, it has 4 lines each 3mm apart. On the middle pages it has 3 lines . On the last page it has 2 lines. When the sorter machine picks these, it looks at the first page with 4 lines, it will count as a first page, it will continue through the 3 line pages as the middle pages until it reaches the 2 line to know it as the last page. This is all happens in the master pages. I have two master pages , one for the first page and the second one for the remaining pages.
    At first I did not know how to To achieve this, I created 3 images. one with 4 lines, another ones with 3 lines and 2 lines. The 4 lines image was on the first master page. The 3 lines and 2 lines images were on the second master page at the same place as the image fields positioned. Thats where I was trying this scripting. I was trying to capture the current page and number of pages. Based on these, I was trying to place them.
    Is there any other way to achieve this instead of using the images? I thought of sy-uline. but some in the forum told that its not going to work. Even if I use the sy-uline, I have to do some script to achieve this I believe.
    Any inputs on this.. Please give the direction.
    Thanks,
    Srinivas.

  • Hiding Image filed based on the page number in Adobe Forms - scripting

    Hi Folks,
    I have a problem with the print form that I am working on. I need to insert an image of lines (OMR) based on the page numbers. For the OMR part, the first page will always have 4 lines as a image, the middle pages will have 3 lines as a image and the last page will have two lines as a image.
    I have uploaded these 3 images a BMPs in SE78 and I am using Xstring of these images in the form. I have two master pages. The first master page will always have the 4 line image. I created a positioned subform in the master page2, in that subform, I have 2 hidden numeric fields, as the run time properties one for the current page number, other one for the total number of pages. I placed those two images(one for the three line image and the other one for the two line image) exactly on the same location positioned dimensions wise.
    I have written the java script for these two image fields to show based on the page numbering. But, somehow, it is not working. Can anybody please let me know where I am doing wrong. I am posting my java script here.
    for the three line image:
    var cp = data.PageSet.MasterPage2.OMR.cpage.rawValue;
    var np = data.PageSet.MasterPage2.OMR.npages.rawValue;
    //if(data.#pageSet[0].MasterPage2.OMR.cpage.rawvalue == data.#pageSet[0].MasterPage2.OMR.npages.rawvalue){
    for (j=0; j<xfa.layout.pageCount(); j++){
    if(cp == np){
    xfa.resolveNode("data.PageSet.MasterPage2 [" + j + "]").OMR.OMR2.presence = "hidden";
    else{
    xfa.resolveNode("data.pageSet.MasterPage2 [" + j + "]").OMR.OMR2.presence = "visible";
    For the two line image:
    var cp = data.PageSet.MasterPage2.OMR.cpage.rawValue;
    var np = data.PageSet.MasterPage2.OMR.npages.rawValue;
    for (j=0; j<xfa.layout.pageCount(); j++){
    if(cp == np){
    xfa.resolveNode("data.PageSet.MasterPage2 [" + j + "]").OMR.OMR3.presence = "hidden"; // there is some problem while //posting it is like MasterPage2[" + j + "]")
    else{
    xfa.resolveNode("data.pageSet.MasterPage2 [" + j + "]").OMR.OMR3.presence = "visible";
    Please give me a direction as this is kind of hurry.
    Thanks,
    Srinivas.
    Edited by: srinivas kari on Jun 9, 2010 12:04 AM

    HI Otto,
    Thanks for the response. You are right, I am struck with this image. My problem was to keep the OMR marking on each page based on the page number. It is like a lines with 10mmX10mm dimension at the top right corner for the sorter machine to know the number of pages to put in the envelope. The logic for this is, on the first page, it has 4 lines each 3mm apart. On the middle pages it has 3 lines . On the last page it has 2 lines. When the sorter machine picks these, it looks at the first page with 4 lines, it will count as a first page, it will continue through the 3 line pages as the middle pages until it reaches the 2 line to know it as the last page. This is all happens in the master pages. I have two master pages , one for the first page and the second one for the remaining pages.
    At first I did not know how to To achieve this, I created 3 images. one with 4 lines, another ones with 3 lines and 2 lines. The 4 lines image was on the first master page. The 3 lines and 2 lines images were on the second master page at the same place as the image fields positioned. Thats where I was trying this scripting. I was trying to capture the current page and number of pages. Based on these, I was trying to place them.
    Is there any other way to achieve this instead of using the images? I thought of sy-uline. but some in the forum told that its not going to work. Even if I use the sy-uline, I have to do some script to achieve this I believe.
    Any inputs on this.. Please give the direction.
    Thanks,
    Srinivas.

  • Adobe forms - script for dollar amounts with no decimal?

    I have several forms where the decimal is already on the form (think Tax Form).  I want to be able to set to a number format with 2 decimal places, but I do not want the decimal to show.  Not all of the text placed will have cents amounts, and I need to have the field combed to allow it to show up correctly in the field.

    Then you need to use the validation script or custom calculation script to round or truncate the inputted data as necessary.
    You can use JavaScirpts 'Math.floor()' method to truncate the cents or you can round using JavaScript's 'Math.round()' method or Acrobat JavaScript's 'util.printf()' method to round the inputted value.

Maybe you are looking for