WD application- Interactive form -Not bringing values to Onclick method

Hi,
I am working on Interactive form which has a submit button.
Requirement is Form should be pre-filled with fields in Item column1 and then user fills in a field in Item column C2.Finally my submit button on form should take c1,c2 values and I will be using this in Click method for further processing.
For this I have done following.
1- created a structure ZILAB( which has COLUMN 1 & COLUMN 2 FIELDS) and created a node adobe_data with cardinality 1.1, and then under it created another node called ITEM CARDINALITY 1..N).This is mapped to ZILAB.
2- Created  job number as parameter and button1 .This button1 brings up the pre-filled item Column1 fields to form.
3- There is new column C2 in the output form which user will input.
4- When I click final submit button it is stopping in Onclick method.my code is bringing up C1 values but not bringing of C2 values(which is user input) in my Onclick event of SUbmit button-WDACTIVEX.
Also I have checked enable option, Assigned pdfsource, change type to activeX.I even tried to change element item name but still not able to get entries in onclick method.
What is wrong with my code/process?
DATA lo_nd_adobe_data TYPE REF TO if_wd_context_node.
  DATA lo_nd_item TYPE REF TO if_wd_context_node.
  DATA lo_el_item TYPE REF TO if_wd_context_element.
  DATA ls_item1 TYPE IF_MAIN=>element_item.
* navigate from <CONTEXT> to <ADOBE_DATA> via lead selection
  lo_nd_adobe_data = wd_context->get_child_node( name = IF_MAIN=>wdctx_adobe_data ).
* navigate from <ADOBE_DATA> to <ITEM> via lead selection
  lo_nd_item = lo_nd_adobe_data->get_child_node( name = IF_MAIN=>wdctx_item ).
* get element via lead selection
  lo_el_item = lo_nd_item->get_element(  ).
* get all declared attributes
  lo_el_item->get_static_attributes(
    IMPORTING
      static_attributes = ls_item1 ).
Rgds
Vara

Hi ravi,
These are the function modules  which converts table to String and the String to Xstring.
         SOTR_SERV_TABLE_TO_STRING  "Table to String
         SCMS_STRING_TO_XSTRING "String to Xstring
For triggering work flow is not a problem. But this pdf should be generated again at workitem attachment.
For converting to PDF and attachming the pdf to workitem I already have a business object
Can you tell me how you are attaching document to Workflow and how you are triggering workflow on click of Submit button and what is the businees object to send the attachements to workitems.

Similar Messages

  • ADOBE Interactive Form not getting displayed in Browse

    Hi,
    Currently I am working on EhP4 project on ECC 6.0 environment. For HCM, We have interactive ADOBE forms for MSS. While testing we found that all buttons are displayed in a browser (we are are window 7 IE 8 ) but interactive form is not getting displayed in the browser (Fill out Form as part of MSS).  It only displays a line
    Checked ADS configuration as per oss note and works ok. Did HTTPWATCH - browser is getting (GET) the Adobe forms with values but not displaying it. If I copy URL from HTTPWATCH GET line in a separate browser window it displays the form.
    Thanks in advance your help.
    Regards
    Jitendra Pongurlekar

    Hey Chris (and others),
    We were having this same problem, and this Note fixed the issue (thanks!).  However, we are still experiencing another issue with HCM Processes and Forms under EhP4.  Before this Note, it took about ten minutes before "single line display" would show up.  Now after the Note, we get the full form, but it still takes ten solid minutes of waiting before it appears in the window.  We're pretty sure it's not a Portal issue, nor an ADS issue, but something with the web dynpros on the ABAP side.  However, we have not yet been able to resolve it.  Anyone else run into this performance problem with HCMP&F after upgrading to EhP4?  We don't have the problem with EhP3.
    Best regards,
    Matt

  • Adobe Interactive Form Not Editable

    Hi,
        I have created Adobe Interactive Form using Web Dynpro Java Application.When i run the application i get the pop up message [The document enabled extented features in Adobe Reader.The document has been changed since it was created and use of extended features is no longer available.please contact the author for the original version of this document.].When i click for the pop up message the form is not interactive.If there is Adobe Life Cycle Designer and Adobe Reader version problem for this.Let me know if any one facing the same issue.
    Regards,
    SatheshKumar R

    Hi Satheesh,
    1. Check the Adobe form Version (from 7.1 to 8)
    2. Installed Adobe form Extended Language Support Font Pack to Adobe ,if you are using some other   language in Adobe form
    3. Check the ADS Version.

  • WebDynpro ActiveX  Button in Interactive form- not working in IE

    Hi,
    1)     I am working with Interactive forms in WebDynpro. When I deploy the application, the PDF form is opens in a browser window, But the WebDynpro ActiveX button ( to call a method in view Controller) is not working.
      When I copy the URL and try in another sysetm, its working.
      I hope the probelem is with the browser settings.
    2) And also, the 'https' URLs does not work properly in my IE.
    Can you give me a solution for these problems?
    Thanks,
    Prabhakar.

    Hi Prabhakar,
    I doubt this is anything to do with the browser. Please let me know if you have already installed SAP Active Control Framework on your desktop.
    I think this might be an issue. Also check for Adobe Reader version in both the machine.
    Cheers
    Satya

  • Interactive Form not so interactive

    Hello,
    I am trying to embed an interactive form in my WebDynpro application. I succeeded on displaying the form, but I cannot make it interactive.
    The form actually has only one interactive element, which is a URL launch button. I unfortunately cannot make without this button, so I don't have much choice.
    I can see the form is not interactive in the WebDynpro because clicking on the buttons does nothing, the cursor does not even change to the pointing finger. When I test the form from SFP (with interactive flag set) it works as expected.
    What is already done to make the form interactive:
    - Set the form layout type to ZCI.
    - Checked the "Enabled" attribute in the INTERACTIVE_FORM element of the webdynpro view.
    - Created an empty action for the on_submit event of the element.
    - Tried with both Native and activeX displayType for the element.
    Any suggestions ?
    Thanks in advance.

    Hi,
    I have just made some tests and indeed when creating the form from the webdynpro, and the only different I can see is that it generates a XML based interface instead of an ABAP Dictionary based one. But indeed the interactive elements work in that case.
    Concerning your last suggestion, I would really like to, and the actual code to launch a URL from a button is Javascript and client side, but it simply does not work, the click event seems impossible to trigger from a non-interactive form.
    If you have no further idea I will see with the customer if it is worth it to remake the whole PDF just for that.

  • Multiple search helps in ABAP Adobe interactive forms not working....

    Hello,
    I am working on my first interactive form. I have a couple of fields to which I have attached a search help. However, I am able to use the search help for only one field in a session. If I use the search help on one field then I am unable to use it on another field which uses the search help.
    Can some one help? I am new to interactive forms and this is my first form.
    I appreciate your help in advance.
    Thank you,
    Leena

    Hi Leena,
    Are the Data dictionary fields which you are using contains value range. Because i am only getting value help only for the fields for which there is value range defined in the dictionary. The problem is only for the fields for which there is no value range defined. If you have solution to this problem I will definitely award points to you. But in your thread for me its not possible to reward points, so you can answer the following thread:
    [How to get Value help in Adobe forms;
    Will reward points if found your answer helpful.

  • Interactive forms not opening..

    Hi experts,
    I am having a problem with the interactive forms,
    I have nade an iview in which i have used a interactive form ui element, i deployed the application but the form is not opening, previously i was using adobe 8 now i have uninstalled adobe 8 and installed adobe 7.08 in my machine and made again the application and deployed it, and it is now poening in my machine but notin other machines where aobe 8 is installed,
    Please give me suggestions to rectify this problem.
    Regards
    Upendra

    Hi Upendra,
    Have a look at Note 1036205 - ACF Support for Adobe Reader 8.1 in SAP Interactive Forms
    Or you may try with ZCI.
    Hope this helps.
    Regards,
    Anagha
    Edited by: Anagha Jawalekar on Nov 4, 2008 11:42 AM

  • Dynamic table in webdynpro interactive form not working. Urgent

    Hi guys,
    I am facing a problem when trying to retreive data entered in interactive form dynamic table.i can get the data entered in non dynamic fields no problem.
    I have a node structure like this
    Root
       Data 1...1 singleton and non tried both
           Table 1...n singleton and non tried both
    In my adobe form i tried adding rows using add instance, and also using add button in webdynpro native. In the same method that adds row i simulated the submit button to create row in WD context! It adds rows but any data entered later is lost. One more thing i have noticed is it sometimes works after adding just one row! Data is passed to context but from next row it doesnt work! What am i missing?
    I also tried adding a button in webdynpro tray and adding the row directly to the context. new row is created in form but any data entered in new rows is lost!
    I am unable to obtain the data entered in Dynamic fields. I thought i would try the xml reading method but the problem is after crating a couple of rows dynamically if i go save pdf locally the new rows are not showing up in the pdf!
    I have seen a post which said using the if_wd_iactive handler to set the form as dynamic but that method is not available in our system! Sorry i am not in front of an SAP system so i cant type exact names!
    I tried using zci update program/ etc etc but i am still struggling at the moment. Any help would be much appreciated! Pls ask if you need more info.
    Regards
    Naresh
    Edited by: naresh dwadasi on Oct 7, 2011 9:05 PM

    problem solved! I had to recreate the form. not sure if i corrupted the webdynpro scripts etc by mistake.

  • DropDown in Online Interactive Forms Not working.

    HI:
    I am working on Online Interactive Form for Purchase Requisition.
    I have a dropdown in the dynamic table and I am trying to populate the same in DoInit().
    I am using the following code. But the drop down is displayed empty.
    DATA:
    lr_node_info type ref to if_wd_context_node_info,
    lt_value_set TYPE wdy_key_value_table,
    value_set_item TYPE wdy_key_value.
    types:  BEGIN OF TY_UOM,
            UOM TYPE T006-MSEHI,
            END OF TY_UOM.
    *Define Internal Table and work area.
    DATA: IT_UOM TYPE STANDARD TABLE OF ty_uom,
          WA_UOM type ty_uom.
    lr_node_info = pr_node2->get_node_info( ).
    data j type i.
    j = 1.
    SELECT MSEHI FROM T006 INTO wa_UOM.
    value_set_item-key = j.
    value_set_item-value = wa_uom-uom.
    insert value_set_item into table lt_value_set.
    insert wa_uom into table it_uom.
    j = j + 1.
    ENDSELECT.
    lr_node_info->set_attribute_value_set( NAME = 'UNIT'
    VALUE_SET = lt_value_set ).
    Can any one tell me what is wrong with the above code? and provide a sample code for the same.
    Actually I have a dropdown for UOM in the table and trying to populate it.
    The hierarchy is as follows
    BAPI_REQUISITION_CRE ->CHANGING -> REQUISITION_ITEM->DATA->Unit
    Thanks
    Vijai

    Hi Thomson,
    Create a context node A with cardinality 1..1 and in this create a context node A1 with cardinality 0..n and in this node create attributes TEXT and VALUE.
    Now goto method and in that method using code wizard read the node A1.
    And use the below code snippet sample in your program
    *Declare the TYPES
    TYPES :  BEGIN OF TY_TABLE,
                   TEXT  TYPE SOMETYPE,
                   VALUE TYPE SOMETYPE,
                  END OF TY_UOM.
    *Define Internal Table and work area.
    DATA : IT_TABLE TYPE STANDARD TABLE OF TY_TABLE INITIAL SIZE 0,
               WA_TABLE TYPE TY_TABLE.
    SELECT TEXT VALUE FROM TABLENAME INTO TABLE IT_TABLE.
    lr_node_info->bind_table( IT_TABLE ).
    And in the Adobe Form Layout
    Go to Menu of the Adobe LiveCycle Designer:
    Tools>Options..>DataBinding
    In that window u just check the Show Dynamic properties Check Box.
    Now for the Drop Down go the binding tab in object palette and click on the list items and there specify the text as the internal table text field and value as internal table value field and select the internal table.
    Regards
    Pradeep Goli

  • Interactive forms not rendering in GP 7.0

    Hello everyone,
    I am trying to use interactive forms in GP 7.0, I have followed the help tutorials but the interactive form is just not rendering at runtime. I am able to use successfully other callable objects but the interactive form object always states " next activity not yet started".
    I have checked on all server side configurations in Visual Admin, have given my j2ee server and mail server hostnames wherever necessary but still no success.
    Moreover I am unable to set "Synchronise System Landscape" parameters in Web Services Client - Visual Admin.
    Please provide me with suggestions on this.
    Thanks,
    Lisha

    Hi Yasar,
    I am able to successfully do the standalone interactive form scenario where a form initiates a GP process, but I am unable to do the GP scenario where form is a part of the process.
    My scenario :
    form 1 is a standalone form that triggers a GP process and sends to it some  parameters. The triggered GP process has 2 actions, first action has a webdynpro callable object that retrieves the data from form 1 and second action has an interactive form callable object that will receive data from the WD callable object and send mail/display form.
    At runtime, the form1 triggers GP process, and i can see data in the WD action, but the next action that has interactive form is not executed, neither the form is displayed, nor is it emailed. Moreover its also giving a message that action 2 has been completed!
    I believe i have done all parameter and role mappings, also have updated caf/eu/gp/model service with correct parameters. Also I have a single user as default user for all the roles, and i have set this user's mail id as well.
    Please help if you can..
    Thanks
    Lisha

  • Process an Interactive Form in a function module or method

    Hello,
    If I process an interactive form in a report everthing works fine. But when I execute the same coding in a function module or method nothing works! The call of the function module fm_name returns sy-subrc = 1 (usage error).
    I believe that function call of 'FP_JOB_OPEN' cause the problems. I can't spool this job in an function module or method.
    What can I do for using interactive Forms in a method.
    If anybody had the same problem a piece of of coding will help.
    Thanks a lot in advance
    Roger
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
      EXPORTING
        i_name     = 'Z_EXPORT_FORM_01'
      IMPORTING
        e_funcname = fm_name.
    Set output parameters and open spool job
    fp_outputparams-nodialog = 'X'. " suppress printer dialog popup
    fp_outputparams-getpdf = 'X'. " launch print preview
    CALL FUNCTION 'FP_JOB_OPEN'
      CHANGING
        ie_outputparams = fp_outputparams
      EXCEPTIONS
        cancel          = 1
        usage_error     = 2
        system_error    = 3
        internal_error  = 4
        OTHERS          = 5.
    Set form language and country (->form locale)
    fp_docparams-langu     = 'E'.
    fp_docparams-country   = 'US'.
    fp_docparams-fillable  = 'X'.
    call the generated function module
    CALL FUNCTION fm_name
      EXPORTING
        /1bcdwb/docparams    = fp_docparams
        /vwk/z_tla_vw_export = wa_z_export
        it_vehicle           = lt_vehicle
        ddinit               = ddinit
        ddcomplaint          = ddcomplaint
        ddinformation        = ddinformation
        ddpraise             = ddpraise
        ddidea               = ddidea
      IMPORTING
        /1bcdwb/formoutput   = fp_formoutput
      EXCEPTIONS
        usage_error          = 1
        system_error         = 2
        internal_error       = 3
        OTHERS               = 4.

    Yes I did.
    I have written the code as given below. It is not working either. Can you please check my code.
    DATA:
          FM_NAME TYPE RS38L_FNAM,
          FP_DOCPARAMS      TYPE SFPDOCPARAMS,
          FP_OUTPUTPARAMS   TYPE SFPOUTPUTPARAMS.
    fp_outputparams-nodialog = 'X'.
    fp_outputparams-getpdf = 'X'.
    CALL FUNCTION 'FP_JOB_OPEN'
    CHANGING
    ie_outputparams = fp_outputparams
    EXCEPTIONS
    cancel = 1
    usage_error = 2
    system_error = 3
    internal_error = 4
    OTHERS = 5.
    Get the name of the generated function module
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
    EXPORTING
    i_name = 'ZHR_APPT'
    IMPORTING
    e_funcname = fm_name.
    Set form language and country (->form locale)
    fp_docparams-langu = 'E'.
    fp_docparams-country = 'US'.
    fp_docparams-fillable = 'X'.
    call the generated function module
    CALL FUNCTION FM_NAME
        EXPORTING
          /1BCDWB/DOCPARAMS        = FP_DOCPARAMS
          T_HR                     = wa_emphr1
       IMPORTING
        /1BCDWB/FORMOUTPUT       =
        EXCEPTIONS
          USAGE_ERROR           = 1
          SYSTEM_ERROR          = 2
          INTERNAL_ERROR           = 3.
    Thx,
    John

  • BUG :  FORMS not displaying values stored in FLOAT datatypes.

    APEX 2.2.1.
    Error occurs on both V9.2.0.4 and V10.2.
    I'm working on a "report with form" combination and have been fighting a problem where the data entered into a form will save correctly and show in the report, but when you choose to edit the record to update it, the value will not display in the form at all.
    I went round and round, and finally discovered that the problem had to do with the FLOAT datatype being used to store the data.
    When creating a default "Report with Edit form" on the following two example tables, the form works correctly with SLA_SCHEDULE2 but not with SLA_SCHEDULE1
    CREATE TABLE SLA_SCHEDULE1
    ID NUMBER NOT NULL,
    NAME VARCHAR2(128 BYTE) NOT NULL,
    TRACING_PERCENTAGE FLOAT(126),
    RUNS_PER_PERIOD NUMBER,
    SECONDS_PER_PERIOD NUMBER,
    SCHEDULE_TYPE VARCHAR2(16 BYTE) NOT NULL
    CREATE TABLE SLA_SCHEDULE2
    ID NUMBER NOT NULL,
    NAME VARCHAR2(128 BYTE) NOT NULL,
    TRACING_PERCENTAGE NUMBER,
    RUNS_PER_PERIOD NUMBER,
    SECONDS_PER_PERIOD NUMBER,
    SCHEDULE_TYPE VARCHAR2(16 BYTE) NOT NULL
    The only workaround I have so far is to change the datatype of the column.
    Doug

    Based on the advice Scott gave above, I've created this function...
    CREATE OR REPLACE FUNCTION Get_Float_Value
    p_table_name           VARCHAR2,
         p_float_column_name     VARCHAR2,
         p_key_id_name          VARCHAR2,
         p_key_id_value           VARCHAR2
    RETURN FLOAT IS
    TYPE FLOAT_CURSOR IS REF CURSOR;
    f_cur FLOAT_CURSOR;
    FLOAT_VALUE FLOAT(126);
    SQL_STMT VARCHAR2(500);
    BEGIN
         SQL_STMT := 'select :a from :b where :c = :d';
         SQL_STMT := REPLACE(SQL_STMT, ':a', p_float_column_name);
         SQL_STMT := REPLACE(SQL_STMT, ':b', p_table_name);
         SQL_STMT := REPLACE(SQL_STMT, ':c', p_key_id_name);
         SQL_STMT := REPLACE(SQL_STMT, ':d', p_key_id_value);
    OPEN f_cur FOR SQL_STMT;
         LOOP
         FETCH f_cur INTO FLOAT_VALUE;
         EXIT WHEN f_CUR%NOTFOUND;
         RETURN FLOAT_VALUE;
         END LOOP;
         RETURN NULL;
    END Get_Float_Value;
    This allows you to call the function ANYWHERE you use a FLOAT, without having to create one function per table/column you might need to use it against.
    I know that I could have used a 'USING' statement on the cursor to do the replacements, but I always find it easier to debug replacement values using the REPLACE function.
    Doug

  • Acrobat Form not calculating values

    I've created an expense report for our company using Acrobat's form tools. Everything works fine except for one line.
    The first line of the form includes a cell that calculates mileage and how much an employee is owed which shows up in that line's total cell and then should carry down to the total cell for that section and the total cell for the entire form. If an employee only fills out that first line and nothing else in the form the total will not carry down to the total for the entire form.
    Can anyone help me figure out why that one line is totaling anywhere else and how I can fix it?
    Thanks!

    Hi. I am having problems creating my form. It is for ordering wine. The user enters in the amount of bottles they wish to purchase, and the form calculates the price based on a default value for the wine. All OK there. Problem is, I have two columns, one for Wine Club price and one for Recommended Retail price. I have the form set up to SUM both these prices (so it doesn't matter which is entered) and put the result in a Total field. This calculation is almost always incorrect, as if it keeps a prior input value in cache and pops it in the calculation when it isn't supposed to be there. I feel like I want to hit the refresh button! Actually, if I delete the value in the Total field and hit the return key it then does the calculation correctly, however this is no good to me as the user won't do this and therefore they will write a cheque out for the incorrect amount!
    Is there was a way to upload my form? It's so hard to explain...

  • Why doesn't a Popup Key LOV (named LOV) in a tabular form not display values in the popup?

    I have a tabular form and I'm setting one of the fields to a Popup Key LOV (named LOV). The named LOV is a static LOV. When the popup is displayed there are no values displayed. The same thing happens if I use a Popup LOV (named LOV).
    I created a sample application http://apex.oracle.com/pls/apex/f?p=15762:1that shows what happens. When the job field popup is selected, no items are displayed. If I change the item to a Select List (named LOV) it works fine.
    Is this a bug?

    Hi
    I am also getting the same issue. Hope it could be a bug.
    Can anyone plz confirm this?
    Thanks
    Lakshmi

  • PDF Interactive Forms Not Saving Data in Preview

    Interactive PDF forms opened in Preview doesn't seem to save data you fill in when you save the document. Acrobat seems to save and retain the document without a problem. Anyone know what's going on?

    Adobe wants to keep you using only Adobe software so they have designed in incompatibilities with the OS. I don't know of any other PDF tool that can do fill-in forms. If you want to use fill-in forms, you'll have to print it using CUPS-PDF (I haven't tried this with Leopard yet). You could also use Skim to turn any PDF into a fill-in form.

Maybe you are looking for