How to populate dynamic table in Adobe Livecycle form with cfpdfform?

Hello all,
after two days search on the above topic without results I hope someone here can help me.
The problem:
I have an Adobe PDF form created with Adobe Livecycle Designer that has a dynamic table inside it. The table Table1 consists of a Header Row with 4 cells of text and a data row Row1 with four cells each one having a Textfield Cell1, Cell2,Cell3 and Cell4.
Table1 sits inside a subform mytable. The subform is made to flow and the Row1 has the Binding Repeat Row for Each Data Item checked.
Everything is enclosed within the standard subform form1.
Whe I use the following code, I supposed that the table should have two rows..because it is said it will be dynamic:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<cfpdfform action="populate" source="test.pdf" destination="testout.pdf" overwrite="yes" >
<cfpdfsubform name="form1">
  <cfpdfsubform name="mytable">
    <cfpdfsubform name="Table1">
      <cfpdfsubform name="Row1">
        <cfpdfformparam name="Cell1" value="1">
        <cfpdfformparam name="Cell2" value="2">
        <cfpdfformparam name="Cell3" value="3">
        <cfpdfformparam name="Cell4" value="4">
      </cfpdfsubform>
      <cfpdfsubform name="Row2">
        <cfpdfformparam name="Cell1" value="5">
        <cfpdfformparam name="Cell2" value="6">
        <cfpdfformparam name="Cell3" value="7">
        <cfpdfformparam name="Cell4" value="8">
      </cfpdfsubform>
    </cfpdfsubform>
  </cfpdfsubform>
</cfpdfsubform>
</cfpdfform>
<cfpdfform action="read" source="testout.pdf" result="testout" />
<cfdump var="#testout#">
</body>
</html>
What happes is:
The testout.pdf displays just one row,with the values 1,2,3,4 the second row is only visible when I export the data as xml but not within the PDF.
Please can someone enlighten me?
Thanks and regards
Gilbert

When populating your pdf fields, you can loop through all the records in a query like so...
   <cfloop from="1" to="#query1.recordCount#" index="i">
            <cfpdfformparam name="txtField1_#i#" value="#query1.Field1[i]#">
            <cfpdfformparam name="txtField2_#i#" value="#query1.Field2[i]#">
  </cfloop>
This will handle two rows or thirty rows just the same.  In this case my fields in the pdf have the row # as a suffix.

Similar Messages

  • DYNAMIC TABLE IN WEBDYNPRO INTERACTIVE FORM

    Hi,
      I am using dynamic table in interactive form(webdynpro java).  In that form i bind node for to populate the details for the table. The details should be come from RFC.
    The RFC contains more than one record. While i tried to populate all the records to the dynamic table i cant able to got all the datas. I got only one record to the table.
        Interactive Form table node structure is:
                Node                                          Cardinality                             Singleton
    vnPDFDataSource                                    1..1                                         true
            chnTableList                                     1..1                                         true
                           chnTableRow                     0..n                                         true
                                   chnRowData              1..n                                        false
                                             attr-1
                                               attr-2
                                                attr-n
    o   The nodes bound to table and row in Adobe form are:
    chnTableList u2013 bound to Table
    chnTableRow u2013 bound to Row   
    If anybody know means let me tell how to solve the problem.
    Thanks,
    Senthil prabhu

    Hi,
    To add a row in dynamic table in interactive form How to create dynamic table in the interactive form
    also check page 11-13 in this docuemnt https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/63f09fc2-0401-0010-1482-dbf9891e7613
    after adding it you can send the table data to rfc asusal Problems while setting Multiple Rows of data as Table Parameter to the RFC
    give a lot at this too want to save data
    regards,
    Pradeep

  • DYNAMIC TABLE IN WEBDYNPRO INTERACTIVE FORM TO WDCONTEXT

    Hi,
    I am working with Interactive Form in (Webdynpro Java). In that form i am having Dynamic table. For that Table datas are comes from Bapi.
    In that table i have ADD button to add a row. If i add a row and enter datas in that row means were it should be stored?
    How can i send those added datas to Bapi? There is any possible way in SP12?
    Please let me know if any way is there?
    Thanks,
    Senthil prabhu

    Hi,
    To add a row in dynamic table in interactive form How to create dynamic table in the interactive form
    also check page 11-13 in this docuemnt https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/63f09fc2-0401-0010-1482-dbf9891e7613
    after adding it you can send the table data to rfc asusal Problems while setting Multiple Rows of data as Table Parameter to the RFC
    give a lot at this too want to save data
    regards,
    Pradeep

  • Merging of cells of a dynamic table in adobe form

    Hi,
    I am trying to Merge 2 columns in a dynamic table in adobe form.The requirement is to merge column 3 and column 4 if column 4 is empty. I used the below javascript code in both "Form ready " and Initialize event of the row.
    if (this.Cell4.rawValue == " ")
    this.Cell3.colSpan = "2";
    this.Cell4.presence = "hidden";
    Note : Since above code was not working , i used the below code in my subform also but it did not returned desired output.
    if(Table22.Row1.Cell1.rawValue == " ")
    Table22.Row1.Cell3.colSpan = "2";
    Table22.Row1.Cell4.presence = "hidden";
    The problem is that in my dynamic table , its the second row where the requirement is fulfilled ie in the 2nd entry of my table the column4 is blank (the exact row number might change depending on input data).
    is there a way to loop in the dynamic table and check if column 4 is empty for a particular row.
    the above code does not help to fulfill my requirements. kindly help.
    Thanks
    Aditi

    Hello Aditi priya,
    Hope you are doing good..
    Please go through my recent blog..
    http://scn.sap.com/community/interactive-forms-by-adobe/blog/2015/01/02/merging-internal-table-cells-dynamically-in-sap-adobe-forms-using-java-script-code
    I hope you will find all answers from this blog..Reward if helpful...
    Thanks & Regards,
    B Raghu Prasad

  • How to Populate Internal table data to Table Control in a Report Program

    Dear All,
           How to Populate Internal table data to Table Control in a Report Program? It is a pure report program with out any Module pool coding involved, which is just used to display data. Till now it is being displayed in a report. Now the user wants the data to be displayed in a table control. Could someone tell me how to go about with this.
    Thanks in Advance,
    Joseph Reddy

    If you want to use a table control, you will need to create a screen.
    In your report....
    start-of-selection.
    perform get_data.  " Get all your data here
    call screen 100. " Now present to the user.
    Double click on the "100" in your call screen statement.  This will forward navigate you to the screen.  If you have not created it yet, it will ask you if you want to create it, say yes.  Go into screen painter or layout of the screen.  Use the table control wizard to help you along the process.  It will write the code for you.  Since it is an output only table control, it will be really easy with not a lot of code. 
    A better way to present the data to the user would be to give it in a ALV grid.  If you want to go that way, it is a lot easier.  Here is a sample of the ALV function module.  You don't even have to create a screen.
    report zrich_0004
           no standard page heading.
    type-pools slis.
    data: fieldcat type slis_t_fieldcat_alv.
    data: begin of imara occurs 0,
          matnr type mara-matnr,
          maktx type makt-maktx,
          end of imara.
    * Selection Screen
    selection-screen begin of block b1 with frame title text-001 .
    select-options: s_matnr for imara-matnr .
    selection-screen end of block b1.
    start-of-selection.
      perform get_data.
      perform write_report.
    *  Get_Data
    form get_data.
      select  mara~matnr makt~maktx
                into corresponding fields of table imara
                  from mara
                   inner join makt
                     on mara~matnr = makt~matnr
                        where mara~matnr in s_matnr
                          and makt~spras = sy-langu.
    endform.
    *  WRITE_REPORT
    form write_report.
      perform build_field_catalog.
    * CALL ABAP LIST VIEWER (ALV)
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                it_fieldcat = fieldcat
           tables
                t_outtab    = imara.
    endform.
    * BUILD_FIELD_CATALOG
    form build_field_catalog.
      data: fc_tmp type slis_t_fieldcat_alv with header line.
      clear: fieldcat. refresh: fieldcat.
      clear: fc_tmp.
      fc_tmp-reptext_ddic    = 'Material Number'.
      fc_tmp-fieldname  = 'MATNR'.
      fc_tmp-tabname   = 'IMARA'.
      fc_tmp-outputlen  = '18'.
      fc_tmp-col_pos    = 2.
      append fc_tmp to fieldcat.
      clear: fc_tmp.
      fc_tmp-reptext_ddic    = 'Material'.
      fc_tmp-fieldname  = 'MAKTX'.
      fc_tmp-tabname   = 'IMARA'.
      fc_tmp-outputlen  = '40'.
      fc_tmp-col_pos    = 3.
      append fc_tmp to fieldcat.
    endform.
    Regards,
    Rich Heilman

  • How to populate a table based on a row selection from another table.

    Hi, i just started to use ADF BC and Faces. Could some one help me or point me a solution on the following scenario .
    By using a search component , a table is being displayed as a search result. If i select any row in the resulted table , i need to populate an another table at the bottom of the same page from another view. These two tables are related by primary key . May i know how to populate a table based on a row selection from another table. Thanks
    ganesh

    I understand your requirement and the tutorial doesn't talk about Association between the views so that you can create a Master-Detail or in DB parlance, a Parent-Child relationship.
    I will assume that we are dealing with two entities here: Department and Employees where a particular Department has many Employees and hence a Parent-Child relationship.
    Firstly, you need to create an Association between the two Entities - Department and Employees. You can do that by right clicking on the model's entity and then associating the two entities with the appropriate key say, DepartmentId.
    Once you have done that, you need to link the two entities in the View section with this Association that you created. Then go to AppModule and make sure that in the Available View Objects: 'EmployeesView' appears under 'DepartmentView' as "EmployeesView via <link you created>". Shuttle the 'DepartmentView' to the right, Data Model and then shuttle
    "EmployeesView via <link you created>" to the right, Data Model under 'DepartmentView'.
    This will then be reflected in your Data Controls. After that, you simply would have to drag this View into your page as a Master-Detail form...and then when you run this page, any row selected in the Master table, would display the data in the Detail table.
    Also, refer to this link: [Master-Detail|http://baigsorcl.blogspot.com/2010/03/creating-master-detail-form-in-adf.html]
    Hope this helps.

  • How to Populate a table in PL/SQL

    Hi Every1,
    please clarify me How to Populate a table in PL/SQL,Thanx in advance...
    Thanks & Regards,
    Ram Nainar S

    Not possible. SQL is used to populate tables - it is the language that interacts (CRUD) Oracle data in tables. Not PL/SQL.
    So even when using PL/SQL, you still need to use SQL. Thus "populating" a table is no different than using SQL or using SQL (from inside PL/SQL).

  • How to use Adobe LiveCycle Forms Standard / Pro to leverage features in Adobe Reader

    Can someone please tell me how to use the Adobe LiveCycle Forms Standard or Pro module to leverage features in Adobe Reader? Do you also need to have the Reader Extensions Module?
    The forms data sheet says that it is possible to leverage features in Adobe Reader but does not go on to detail how.

    Depends on your deployment pattern.  You can just use Reader Extensions if you're publishing forms on a site, if you need to prefill or perform other processing on the template then LiveCycle Forms is needed.  If you want to render to HTML5 for tablet support then Forms Pro is needed.

  • How to create Dynamic Table Control

    Hi
    How to create Dynamic Table control , The field names and values to be displayed in table control are to be fetched from Add-on Tables.
    Regards
    Prasath

    Hi Jonathan,
    Actually the columns to be displayed are not constant . It will be increased based on the database values, Anyhow it will not exceed 100.
    Please confirm my understanding.
    1. In this case I have to create 100 custom columns and make it visible / invisible based on my requirement and I can set the title at runtime.
    2. How can i assosicate / reassociate the datadictionary reference for the columns that i use. Because I need to show the search help values for the
    dynamic columns.
    Your opinion on this will be helpful.
    Regards
    Prasath

  • How to use Adobe Interactive forms with ISR frame work in Webdynpro forJava

    Hi,
    Anybody worked on Adobe Interactive forms with ISR frame work in Webdynpro for Java in ESS/MSS development.
    We have already searched in ISR_Cookbook_2004, however we didn't anything related webdynpro for java in that.
    Any information regarding this will be of great help.
    Regards
    Satish Kumar

    There are a number of issues here. A form that you created with LiveCycle Designer (XFA) cannot be used with FormsCentral. An Acroform, the kind you can create with Acrobat, can be used with FormsCentral, with certain limitations,  one of which is skip logic. A dynamic XFA form allows for this type of thing, but as mentioned, they don't work with FormsCentral. You can set up an Acroform to show/hide or activate/inactivate fields based on selections or entries made in other fields, but you'd have to set this up in Acrobat, not FormsCentral. So you can set up something roughly equivalent to a web form's skip logic, but you'd have to learn how to do this in Acrobat using JavaScript. There is a separate Acrobat JavaScript forum here if you have any questions.

  • Adobe LiveCycle Forms Versus Adobe Document Services

    I've read in the "Best Practices for Improving Performance in Dynamic PDF Forms" that Adobe LiveCycle Forms can explicitly off-load the job of rendering a form onto Adobe Reader.
    My question is, "Can Adobe Document Services do the same?" ADS is for users working in a SAP environment but it's suppose to have the same functionality as "Adobe LiveCycle Forms", so I'm hoping we'll be able to do this.

    Well, I know it's possible, but I have no idea how you would do it in that environment. You may want to speak to your SAP support guys for that.
    Chris
    Adobe Enterprise Developer Support

  • How to achieve dynamic page break in Smart form

    Hi
              1.How to achieve dynamic page breaks in Smart forms.
               2.What are the various table types in Smart forms.
    Regards

    <i>Dynamic page break : </i>
    create a node of type COMMAND and in its attributes check "Go to new page".
    <i>There are Tables and Templates in smart forms :</i>
    Use node type <i>Template</i> to display a table whose layout and size (number of lines and columns) is determined before the runtime of the print program else use <i>Table</i>.
    Take a look at <a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf">SAP Smart Forms (BC-SRV-SCR)</a>
    Regards

  • Populate livecycle form with data in iOS / android

    Hi,
    I need to populate the livecycle form with data in offline mode in iOS or android. How do I achieve that? Any help is greatly appreciated.

    Thats good news.
    Is there a way currently to populate the livecycle static pdf with data in offline mode in iOS/ Andriod? For eg. if the data is in a xml file, is there a way to populate it into pdf in offline mode? If not, is it possible to achieve this in native code? Kindly help.

  • How to enable frontend printing using Adobe Print Forms

    Otto Gold at the forum "SAP Interactive Forms by Adobe" gave me the tip that Sandra Rossi in this forum might help me out. Here is the link to my original thread How to enable frontend printing using Adobe Print Forms
    My question was:
    Hi Experts!
    Did anyone of you manage to enable frontend printing using Adobe Print Forms? In order to save administration effort we use frontend printing in our ERP system. We just changed some SMARTFORMS to the new Adobe Forms technology. Now we learned that direct frontend printing does not work with these forms.
    Any help will be very much appreciated.
    Kind Regards,
    Gerald

    I think you'll be disappointed by a rather negative answer but I'll try to explain everything I know (or think I know) the best I can
    The simplest solution is to do a preview, and print from Adobe Reader! (as I could see on one project, users have to display one more dialog than usually to print) It's the best workaround according to me.
    How Adobe form printing works:
    When you print an Adobe form from SAP, a printer language (PCL, PS, ZPL, PDF) is retrieved from TSP0B table according to the device type, ADS (Adobe Document Services, installed in the SAP java stack) is then contacted to generate the form: a file corresponding to the printer language is generated and sent back to SAP (there are also 2 other little files but it's of none interest here). SAP stores it as a file (named SPOOL...) in the global directory (DIR_GLOBAL when you use AL11 transaction).
    When you ask SAP to print it, it sends the file as is to the printer.
    Note: when you ask SAP to display the spool, SAP sends a request to ADS which will send back a PDF (binary stream which is not stored on disk, just displayed on frontend).
    How frontend printing works:
    If you want to print a normal spool via frontend, SAP doesn't know the language of the printer you will choose. SAP sends the spool in a format named SAPWIN to a frontend program named SAPLPD, it converts the SAPWIN format into GDI, a Windows format that is understood by all printer drivers, and it is sent to the printer driver (you have selected) which converts the GDI format into the printer language.
    Any workaround?
    First possibility would be that ADS converts the PDF into SAPWIN format (by creating an Adobe .XDC file at the ADS side). SAP says it's not possible in Note 685571 - Printing PDF-based forms. As I understand, SAPWIN is a very simple language compared to PCL for example, so it is very difficult to convert a PDF to SAPWIN without losing much information. There's a SAP note about the SAPWIN language if you want to check.
    Second possibility is to print directly the PDF through Adobe Reader: you get the PDF from ADS, download it to the frontend (easy), and execute directly Adobe Reader print function. Unfortunately, I don't know if it's possible. Moreover, we should enhance the standard SAP print dialog...
    Third possibility is the one I recommended at the beginning of this post

  • IBM workplace forms to Adobe LiveCycle forms

    Hi
    I have been using IBM Workplace forms in my application for a long time and now want to migrate to adobe livecycle forms. Please can anyone tell me about how much similar are both? What all should i look out for while migrating. ?
    Regards
    Ullas

    We are also looking into a similar type of project. I'm not well versed in the IBM software, but I suspect there is no utlity or conversion tool to automate some of the transition work. (ie creating fields and other common objects)
    We are looking at re-desinging the forms from scratch.

Maybe you are looking for

  • How do i open an email attachment on ipad?

    I cannot open any attachments on my ipad. Can anyone maybe tell me why or what I can do ?

  • My phone has no audio capabilities. What can I do?

    My screen broke, had it repaired. Shortly after, ALL sounds stopped working. No volume, mic, phone, vibrate(?). Had it looked at by different repair person, they replaced a few parts then said it's not fixable, must be motherboard. Will Apple still f

  • Strange XMLP implementation on HRMS Compensation Workbench

    We are looking to create reports off the Compensation Workbench (CWB). As it follows from the viewlet found in the Metalink Note 311702.1, XMLP is implemented for the CWB in some pretty strange fashion not described anywhere in the XMLP documentation

  • The extraction structure V_KONA_PROMO of DS 0PROMOTION_ATTR is a view. This

    Hi, I am Activating master datasources from ECC for BI7, i am getting this error ' The extraction structure V_KONA_PROMO of DS 0PROMOTION_ATTR is a view. This allows no CustApp '. Does any one know what esxactly this is ? Regards.

  • L420 and Windows 8 Defender not compatible?

    Althougth Lenovo claims that the L420 is Windows 8 compatible, MS Defender slows down Windows Explorer extremely. Drive ICONs take a long time to show up. When I switch off Defender, every things comes up quickly. I have switched to AVAST! Free and e