Binding fileds of a PDF to a webdynpro context

Hi to all,
I created a pdf with abobe lifecycle designer 7.1 then I imported it in a webdynpro view as an interactive form element. Then I binded the pdf fields with a context in webdynpro view, this context is binded to a RFC model which writes datas on a sap system table. The aim of this project is to write some datas on the pdf and, after pressing a submit button, all these datas will be saved on the SAP system. My problem is that the binding between fields on PDF and view context doesn't work!!!
Can you help me, please?
Thank you very much,
Antonio

Ok, got it. I suspected you were looking for something a little more dynamic.
You're correct, APEX doesn't have such feature yet.
This is still more code than you may want, but would something like this work:
-- FETCH Process
begin
  l_page_base := 'P1_';
  for c in (select column_name, column_value from my_table)
  loop
       apex_util.set_session_state(l_page_base || c.column_name, c.column_value);
  end loop;
end;You'll need all the items created on the page of course, but it's possible to cut down on the code and make the fetch a little more dynamic.
Then in the Submit I can do an apex_utl.get_session_state(item) and also loop through the elements.
I've also used this technique.. but it was a pain as I was re-inventing the wheel completely.
var options = {
    url:       'http://URL_PROCEDURE'
// The Form "SAVE/SUBMIT" button would NOT submit the page and instead call this code
$.post(options.url
  , $(this).serialize()
  , function (pJSON) {processResult(pJSON);}
  , "text");
function processResult (pJSON) {
   var resp = $u_eval('(' + pJSON + ')');
   if (resp.row[0].status == 'SUCCESS') {
       window.location = 'f?p=&APP_ID.:SUCCESS_PAGE:0:';
   else {
       $('#uSuccessMessage').html((ie)?resp.row[0].error : resp.row[0].htmlError);
       // if get got an item, set the focus on it
       if (resp.row[0].item) {
         $('#' + resp.row[0].item).focus();
}With this technique, the serialize passes value pairs in the URL to URL_PROCEDURE with all the fields on the form.
It still required a lot of code and you're not really using APEX at this point any more.
Good luck.
-Jorge

Similar Messages

  • Dynamic element binding between XML based PDF form and WDA context

    Hi Experts,
    I am working on a XML based interactive form.There is a table node in the XML interface which generated by WDA context, and binding on a subform in the PDF form.
    I tried to add instances to the subform using javascript. Unfortunately, I can not get the internal table in WDA.
    If I initialize the table to 10 lines in WDA , and then add 5 line to it in PDF, when I submit the PDF, I can only get 10 lines in the WDA framework. It seems that the element which is create dynamically can not be past to the interface.
    Could you tell me why? And is there any other better solution? I just want build a table in PDF form in runtime and pass it to WDA context.
    Thanks a lot!
    Best Regards,
    Guo Guo Qing

    Hi Thomas,
    Thank you for your reply.
    I think the performance will be a problem if I create the elment in WDA using submit event. I need to create hundreds of record dynamically. I must find some way to reduce the communication between the WDA and PDF form. Maybe I can set a container with a number of elements before the PDF output. Do you have some better ideas?
    Best Regards,
    Guo Guo Qing

  • Round trip clearing adobe form field values not binded to webdynpro context

    Hi ,
    I have developed a webdynpro ABAP application with Interactive form. I'm calling a webservice on 'exit event' of the one of the form fields. Once webservice is executed, Im filling a table with 300 rows which is in the form. The table fileds are binded to webservice fields from the dataview of the form , these are not webdynpro context attributes in the data view.
    But when I open any seach help , this table values are disappearing. I need to execute the webservice again to get the values.
    can any one tell why the values in the table are disappearing? since I have binded to the webservice fields the values should remain there.
    Apprecaite your response.
    Regards,
    Ravi

    I looked over that note yesterday, but too quickly - i thought it was an older note explaining which standard programs to run to test out the connection etc...
    but i see now that there is an important point:
    The "pdfSource" attribute of the InteractiveForm UI element should be linked only if the Web Dynpro ABAP application requires the PDF document for further processing (saving data to the database, and so on). However, it is mostly only the data entered in the interactive form that is relevant for the application. If this attribute is linked, the Web Dynpro ABAP framework must request an updated PDF document from the Adobe document services each time data is changed in the form.
    It looks like this is saying that a round trip is possible in WDA.
    EDIT - I wish SAP would fix this certificate issue. My first post every day is doubled because of it.
    Edited by: robert phelan on Jan 7, 2010 3:22 PM
    Edited by: robert phelan on Jan 7, 2010 3:25 PM

  • How to create the PDF file in WebDynpro?

    Hi.
           How to create PDF file in Webdynpro?
    I have one WD screen In there i have one File Download action. Once i click that it will open one PDF file which consisting of all details.
    Pls reply me.
    with regards,
    Gobintah.R

    Hi
    Check these links
    Re: Opening a PDF File from WebDynpro
    Re: Generating PDF file using FOP API in Web Dynpro
    http://help.sap.com/saphelp_nw04/helpdata/en/1a/ff773f12f14a18e10000000a114084/frameset.htm
    Thanks
    Edited by: Anup Bharti on Oct 16, 2008 11:51 AM

  • Binding and displaying data to table in webdynpro java

    hi all,
    i want to know how to bind the output values to table in webdynpro java.
    i know how to bind values in context to table,but if we want to display the values from database(back end ) and display in table present in the view.
    eg: i have table in view and want to get values from backend(SQL server) and display it in that table.
    plz help me to know ..
    thanks
    sirisha

    Hi Saisirisha,
    Try this.
    1> Take a Value Node(Employee) cardinality 0..n.
    Employee Structure
    Employee
    |------Surname(Attribute)
    |------FirstName(Attribute)
    |------Category(Attribute)
    2> Bind this value node(Employee) in the View datasource of table.
    3> Try the code inside wdDoInit method.
    try {
         // Load the JDBC-ODBC bridge
         Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
         // specify the ODBC data source's URL
         String url = "jdbc:odbc:SSPer";
         // connect
         Connection con = DriverManager.getConnection(url,"North","Ken");
         // create and execute a SELECT
         Statement stmt = con.createStatement();
         ResultSet rs = stmt.executeQuery
         ("SELECT Surname,FirstName,Category FROM Per");
         while (rs.next()) {
         // get current row values
         String Surname = rs.getString(1);
         String FirstName = rs.getString(2);
         int Category = rs.getInt(3);
         //create table row and add the value in the table
         IPrivate<Put View Name>.IEmployeeElement empElm = wdContext.createEmployeeElement();
            empElm.setSurname(Surname);
         empElm.setFirstName(FirstName);
         empElm.setCategory(Category);
         wdContext.nodeEmployee().addElement(empElm);
         // close statement and connection
         stmt.close();
         con.close();
    } catch (java.lang.Exception ex) {
         wdComponentAPI.getMessageManager().reportException("Exception : "ex.getMessage()+,true);
    http://www.developer.com/java/data/article.php/3417381
    Regards,
    Mithu

  • How to upload a pdf file using webdynpro abap

    Hi Experts,
    I need to upload pdf files using webdynpro abap.my question is where to upload this files and how to upload this files, and how to display this pdf file.
    Please Provide Requried Information.
    Waiting for Reply.
    Thanks & Regards.
    Bhushan.

    Hi,
    There is a UI element with the type 'File Upload'.
    You can use that in your view.
    For further details and coding, please refer to
    [http://www.****************/Tutorials/WebDynproABAP/Upload/Page1.htm]
    Hope this helps you.
    Regards,
    Dolly

  • Convert smartform as PDF from ABAP Webdynpro

    Hi,
    I want to convert smartform as pdf from ABAP webdynpro.
    Flow: SmartForm-->Generating Function Module -->Getting Output Data --> Converting OTF to PDF --> Open/Save PDF file in ABAP webdynpro.
    What are the sequence of function modules to be used for this?
    OR
    Is there any other way to convert smartform as pdf from ABAP webdynpro?
    plz give me the flow and FM'details clearly in detail.

    Look here https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785
    Cheers
    Graham Robbo

  • Error in displaying PDF file in webdynpro application

    Hi Experts,
    I am trying to display one pdf file using webdynpro abap using MIME.
    While executing the application i am getting an error in the browser:
    " File doesnot begin with '%PDF-' "
    Please help me to proceed.
    Regards,
    Arun.

    Hi Arun,
    Please check this...
    File does not begin with %PDF
    File does not begin with %PDF
    Cheers,
    Kris.

  • Display pdf file using webdynpro abap

    Hi Friends,
    My requirement is to display pdf file in the second page with the input  text  entered in the fisrt page when clicked on action
    button( in the first page) using webdynpro abap.
    Can anybody explain the step by step procedure as I am new to this area.
    Thanks in advance.
    Reagrds,
    Nagaraju

    Hi,
    Check this.,
    Creating a PDF file in webdynpro abap.
    Web Dynpro ABAP display pdf
    hope this helps u.,
    Thanks & Regards
    Kiran

  • Convert smartform to pdf from ABAP webdynpro

    Hi,
    I want to convert smartform to pdf from ABAP webdynpro and
    I want to display pdf in ABAP wedynpro view or portal iview.
    what are the steps needs to be followed?
    what are the classes and interfaces needs to be used?

    Hi,
    Please check this it might be useful.
    Data: tab_otf_data    type  ssfcrescl,
             wa_out_opt      type  ssfcompop,
             wa_con_params   type  ssfctrlop.
              wa_rspoid       type  rspoid,
    parameter:p_file like rlgrap-filename no-display.
    Follow control parameters
           wa_out_opt-tdimmed = 'X'.
             wa_out_opt-tdnewid = 'X'
            wa_con_params-no_dialog = 'X '.
    if you want print direct  pass
            wa_out_opt-tddest  = 'printer' (SAP Printer)
    If you are using multiple header records  use loop other wise no need
       note that when multple headers
      pass count and count > 1 means more than one header change control parameters to create single spool for all.
    Loop itabXXXX.                                      " multiple header starts
      count = count + 1.
          if count > 1.
            wa_con_params-no_open = ' '.
            wa_out_opt-tdnewid = ' '.
          endif.                                               " multiple header ends
    call function  fm_name
            exporting
              control_parameters = wa_con_params
              output_options     = wa_out_opt
              header_header      = wa_ven
            importing
              job_output_info    = tab_otf_data
            tables
              header_details     = itab_final
            exceptions
              formatting_error   = 1
              internal_error     = 2
              send_error         = 3
              user_canceled      = 4
              others             = 5.
             at last.                                                         " multiple header starts
            wa_con_params-no_close = ' '.
            wa_con_params-no_dialog = 'X'.
          endat.                                                           " multiple header ends
    endloop.
    you will get  the otf data and spool id from  'tab_otf_data'
    read table tab_otf_data-spoolids index 1 into wa_rspoid.  " Now you get spool no in wa_rspoid.
    " pass spool in to rstxpdft4 it converts to pdf".
    submit rstxpdft4
               with spoolno = wa_rspoid
               with p_file = p_file
               and return.
    I feel that your problem will solve....
    Thanks,
    Hari

  • Create Microsoft Word or PDF document in WebDynpro

    Hi,
    I need to create either a WORD or PDF document in WebDynpro. Can someone provide some information regardign this.
    Ravi ...

    Hi Ravi,
    why haven't you marked this question as a question? There's a checkbox for that.
    Please note that there's a Web Dynpro forum for questions about Web Dynpro: Web Dynpro Java
    Do you use Web Dynpro ABAP or Java?
    For WD4A the information about PDF is here:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/frameset.htm
    And for Word documents you can use the UI element OfficeControl:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/af8841349e1909e10000000a155106/frameset.htm
    Regards, Heidi

  • Creating a PDF file in webdynpro abap.

    Hi friends,
        Can anybody tell me how to create PDF file in webdynpro abap and how to save and edit, copy etc., whatever you can do through normal pdf file?
    I have checked with the standard application WDR_TEST_ADOBE and WDR_TEST_ADOBE_ONLY. But none of the applications are working...
    Could anyone please suggest me how to do this?
    Regards
    Sireesha.

    Hello Sireesha,
    Good places to start are the online help and tutorials, which you can find here:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/interactiveforms-elearning">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/interactiveforms-elearning</a>
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/frameset.htm">http://help.sap.com/saphelp_erp2005/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/frameset.htm</a>
    Best regards,
    Thomas

  • Webdynpro context not available in Interactive form layout

    Hi,
    I have take one Interactive form element and provided the Tempalte Source (new formanme) it asked me to create the pdf interface i give the interface name, and,selected the context then save it. pdf layout design is opend but there is not context which i have mapped from wd in pdf.
    where as if i use sflight in webdynpro context node, it is working ( i can see the dataview of sflight in pdf layout) but not in case of z*structures any reason please let me know.
    Thanks,
    mahesh.gattu

    What is the datasource of your UI interactive forms.
    data source is the context of the webdynpro view.
    as i described earlier, i am assigning the context when creating the form interface.
    once it is done automatically datasource will be binded with context ndoe.
    i am getting one more problem,i selected enable check box to become interactive form even though the form is not become interactive why.
    even i tried with activex/native both also.
    thanks,
    mahesh.gattu

  • Error : A READ-ONLY bind variable used in OUT or IN-OUT context

    Hi,
    I got error from my report as A READ-ONLY bind variable used in OUT or IN-OUT context in formula column. I already face this problem but at that time i cleared , but now i cont able to do, please give suggestion to this
    regards
    venki

    I find my ERROR in that report, that A READ-ONLY bind variable used in OUT or IN-OUT context is
    when we assign a database column in a placeholder are summary column.
    From that placeholder or summary column will call by formula column
    you might be face that error, But how means
    when that database column , we are assign that decode, case or NVL funtion using else condition as Null you may be face that error.
    Without my knowledge it may seem some other problem also
    without any idea we con't able to clear this error.
    venki

  • Open PDF Document in WebDynpro

    Hi experts,
    it is possible to open a PDF-File in a WebDynpro application or from a WebDynpro application in a new window? How can I do this and what are the prerequisites?
    Thanks in advance!

    Use the FileDownload UI element as pointed out above ....
    You need to store the File in the MIME Reporsitory and use ABAP Function modules for Mime Repository to get the File, in XSTRING formet.
    Try SAP_OI_LOAD_MIME_DATA. Then U can use the FM ECATT_CONV_STRING_TO_XSTRING to convert from string to XSTRING.
    Create an Attribute in context of type XSTRING and bind it to the 'data' property of FileDownload. Fill this attribute with the output of ECATT_CONV_STRING_TO_XSTRING (in XSTRING format).
    Set the MimeType property to 'application/pdf'. Check out the other prperties of FileDownload. Its fairly simple.
    Another way is to set the reponse explicitly to PDF...without using FileDownload
    CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE
      FILENAME = whatever
      I_CONTENT = this is the data u get from the above module in XSTRING format
      I_MIME_TYPE = 'application/pdf'
    I_IN_NEW_WINDOW = abap_true
    Thanks
    Anand

Maybe you are looking for

  • Diffrence between File Transport and CTS+ Transport in PI

    Hi Guys,    Can you please explain me the diffrence between File Transport and CTS+ Transport in PI.    What are the advantages of CTS+ Transportation over FILE Transportation... Thanks, Siva...

  • Too many database connections and configurator logins ?

    Hi, We're having some performance and/or stability problem with Oracle Waveset 8.1.1. patch 2. I'm not sure what the problems is yet, but two facts got my attention: I noticed for too many database connections waiting to be closed on the OS, varying

  • Sending SMS throw portal

    Hi Experts,              How we implement SMS throw portal if we can implement explain the procedure.In our project we don't have R/3 in this phase.

  • How to find link between Business partner and Org unit in Solution manager

    Hi experts, Please!!! I have a requirement where my rule finds business partner assinged for that support team and in transaction ppoma_crm we have org unit assigned to that business partner number below that we have positions and user assigned... I

  • Ps touch freezing

    My ps touch app keeps freezing on my Samsung galaxy note 10.1. It worked fine the last time I used it, which was about 3 weeks ago.