REG: Hiding Objects in adobe forms

Dear Experts,
I am working on interactive forms. I have some queries which are as following:
- I am designing an adobe template with a subform to be diplayed when required else not. I tried the visibility option but it seems it has to be done using Scripts.
- In the scripts editor, I am using a script to make a particular sub form invisible:
xfa.form.Vn_DataSource.pageSet.Page1.SubForm_AlertStamp.presence="Hide"
-This is giving me error like:
accessor-unkown if I keep it at datasource and run it at the initialize.
-If I keep the code at the particular subform and run it at initialize, it gives me an error like:
Invalid enumerated value: hide
I am unable to understand where to keep my code or whether I need to do some modifications in the script?
-I am using FormCalc.
Also, Is it possible to have a attribute of type integer and call it in the script to check if it is 0, I need to display the subform else not.
I hope I am clear with my queries. Helpful answers will be appreciated.
Thanks in advance,
Regards,
Gaurav.

Hi Reema,
Thanks for your reply, but when I am using the following code:
xfa.form.Vn_DataSource.pageSet.Page1.SubForm_AlertStamp.presence="hidden"
It's giving me an error like:
Script failed: Accessor xfa.form.Vn_DataSource.pageSet.Page1.SubForm_AlertStamp.presence is unknown.
I am writing this code at the node initialize and I tried writing it at the sub form also. Can you please suggest me why I am getting this error? Is that a code error or I am writing it at a wrong place?
Thanks in advance
Warm Regards,
Gaurav

Similar Messages

  • Hiding Pages in ADOBE form using formcalc scripting.

    Hi Experts,
    I am new to ADOBE form and currently working on invoice print output. (NOT an  Interactive adobe form)
    My requirement is
    i wanted to print one main page and 5  different annexures(anexures are having different layouts so is in diff forms and contained in diff pages)
    Deppending on 'Oreder reason' (made as global variable)  , i need to select appropriate annexure and print
    main page and any one of the annexure.
    so i should hide all other annexure, to achive this i used formcalc scripting.
    i tried hiding annexure 2 by following code,
    data.Annexure2::ready:form - (FormCalc, client)
    if ( data.G_F_ORDER_REASON.rawValue == "ANX" )
    then $.presence = "hidden"
    endif
    i have passed value 'ANX' to this , i could see the value of order reason printed on page Annexure2 but it is not executing (getting in to if condition) condition and not hiding the page ...
    Experts please help me...
    this way i have to hide 4 other annexures...please help me or give me some other option to achive this.
    thanks and regards
    varun
    Edited by: skyblue on Aug 6, 2011 3:30 PM

    coding Formcalc is a pain.
    But you're doing the right thing by passing in a variable and hiding based on the content of it.
    Here's an example of where I'm hiding a subform on a page.
      if ( main_sf2.charter_only.CHARTER_DOC.rawValue eq "X" ) then
       main_sf2.pts_sf.presence = "visible"
      else
       main_sf2.pts_sf.presence = "hidden"
    endif
    Looks like your code is similar - try changing
    ( data.G_F_ORDER_REASON.rawValue == "ANX" )  to
    ( data.G_F_ORDER_REASON.rawValue  eq "ANX" )
    or instead of $.presence = "hidden"  fully qualify the name of your page to  data.Annexure2.presence = "hidden"

  • DB2 Connectivity Trough ADO Objects in Adobe Form Designer

    Hi,
    We are using
    Adobe Workflow Server 6.2 and
    Adobe Form Designer 5 to develop forms. In forms we have to display some information retrieved from IBM's DB2 database at two different stages. First at the beginning of the process, for which we have scripts in the process which are working fine. Second at run time, i.e., the user will enter ID of an employee and we have to retrieve the corresponding information of that employee. For that we are using ADO objects, provided in the form designer.
    The problem that we are facing is that these forms uses ActiveX controls and they are executed on the client's PC. At run time when we try to access the DB2 database we get an ODBC error:
    [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, because the DSN is on the server not on the client's PC. The forms are working fine on those PC that have DB2 client installed on them.
    We want that ADO object to be executed on the server not on the client's PC. Is there any way or doing so? Or is there any other solution?
    Please let me know asap as I have been facing this problem for many days.
    Thanks.
    --Khan.

    Khan--
    Your best bet in my opinion would be to drop the use of the Adobe ADO Object and switch to one of the following db connectivity scenarios.
    - MS Remote \ RDS; has some MS security draw backs but allows remote access to a db from a single DSN.
    "+" : Much faster to deliver
    "-" : Have to work around MS server \ browser security issues
    - Custom solution using xml DOM \ SOAP calls to pass your data requirements to an ASP \ ASP.NET component. This component would be used to execute the sql statement read from xml package then return that result back to the form.
    "+" : Increase in performance due to server side execution, very little MS Security implications
    "-" : Not a quick solution to build as it involves many different components to function
    Hope this helps somewhat...

  • Cell hiding problem in adobe form

    Hi,
    I am making a adobe form which contain 5 row and 5 column and i am filling this by using internal table . My requirement is  : when internal table doesn't contain some column(means suppose column 4 doesn't contain any value then i want to hide from 4th column) value i want hide from that column dynamically.
    Regards,
    Durga

    Hi Gupta,
    Please refer the below links
    Hiding a table column for a particular condition
    Adobe Community: How to hide table with empty content using Javascript? 
    Hope this helps you.
    Regards,
    Rama

  • Hiding subform in adobe forms

    go to palettes and select script editor. you will find a white colored editor.
    Click on the subform which is to be hidden in the heirarchy.
    Select Initialize from the drop down list on the editor. And select Language as FormCalc.
    You'll get the white space in the editor to write the code.
    if the subform which is to be hidden is SUBFORM1.
    then write the code as follows
    $.SUBFORM1.presence = "hidden"
    this will hide the sunform.
    if the hiding of the subform is dependent on any condition then we can write the code as follows
    if ( condition )  then
    $.SUBFORM1.presence = "hidden"
    endif
    this code will hide the subform and all the elements in the subform only if the condition is satisfied.
    Moderator message: wrong forum, please have a look in the forum for "Adobe Interactive Forms", not a question anyway, if you'd like to share ideas/code samples, please use the wiki space.
    Edited by: Thomas Zloch on May 10, 2011 10:29 AM

    Hi,
    This has been discussed many times in the forum. Check the following thread.
    hide a row or field in adobe form
    Thanks,
    Aravind

  • Reg : Heading display in Adobe Forms

    I have Created an appln using Adobe Forms.
    In Body Pages Data is displayed with Heading. I have given Flowed Option for mulitple pages display.I want the Heading
    to be reflected in all the body pages.
    I  don't want to display it in Master Page bcos I am displaying some text in first body pages continued by the table.
    Any option is there for getting Heading in all the Table display pages only. Thnks in advance...

    Hi
        Go to the Table in the body page  -> then select the Header row only -> right click on the header  row -> Go to Palletes -> Object -> Under pagination tab -> Check the check box Include Header Row in Subsequent Pages .
    Then save and active it. Try this one. I think it will solve your problem.
    Thanks
    Sriiiiiiiiiiii(Srikanth)

  • Interactive form callable object using adobe form manager

    Hi,
      I have several interactive forms in an application that is created using Adobe Form Manager. Is there a way to create a callable object from this application and use it in the Guided Procedure?
    Regards,
    Yuvaraj S G

    Hi Andre,
         If I use Adobe Livecycle Designer, I need to create the whole application from the scratch which will take too much time. 
         So, I'm finding out if there is a way to reuse the application that's already available.
    Thanks a lot for the reply,
    Yuvaraj S G

  • Reg Control Parameters of Adobe forms

    Hi,
       I am have a issue with adobe forms, the purchase order in me22n changing the values and saving the PO has to go as an PDF attachment to the Vendor mail . But it is not happening but the PO is Processed sucessfully. The vendor mail is checked and it is correct and the type of medium to the Output is External Send which is for the email. The form is copy of  Standard Adobe form and the program is also std copy of SAPFM06P. In the driver program is any coding is required for the controlling parameters of form so that mail will happens.
        Plz help me out in this issue.
    Regards,
    Narasimha

    Hi Narsimha,
    I think the standard program may not have functionality for sending mail .
    Check for nast-nacha value, see the code below
    CASE gs_nast-nacha.
        WHEN gc_nacha-external_send.
    *     Proccess communication type
          cs_outputparams-getpdf = gc_true.
          cv_device              = gc_device-email.
        WHEN gc_nacha-printer.
    *     Print
          cv_device                    = gc_device-printer.
        WHEN gc_nacha-fax.
    *     Fax
          cs_outputparams-getpdf       = gc_true.
          cv_device                    = gc_device-fax.
      ENDCASE.
    After fp_jobclose write these lines
    CASE lv_device.
        WHEN gc_device-fax
          OR gc_device-email.
    *  Code to send PDF file as mail attachment should be written within these lines
          PERFORM send_data using lv_pdffile.
      ENDCASE.
    The Driver Pr
    >
    Narasimhulu wrote:
    > Hi,
    >    I am have a issue with adobe forms, the purchase order in me22n changing the values and saving the PO has to go as an PDF attachment to the Vendor mail . But it is not happening but the PO is Processed sucessfully. The vendor mail is checked and it is correct and the type of medium to the Output is External Send which is for the email. The form is copy of  Standard Adobe form and the program is also std copy of SAPFM06P. In the driver program is any coding is required for the controlling parameters of form so that mail will happens.
    >
    >     Plz help me out in this issue.
    >
    >
    > Regards,
    > Narasimha

  • Reg : Offline Process In Adobe Forms

    Hi All,
    I just to know want to know how the off line process work in adobe forms, with some real time examples and also i want to know how the data has been transformed to Sap when the user fills the form in off line. Is it possible to import all the paper works to adobe forms as like in the One Note Concepts.Please Clarify me on this concepts as am new to Adobe Forms.

    check here
    https://www.sdn.sap.com/irj/sdn/adobe

  • Reg. barcode printing in adobe form

    Hi experts,
          I want to display barcode in adobe form.
    I am using code128 standard barcode.
    My requirement is to display the humanreadable format in barcode(text that displays with barcode) with 16 font size and
    it should have format DTAPxxxxxxxxxx.i.e DTAP should be the prefix and remaining should be dynamic.
    However i didnt find any option in adobe form to the same.
    Request you all to tell me the solution for this problem..
    Thanks in advance,
    Swathi..

    Hi,
    Declare a variable of character type and concatenate DTAP and Bar code value into that variable.
    Later print that in required bar code format.
    Try this.

  • Reg: Label printing in Adobe forms

    Hi All,
    I am working on Adobe forms for printing labels. For that I have created 10 content areas on the master page and properly aligned all the fields such a way that they fit into the content area exactly.
    I am having two subforms with names subform1 & subform2. I have wrapped all fields in subform2 and placed it in the subform1.
    Properties of subform1 : I have set it as flowed and set after as 'Go to next content area'
    Properties of subform2 : I have set it as positioned and set after as 'Continue filling parent'
    The problem here is when I am trying to print 10 labels, all the labels are printed on one page and another empty page is getting displayed. Please provide me some hit for avoiding this blank page. [The data in the labels are exactly fitting into the content area]
    let me know if you eed any other information.
    Thanks,
    Raveendra.P

    Hi Gold,
    I am not very sure...but with the easy solution you gave for my problem...I think one label will be printed per page. Please correct me if I am wrong.
    I think when we use subform..we will set it as flowed and when data exceeds it moves to next page
    Also give me some hint why empty page is getting displayed in my case.
    Edited by: ravee on Jan 12, 2010 1:56 PM

  • Hiding Fields in Adobe Form

    Hi,
    I have some fields in my form that i want to hide. I added in some javascript into the button-click event. When previewing in the Adobe LiveCycle Designer, the fields are hidden successfully,but  when i press F8 button the fields are not able to hide.
    My JavaScript is:
    if(this.rawValue == null)
    this.presence = "hidden";
    Thanks.

    Hi,
    you can use as below,
    below Scripting can be used to ahcive this.
    1. FormCalc Scripting.
    2. JavaScript.
    Combination of both is also allowed in same form.
    Example:
    if( hasValue($) ) then
    StaticText1.presence eq u2018visibleu2019
    Else
    StaticText1.presence eq u2018hiddenu2019
    Endif.
    Thanks,
    Chandra

  • Reg shifting field in Adobe Forms

    Hi All-
          I am working on Adobe.I have a requirement that at top I will have a table and after that some text will come.
    when i am fixing position of downword Text and the no of rows increasing in Table,its overlap on lower level data.
    plese provide me solution for that.
    Thanks-
    Ashutosh

    As stated above, you will have to implement subforms. this can get a little tricky if you have content you want positioned on a form along side flowed content.
    Generally, my PDF is a combination of positioned and flowed subforms because when you make a subform flowed, it will squish your fields/data all together.
    There are 2 types of flowing forms - western text and top to bottom. Top to Bottom will squeeze your fields right underneath each other.
    Western Text will wrap your fields from left to right.
    If you go this route, a tip is to make use of spacing options in your Layout to force space between your fields.

  • Reg : Fillable attribute in adobe form

    Hi all,
    i would like to have a clarification ..
    when i set
    fp_docparams-FILLABLE = 'X'. i am not getting the pdf simply i m getting a error message "ADS : Start time ...."
    and when i set
    fp_docparams-FILLABLE = 'N' i m getting the pdf and able to enter the value in the text field .. but not able to save..
    should i apply any SAP note reg this.. If anybody knows plz let me know..
    Rgrds.

    Please ignore this Question.. this already runs in another thread..

  • Hiding subform in adobe form through javascript.

    Hi guys,
    I wanted to hide a subform through javascript.
    i want to make it visible only when the page no = 3.
    what is the syantax of javascript to do this.
    thanks in advance

    Hi,
    you can use as below,
    below Scripting can be used to ahcive this.
    1. FormCalc Scripting.
    2. JavaScript.
    Combination of both is also allowed in same form.
    Example:
    if( hasValue($) ) then
    StaticText1.presence eq u2018visibleu2019
    Else
    StaticText1.presence eq u2018hiddenu2019
    Endif.
    Thanks,
    Chandra

Maybe you are looking for

  • PROBLEMS IN THE DOWNLOAD OF MY PHOTOSHOP EXTENDED CS6

    WHEN I HAVE FINISHED DOWNLOADING MY PHOTOSHOP CS6 EXTENDED CAME UP A WARNING: WHAT SHOULD I DO ARE THESE IMPORTANR FILES FOR THE PROPER FUNCTIONING OF MY SOFTWEARS ? Exit Code: 6 Please see specific errors and warnings below for troubleshooting. For

  • Switching to Apple

    Hi, My wife and I are considering switching to a Mac (having lived with Windows and Linux). My impression is that a Mac has everything a consumer needs out of the box, the hardware and software are developed by the same company and the various softwa

  • Strange SFTP error message

    I can no longer connect using SFTP on one of my sites in Dreamweaver CS6 and I get this error message: Failed to Read the contents of XML Resource: IDD_SSH_KEY_CHANGE_DIALOG The password and paths  are correct and I am able to connect using other SFT

  • Wrong cardinality with date literal

    Hi guys, There is table T with column D (DATE). The table consists of data from 1999 year. NUM_ROWS = 33.7M The column D does NOT have histogram. There is index on the column D (and columns C1, C2). create index ... on T (D, C1, C2)There is a SQL and

  • DadTool.pl obfuscation doesn't work with passwords containing a "$" sign !?

    Hi, we are using the OHS and mod_plsql which is bundled with the Oracle 9i Companion CD. When we try to obfuscate a password containing a $-sign (p.e. test1$test2) with dadTool.pl, the dads.conf is updated with an encrypted password and the dadTool.p