How to display case sensitive elements in an adobe interactive form

Hi Experts,
I'm not sure if this is the correct section for my problem or if I should post it in Web Dynpro section...
Out of an Web Dynpro Component I'm starting an Adobe Interactive Forms and filling it's elements by Web Dynpro Context Nodes. So long everything's fine.
Now I need to display some elements depending on cases of my Web Dynpro.
In other words for example:
if x = 1 show some elements in my interactive form,
if x = 2 don't show them but show other elements
and so on....
Is there any function in interactive forms to realize that?
I had a similar problem before, depending on Web Dynpro cases different Forms are executed and displayed as shown here
[Re: Web Dynpro & case sensitive selection of Adobe Forms] but in this case I need to handle with the elements of my interactive forms.....
Any ideas?
Thanks in advance,
Tan

Hi,
back again, had to handle other issues, sorry.
Just to get a little more concrete. The condition depends on the context node attributes. So if an attribute is initial, it's field should not been shown, if it's not initial, it should ne shown. There are 6 context attributes and therefore 6 fields in the form. How can I get the attributes' value?
And can I put them into the same subform or do I have to create 7 (6 conditions + blank-condition) subforms?
I put the fields (textfield and context node value) that should be shown depending on conditions in a subform. So how can I adress this subform?
I'm not so familiar with JavaScript, so please help me. I need something like:
if (context_node_attribute X is initial) {
         subform_1.presence = "hidden" ;
I tried it with
if ( ARB_STUNDEN.rawValue != null) {
     Beratungsstunden.presence = "hidden" ;
but it didn't work....
Thanks,
Tan

Similar Messages

  • How to create a dynamic fields in the Adobe Interactive form ?....urgent...

    Hi Experts,
    I'm working on Adobe Interactive form developed in WDP ABAP.( I have successfully config the ADS in my server.)
    Action:
    1. Create two view -
    first_view and second_view in the WDP ABAP..
    2. In the first_view, there are a input field( named "elements_number") and  a button(named "create_button") .
    3. In the second_view, there is Adobe Interactive form ( named "adobe_form" ).
    4. Run the WDP ABAP: first_view is opened. Type a number ex."3" in the "elements_number", click the "create_button".
    5. The second_view is opened.
    6. The "adobe_form" is occured.
    7. There are 3 text_fields in the "adobe_form".
    Steps (1) ~ (6), I have completed, but I don't know how to implement the step (7).
    Please give me some hint on this. I try to use the CL_WD_ADOBE_SERVICE, but I didn't found any examples.  Do you give me some ways to implement the function? Thanks a lot.
    Thank you very much.
    Thanks,
    Tao

    Hi Philippe,
    Thank you very much in advance.
    Do you tell me how to hide elements in the "adobe_form" in the WDP ABAP? How can I get the elements attributes in the "adobe_form" from the method WDDOMODIFY of the second_view  in the WDP ABAP.
    Please give me some hints on this. Do you give me some ways to implement functions( hide elements and  get elements's attributes)? Thanks a lot.
    Thank you very much.
    Thanks,
    Tao

  • How to invoke HTTP Web Services in an Adobe Interactive Form

    Hi all,
    I am using Adobe Livecycle Designer stand-alone (without Netweaver integration), currently a trial 8.2 version.
    I need to invoke an HTTP Web Service (non-SOAP) in an Adobe Interactive Form. The Net.HTTP method does not work due to security reasons. The error message I get is:
    (german)
    " NotAllowedError: Sicherheitseinstellungen verhindern den Zugriff auf diese Eigenschaft oder Methode.
    Net.HTTP.request:28:XFA:form1[0]:mysubform[0]:Region[0]:change"
    In english this translates to: "Security settings prohibit the call of this property or method.
    And indeed the "Javascript for Acrobat API reference" includes the following note:
    "Note:This method can only be made outside the context of a document (for example, in a folder level JavaScript)."
    So this method seems to be excluded from use in an Adobe document, e. g. in an interactive form. But why is it then listed at all? Is there a way to call HTTP Web Services in an Adobe Interactive Form by somehow branching out the call outside the document itself? Of course I do not want to call a SOAP service which then calls the HTTP Web Service
    Is there any other way to invoke HTTP Web Services in an Adobe Interactive Form?
    Thanks a lot for your response!
    Regards
    Christoph

    Hi,
    back again, had to handle other issues, sorry.
    Just to get a little more concrete. The condition depends on the context node attributes. So if an attribute is initial, it's field should not been shown, if it's not initial, it should ne shown. There are 6 context attributes and therefore 6 fields in the form. How can I get the attributes' value?
    And can I put them into the same subform or do I have to create 7 (6 conditions + blank-condition) subforms?
    I put the fields (textfield and context node value) that should be shown depending on conditions in a subform. So how can I adress this subform?
    I'm not so familiar with JavaScript, so please help me. I need something like:
    if (context_node_attribute X is initial) {
             subform_1.presence = "hidden" ;
    I tried it with
    if ( ARB_STUNDEN.rawValue != null) {
         Beratungsstunden.presence = "hidden" ;
    but it didn't work....
    Thanks,
    Tan

  • How to hide a fieldsuFF08elementsuFF09 in the Adobe Interactive form ?....urgent...

    Hi Experts,
    I'm working on Adobe Interactive form developed in WDP ABAP.( I have successfully config the ADS in my server.)
    Action:
    1. Create two view -
    first_view and second_view in the WDP ABAP..
    2. In the first_view, there are a input field( named "elements_number") and a button(named "create_button") .
    3. In the second_view, there is Adobe Interactive form ( named "adobe_form" ). There are 3 text_fields elements in the Adobe Interactive form.
    4. Run the WDP ABAP: first_view is opened. Type a number ex."2" in the "elements_number", click the "create_button".
    5. The second_view is opened.
    6. The "adobe_form" is occured.
    7. There are 2 text_fields displayed in the "adobe_form" and 1 text_field hiden in the "adobe_form".
    Steps (1) ~ (6), I have completed, but I don't know how to implement the step (7).
    Please give me some hint on this. I try to use the CL_WD_ADOBE_SERVICE, but I didn't found any examples. Do you give me some ways to implement the function? Thanks a lot.
    Thank you very much.
    Thanks,
    Tao

    Hello Wang,
    You need to transfer some additional information in an unused data field. Then, by using scripting within the form template, you can hide the input fields in question.
    Best regards,
    Thomas

  • WD BusinessGraphics Image - Displaying it in Adobe Interactive Form

    Hi.
    We need to display some BusinessGraphics (runtime generated) in Adobe Interactive Form. So, we tried to solve it using two ways:
    1 - Generate a URL to access the BusinessGraphics image, using web cached resource. But somehow, it doesn't works well. When we call the URL directly on Internet Explorer, it is displayed. But when we set the URL in an Image in Interactive Form, no success... it is not displayed.
    Ex.: using Formcalc on Initialize event: "Image.value.image.href = $record.PortalData.EmployeePhotoURL"
    OBS.: when we map it to a normal URL (ex.: "http://server.domain.com/image1.jpg"), NOT generated in runtime, it works well...
    2 - Generate the image as a byte stream, convert it to Base64 and bind it to an ImageField, as I saw wrote here in a thread (without any more helpful answers...). The problem here is that we dont know how to generate the Byte stream for the BusinessGraphics image.
    Does anyone knows how to generate a byte array from an Image of a BusinessGraphics component? Or have a differente approach to display a BusinessGraphics on an Interactive Form (like deals directly with IGS)?
    Regards,
    Douglas Frankenberger
    PS.: we are using:
    - NWDS 7.0.10
    - Adobe LiveCycle Designer 7.0.050519

    Hi Chintan.
    Our images were dinamically generated, so we dont have a filename to access it. The method getAbsoluteWebResourceURL requires a valid filename to generate the URL.
    The URL that we have follows the below format:
    http://server:port/webdynpro/dispatcher/vendor.com/xyzwDCName/DCNameApp/~wd_key800_1420382789975/.gif?sap-wd-download=1&sap-wd-cltwndid=0f546c20792111dd80ac0018a451af48&sap-wd-appwndid=0f645c21762111ddc3810057a451af48&sap-wd-norefresh=X
    When we try to open it directly on IE, it works. But, when we set this URL to be opened by an Image in Interactive Form (using a script and/or mapping it to URL property), it doesn't shows up, even allowing Adobe Reader to access the address above (a dialog is shown to require access to all URLs that we have used to the images). Probably what happens is that Adobe try to request a WD resource, and WD understand this Adobe Reader request as a non-compatible browser. So, it denies the response (see "Browser is not supported" message accessing a URL to an Image).
    Is there a way to go through this?
    Regards,
    Douglas Frankenberger

  • BusinessGraphics Image - Displaying it in Adobe Interactive Form

    Hi.
    We need to display some BusinessGraphics (runtime generated) in Adobe Interactive Form. So, we tried to solve it using two ways:
    1 - Generate a URL to access the BusinessGraphics image, using web cached resource. But somehow, it doesn't works well. When we call the URL directly on Internet Explorer, it is displayed. But when we set the URL in an Image in Interactive Form, no success... it is not displayed.
    Ex.: using Formcalc on Initialize event: "Image.value.image.href = $record.PortalData.EmployeePhotoURL"
    OBS.: when we map it to a normal URL (ex.: "http://server.domain.com/image1.jpg"), NOT generated in runtime, it works well...
    2 - Generate the image as a byte stream, convert it to Base64 and bind it to an ImageField, as I saw wrote here in a thread (without any more helpful answers...). The problem here is that we dont know how to generate the Byte stream for the BusinessGraphics image.
    Does anyone knows how to generate a byte array from an Image of a BusinessGraphics component? Or have a differente approach to display a BusinessGraphics on an Interactive Form (like deals directly with IGS)?
    Regards,
    Douglas Frankenberger
    PS.: we are using:
    - NWDS 7.0.10
    - Adobe LiveCycle Designer 7.0.050519

    Hi Chintan.
    Our images were dinamically generated, so we dont have a filename to access it. The method getAbsoluteWebResourceURL requires a valid filename to generate the URL.
    The URL that we have follows the below format:
    http://server:port/webdynpro/dispatcher/vendor.com/xyzwDCName/DCNameApp/~wd_key800_1420382789975/.gif?sap-wd-download=1&sap-wd-cltwndid=0f546c20792111dd80ac0018a451af48&sap-wd-appwndid=0f645c21762111ddc3810057a451af48&sap-wd-norefresh=X
    When we try to open it directly on IE, it works. But, when we set this URL to be opened by an Image in Interactive Form (using a script and/or mapping it to URL property), it doesn't shows up, even allowing Adobe Reader to access the address above (a dialog is shown to require access to all URLs that we have used to the images). Probably what happens is that Adobe try to request a WD resource, and WD understand this Adobe Reader request as a non-compatible browser. So, it denies the response (see "Browser is not supported" message accessing a URL to an Image).
    Is there a way to go through this?
    Regards,
    Douglas Frankenberger

  • Adobe Captivate how to display number of attempts in Drag Drop Interaction slide

    Adobe Captivate how to display number of attempts in Drag Drop Interaction slide
    i have set attempts to 3
    on each failure i want to show on slide how many attempts used
    and how many correct answers

    Hi Sreekanth,
    You understanding is correct.  But,it is not even necessary to show the correct sources on correct targets along with the feedback... the correct option numbers in  incorrect feedback will do.
    reg point number 3, if I revisit the slide, the feedback are still displayed. For example, in this case, I added a correct feedback, but when I revisit the slide, the feedback was still appearing. So I added this action "On Enter"  to "Hide" this success caption. So that is why i told specifically that none of the feed backs should be there when i revisit the slide.
    Sorry Srikanth - I am not familiar with the advanced actions or variables. I have just used some from referring the examples from net. that's all

  • How to display or generate PDF417 barcode dynamically in PDF form? I am using Acrobat XI Professional and there is a Bar Code Field in the same through which I generated the same. But I want to generate the same dynamically.

    How to display or generate PDF417 barcode dynamically in PDF form? I am using Acrobat XI Professional and there is a Bar Code Field in the same through which I generated the same. But I want to generate the same dynamically.

    What do you mean by dynamically? When yo set up a 2D bar code field you specify which field name/value pairs you want to include, along with other parameters. But be aware that they won't work with Reader unless you Reader-enable the document with LiveCycle Reader Extensions and include the bar code usage right. It will work with Acrobat Standard/Pro.

  • How to display Adobe Interactive Form from ABAP (not WDABAP)

    I have created a WD ABAP application that creates an Adobe Interactive Form (ZCI) and submits it for workflow.  All of the data on the form is saved in custom itables in the SAP System.  The end-users are supposed to save a copy of the form at the last step in the workflow before they "Acknowledge" the task in UWL.  Once the acknowledge takes place, they can no longer display the form in UWL. They want an ABAP program that will read the data from the various custom tables and display a "print" version of the form (not interactive). 
    I am calling FM 'FP_FUNCTION_MODULE_NAME' to get the function module for the form. I then call FM 'FP_JOB_OPEN' with the parameter IE_OUTPUTPARAMS-REQNEW set to ABAP_TRUE. The call to the form FM has the following EXPORTING parameters:
        EXPORTING
        /1BCDWB/DOCPARAMS   =
          /1BCDWB/DOCXML         =
    I understand the /1BCDWB/DOCPARAMS but have no idea what needs to be done to for the /1BCDWB/DOCXML parameter.  Can anyone offer any advice or assistance?

    Joyce,
    this is really simple - the reason you have that /1BCDWB/DOCXML  is because you defined your form interface to have an XML based interface.
    While this is great for ABAP Web Dynpro, because the XML is generated for you, this is NOT the case with regular ABAP.
    You should choose ABAP Data Dictionary-Based Interface. You will then be able to add tables, structures and fields to your interface.
    For instance, here's code from a program where I call the form in regular ABAP
    data: ls_worksheet TYPE Zxxx_structure.
    * Fill the ls_worksheet structure here.
    * Call the generated function module
      CALL FUNCTION ls_function
        EXPORTING
          /1bcdwb/docparams  = fp_docparams
          worksheet          = ls_worksheet
        IMPORTING
          /1bcdwb/formoutput = ls_form_output
        EXCEPTIONS
          usage_error        = 1
          system_error       = 2
          internal_error     = 3
          OTHERS             = 4.
    Notice I do not have the /1BCDWB/DOCXML Exporting parameter.
    Just change your interface to a Data Dictionary Based, and add the tables/structures/fields to it.
    then, go to your calling program, fill them, and pass the data through the Exporting parameter.

  • Adobe Interactive Form is displayed in Read Only mode

    Hi All,
    I created Adobe Interactive Form in SFP.
    The following properties are set to the form.
    Layout Type -ZCI Layout
    Preview Type - Interactive Form
    XDP Preview Format - Acrobat 7.0.5 Dynamic PDF
    In PDF preview tab, I can enter data into the Text Fields.
    I added this form in a web dynpro ABAP application using Interactive Form UI element.
    The following properties are set to the UI element.
    DataSource - bound to the context
    displayType - native
    enabled - checked
    templateSource - Formname
    readonly - unchecked.
    When I run this application, the form is displayed in readonly mode.
    I can't enter any data into the text field.
    Any of you guys know that how to resolve this?
    Thanks
    Thruna

    Hi,
    I already face the same issue and after several days working on this issue and many hours on debugging it seems that interface type is very important if you want to use the form in WD4A (this requirement is confirmed by SAP thru an OSS message for me )
    Does the interface based on DDIC or XML ?
    If it's a DDIC interface , sorry that can't works in WD4A as interactive forms. You must define the interface as based on XML for this .
    Hope this help you.
    PS : Finally ,as my forms was very complicated my customer decide to not make it available in WD4A .....

  • Adobe Interactive Forms displaying returned tables

    can anyone help me display returned tables in adobe
    interactive forms
    i have an 2 adobe interactive forms, one for input
    the other for output on 2 different views
    the input form takes a few parameters, calls the
    back end RFC and the
    output form displays okay, but i just get the last
    row from the table
    i've tried binding 1 of the output table parameters to a drop down box and subform,the drop down box displays
    one of the return parameters but will not drop down
    whenever i include a subform i get a java error on
    the output form with no display
    i know there are several rows returned from testing the rfc inside abap workbench

    Hi Dennis,
    To display table in Adobe forms.
    Follow these steps :
    1. Insert one sub furm.
    2. make its type to flow content and flow direction to Table in object property.
    3. Insert another subform in above sub form and makes its type to flow content and flow direction  to Table row.
    4.In binding tab for this subform check the checkbox for "Repeat subform for each Data Item" and in min count you can specify at a time how much rows you want to display.
    5. Now place your UI Elements for Data view into this sub form.
    6. format these ui elements as you required.
    Run application now u can see multiple rows in adobe forms, if you have multiple elements in your table node.
    Let me know the status.
    Regards,
    Bhavik

  • How to binnding the data in the adobe interactive forms for making a table?

    Hi, experts,
    Function:
    Through the sharing context node between adobe interactive form and a WDA for ABAP, display the data of the sflight_node in the ADOBE.
    version:
    Acrobat Reader 8.1.0
    currently both of the SAP-ABA and SAP-BASIS SP level: 9
    ADS : Successful.
    The following is my action:
    1.     Create a interface (Z_SFLIGHT_INTF) with a attribute node (SFLIGHT_NODE) that type is "sflight"  using the transaction code "sfp"
    2.     Create a form (Z_SFLIGHT_FORM) using the transaction code "sfp" with the interface Z_SFLIGHT_INTF.
    3.     Trag the sflight_node in the Z_SFLIGHT_INTF to the form( Z_SFLIGHT_FORM).
    4.     Open the layout tab in the form(Z_SFLIGHT_FORM), and create a table(table1). Click the table created just now, select the binding tab in the object tab, and in the Default Binding, select the SFLIGHT_NODE under the Z_SFLIGHT_FORM.
    Problem 1:
    Do you tell me whether is right for binding the context SFLIGHT_NODE using this way? If bind 3 context attributes in the sflight, how can I do it?
    5.     Create a WDA for abap (ZZ_02_SFLIGHT), and create a view(MAINVIEW) using transaction code "se80" in the sap-gui with adobe interactive form. Set the templatesource(Z_SFLIGHT_FORM) in the  adobe interactive form properties and saved, and then, datasource is "MAINVIEW_Z_SFLIGHT_FORM" automatically.
    6.     But I only found the attribute SFLIGHT_NODE under the context node(Z_SFLIGHT_NODE), and  I don't found the NODE ( SFLIGHT_NODE ) context in the context tab in the WDA for abap so that I don't set data to the context NODE (SFLIGHT_NODE).
    Problem 2:
    Do you tell me what can I do it so that I get the node SFLIGHT_NODE rather than attribute in the WDA for setting the data to the CONTEXT NODE (SFLIGHT_NODE)?
    Thanks a lot.
    Best regards,
    Tao

    Hi, experts,
    You can reply back to me via e-mail if you think we should discuss this internally at [email protected] or [email protected]
    Thanks a lot.
    Best regards,
    tao

  • How to download adobe interactive form layout

    Hi Experts,
        can any one  suggest me how to download the adobe interactive form PDF layout including  output values. when we download the form values are  not displaying.
    Thanks in advance.
    Edited by: krishnaveni.Nomula on Sep 28, 2011 4:44 PM

    Hi,
    We are  generating the form then adding values & want to save that form.
    Thank you.

  • How to store adobe Interactive form PDF in archive link?

    Hi everybody,
    I had create a WebDybpro Abap that contain an Adobe Interactive Form, now I must store this Interactive Form into Archive Link like a PDF document.
    I succeeded to save the PDF document on the archive link but after this operation, when I open this document saved, it doesn't show me the data but only the Interactive Form structure. The only data that file PDF saves are those I passed to Interactive Form during at the event initialization, but it lose all others datas that I inserted on the Interactive Form before to save.
    There is one mode to save also these datas or I can store only data that I load at the initialization event?
    I hope in your fast help.
    Regards.
    Davide.
    To follow the code that I use for Archive my Interactive form like PDF document.
    Salvataggio nell'ArchLink ********************************************
    Ricavo il PDF Source
      DATA: elem_context    TYPE REF TO if_wd_context_element,
            stru_context    TYPE        wd_this->element_context ,
            item_pdf_source LIKE        stru_context-pdf_source.
    get element via lead selection
      elem_context = wd_context->get_element(  ).
    get single attribute
      elem_context->get_attribute(
        EXPORTING
          name =  `PDF_SOURCE`
        IMPORTING
          value = item_pdf_source ).
      DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
      l_ref_cmp_usage =   wd_this->wd_cpuse_zcentral_person( ).
      IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
        l_ref_cmp_usage->create_component( ).
      ENDIF.
      DATA: l_ref_interfacecontroller TYPE REF TO
                                      ziwci__wdr_ess_central_person.
      l_ref_interfacecontroller = wd_this->wd_cpifc_zcentral_person( ).
      l_ref_interfacecontroller->store_adobe_document(
        ar_object    =  'ZHRDETRAZ'        " Toaom-ar_Object
        doc_type    =  'PDF'                    " Toadv-doc_Type
        object_id    =   objid                    " Sapb-sapobjid
        pdf_source =   item_pdf_source    " Xstring
        sap_object =   'PREL'                  " Toaom-sap_Object  ).
    METHOD store_adobe_document.   ***********************************************
    Converto la XSTRING del PDF in tabella binaria
      DATA: l_tab  TYPE TABLE OF tbl1024,
            lenght TYPE i.
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          buffer        = pdf_source
        IMPORTING
          output_length = lenght
        TABLES
          binary_tab    = l_tab.
    Calcolo la dimensione del documento
      DATA: doc_id TYPE saeardoid,
            size   TYPE i,
            lineno TYPE i,
            length TYPE i.
      DESCRIBE TABLE l_tab LINES lineno.
      size = lineno * 1024.
      DATA toaom_fkt  TYPE TABLE OF toaom.
      CALL FUNCTION 'ARCHIV_METAINFO_GET'
        EXPORTING
          ar_object  = ar_object
          sap_object = sap_object
        TABLES
          toaom_fkt  = toaom_fkt.
      CALL FUNCTION 'SCMS_AO_TABLE_CREATE'
        EXPORTING
          arc_id   = 'ZP'
          doc_type = doc_type
          length   = size
        IMPORTING
          doc_id   = doc_id
        TABLES
          data     = l_tab.
    Create link to business object
      CALL FUNCTION 'ARCHIV_CONNECTION_INSERT'
        EXPORTING
          archiv_id             = 'ZP'
          arc_doc_id            = doc_id
          ar_object             = ar_object
          mandant               = sy-mandt
          object_id             = object_id
          sap_object            = sap_object
          doc_type              = doc_type
        EXCEPTIONS
          error_connectiontable = 1
          OTHERS                = 2.
    ENDMETHOD.  ********************************************************************

    Hi Davide,
    I have a requirement where I just need to SAP HCM Archive Adobe form in External repository.
    Since you are using the archiveLink functionality.
    Can you please help me how you did?? What configurations need to be maintained for this?
    I am new to this. I did some Rnd on it and found that it can be achieved using HRFORM_HRF02 Business Add-In in the SET_ARCHIVE_INDEX method.
    But I have no clue how to do it?
    Can you please help me?

  • How to create Adobe Interactive Form in MDM

    Iam new to MDM Technology, I want to create Adobe Interactive Form and show a sample demo.
    Sample demo which should show adobe interactive form in mdm and how to integrate adobe interactive form in mdm and how to update th data in MDM
    I have knowledge of creation of adobe form but how to integrate with mdm technology.

    Hi,
    There are couple of ways to integrate MDM with SAP Interactive Forms.
    1. WebDynpro Java and MDM API (requires Portal)
    2. MDM WebService (Portal not required)
    Updating data in MDM using WebDynpro Java :
    1. In Component Controller -> Fetch data from MDM using API and populate appropriate context structure
    2. Map the View Controller and Comp Controller context.
    3. Place Interactive Form UI element in view.(Keep the UI element in UpdatePDF mode, this can be done in properties window. Also increase the height and width property value)
    4. The Interactive Form UI element is editable in Adobe Form Designer (7.1 / 8.0)
    5. Design the form and bind the UI (TextFields/ Dropdowns) with the Context of View Controller.(Done in Binding tab of Object window)
    6. Deploy and run the application.
    The rendered application will contain an Adobe Interactive Form populated with MDM data.
    Regards,
    Suresh

Maybe you are looking for