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

Similar Messages

  • Regarding dynamic tables in interactive forms

    Hi All,
            I have designed a webdynpro view which contains a table,i have to generate a pdf format file which also contains
    a table as there in the webdynpro view.
            I  have designed a dynamic table in interactive form and binded the interactive form ui element with the datasource and pdfSource.
    In the interactive form i am getting only one row data of webdynpro view table.In the Object palette, I selected Repeat Row For Each Data Item.
           share with me if u have any idea or send any document regarding table binding(dynamic) in interactive form.
    Thanks & Regards,
    saleem

    Hi saleem..
    Check this link..
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0401535-f81c-2a10-0192-ffd41e8e8d59">Dynamic interactive forms an example</a>
    https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#47
    Urs Gs

  • How to use nested tables in adobe form

    Hi All,
    I have to use nested tables in adobe form for table display. I have used Subforms for displaying table data. I have changed accessibility of the subforms. Currently i am able to print print the table correctly if there is single material record in table 1 and single corresponding record in table 2. But the requirement is that i will have multiple lines in table 1 for single material and only one record in table 2.
    EX: form is for Sales order. in line items if the order is for 100 units then we if we have delivered material as 80, 10, 10, then table 1 will have 3 lines for this. Table 2 will always have only 1 corresponding record.
    item--materialdescription-ordered qty--delivered qty--delivery date-price  
    xxx--xxxxxxx-xxxxxxxxx-10080xxxxxxxxxx-xxxx
    10----
    xxxxxxxxxx
    10----
    xxxxxxxxxx
    yyyyyyyyyyyyyyyyyyy------yyyyyyyyyyyyyyyyyyyyy 
    xxxxxx is table 1 and will have multiple lines
    yyyyyy is table 2 and will have only 1 entry for item xxx
    and this group will be repeate as per no of items. table 1 can have any no of lines per item.
    I am currently able to display 1 line for table 1 and 1 line for table 2.
    But how to show multiple lines for table 1 and 1 line for table 2.

    HI,
          Set the body page as flowed and set the tables also flowed.
    go to bodypage>object->subform-->select flowed option.
    I thihnk this will work..if u are getting all the records properly into the tables 1 and 2.
    Thanks,
    Mahdukar

  • How do I get to have more than 20 columns in a table in adobe form?

    I see that there is limitaion to not have more than 20 columns in my table in adobe form, Is there any way I can have more than 20 columns in a table in adobe form in landscape mode.

    Hi,
    That only relates to the Table Wizard. Once the table is placed on the page, you can add columns manually, from the menu or right-clicking on a column.
    You can also use fields within a repeating subform (instead of the table object).
    Good luck,
    Niall

  • Problem with table in Adobe Form in Web Dynpro JAVA??

    Hello all,
    I have an issue with the table displaying all the node values in the Adove Form. Right now it displays only the first element of the Node even if there are multiple entries.
    Not sure what is going wrong here.
    How is the table created in a interactive form? Any help is appreciated.
    Thank you, John

    Siva,
    I referred to the website, but still having issues with generating tables in Adobe Form. I can get all the table rows in the adove form, but the pdf doee not add new pages to display all the table rows. It just createa one page with the table inside it, display few of the rows and truncates rest of the table data.
    Here is the heirarchy of the page with the properties set
    Master Pages ---
            ||--> Page 1
                     ||--> content area
                     ||--> subfrom (properties:: Content - Flowed / Flow direction - top to bottom...pagination tab is greayed out completly)
                                ||--> Table
                                          ||--> HeaderRows (Object: Row - Type: Header Row)
                                          ||--> Row1 (Object Tab/Binding: Repeat Row for each data item - checked)
    Can't make it wor, not sure what's wrong here
    I am using NDS 7.0 SP18 and Adobe LiveCycle 8.0. Does that could be a problem.
    Appreciate your help
    John

  • Restricting visibility of table in Adobe form in WdJava when node is empty.

    Dear Experts,
    We have a requirement for Formcalc or Javascript code for making the table on adobe form invisible when the node corresponding for the table in the form is empty.
    Please suggest ASAP. Thanks in advance.
    Regards,
    Mahesh.

    Hi
    In the table's layout ready event write the following.
    //formCalc
    if(data.Page.<table>.<Row1>.<field>.rawValue == null or data.Page.<table>.<Row1>.<field>.rawValue == "" ) then
    $.presence = "hidden"
    //this.presence = "hidden"
    endif
    Kind Regards
    Mukesh
    Edited by: Mukesh mani on Nov 23, 2009 1:26 PM

  • Printing data from table in Adobe Form.

    Hi all,
        How can i print all data from my internal table in adobe form.currently only last record from table is getting printed.i have put my table is in sub form and content i have made 'Flowed'. is there anything else i have to do to make all data from my internal table appear.
    Thanks & Regards,
    Anjana Rao

    HI Nimesh,
    This looks ok and works well, but the problem is its not printing the header data, all the headings its leaving that place as blank. Do you have any suggestion for this. This is the code is used.
    DATA: pgm LIKE sy-repid,
            tc  TYPE cxtab_control.
      pgm = sy-repid.
      tc  = tab.
    CALL FUNCTION 'FITRV_PRINT_TABLE_CONTROL_DATA'
        EXPORTING
          TABLE_CONTROL                        =  tc
          CALLBACK_PROGRAM                     =  pgm
         CALLBACK_TOP_OF_LIST                 =    'TABLE_TOP_OF_LIST'
        CALLBACK_TOP_OF_PAGE                 =
        CALLBACK_END_OF_PAGE                 =
        CALLBACK_END_OF_LIST                 =
         OPTIMIZE_COLUMN_WIDTH                = 'X'
         GET_CURR_QUAN_FIELDS_FROM_DDIC       = 'X'
        WINDOW_TITLE                         = 'PRINT TABLE'
          PRINT_IMMEDIATELY                    = 'X'
        TABLES
          PRINT_DATA                           =  ITAB
       EXCEPTIONS
         COLUMN_INFORMATION_MISSING           = 1
         PRINTING_NOT_POSSIBLE                = 2
         OTHERS                               = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Thanks,
    Venkat

  • Create multiple tables in adobe form

    hi,
    Is there anyone can tell me how to create multiple tables in Adobe Form using SAP Netweaver Developer Studio. Are there any steps i can follow?

    Hi,
    Define  the tables in subforms and then wrap them into another subform and make it the subform as type flowed.
    Regards,
    Raju.

  • How to avoid overlapping of Table on another table in Adobe Form

    Hi Experts ,
                  Can anyone tell me how to do this scenario,When I am inserting 3 flowable tables in Adobe form ,issue is one form is overlapping over another, All the internal tables has 10 records minimum. Requirement is after one table is printed Next table should be start printing without overlapping on next further table... Please let me know How to avoid overlapping of table on another table.Advance thanks.
    Thanks & Regards
    Sandesh

    Hi Sandesh.
    Put your table in subform. (one for each)
    And than add one more subform and include all 3 table's subforms in single subforms.
    All subforms should be flowed.
    With Regards,
    JP

  • 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.

  • Read mutliple dynamic rows of a Table in Adobe Form into GP's context

    Hello All,
    I have a GP scenario where in user inputs multiple rows of data in a table which is on an Interactive Adobe Form.
    I want to read those values entered dynamically and passed between callable objects.
    Please could you suggest on this? If you post any sample code that would be of great help.
    Best Regards,
    Suyukti B N

    Hi Tamas,
    I checked the mentioned form and, as this table is setted as TABLEROW and some of its cells are static, is not possible to change the column size in the layout or even though changing it directly in the XML file, cell by cell. I was trying it.
    For example, choose the Cell6 of TABLEROW[0] and click on tab 'XML Source'. You will see this statement:
    <draw colSpan="3" h="16.3166mm" name="Cell7" w="22.225mm">
    You can try to change the value 'colSpan' according to your requirement.
    This table size is not modifiable because it was developed to it.
    I believe that Diego's suggestion can help in this case, if you are having problems to print the entire table on the page.
    Regards,
    Lucas Comassetto.

  • How do I create a dynamic table in the form for auto field detection?

    I am new to Acrobat. We need to create a form template that contains dynamic table control so that it can be populated using auto field detection.
    Our dynamic table contains reimbusement information, the rows vary from one claim to another.
    Please help. We are having Acrobat 9 Pro.
    Thanks
    Prasadh

    A lot is possible. There is a scripting language which should fill the gaps of missing features. There is data merge, there is XML, there is InCopy. Read everything about it and you will surely find what you need.

  • Changing row or cell background and Font size in the table in Adobe Form

    Hi Experts,
    I have a problem in the Adobe Forms (Non-interactive). I have developed a form in which a table is displayed dynamically. I wanted to highlight some rows depending upon the cell value.
    Kindly help me regarding this .
    Thanks,
    -R.S-
    Moderator message: wrong forum, please have a look in the forum for "Adobe Interactive Forms".
    Edited by: Thomas Zloch on May 3, 2011 5:54 PM

    hi,
    you have to use a script for the tableline like formcalc or javascript to implement that logic.
    regards,
    christian

  • Dynamic table in interactive form...

    Hi Friends,
    I am a beginner in adobe forms development.
    I want to create an adobe form with dynamic internal table. I.e. addition of rows and deletion of rows dynamically. I have gone through some of the threads in SDN. But still I am not able to make it.
    I used following approach for the same. Kindly correct me if i am wrong.
    Step1: I have created a context with the required fields in webdynpro abap with cardinality 1..1.
    Step2: In the adobe form I created a table using table assistant.
    Step3: a.  Wrapped the table into a subform and set the content as "Flowed"
                b. Selected "Repeat Table item for Each Data Item" at table level and body level with min count as '1'.
                c. Selected "Repeat Table item for Each Data Item" at header row with min count and max as '1'.
    Step 4: Added two Webdynpro native submit buttons by name "Add" and "Delete" and coded as follows:
               For add button:
              var nTableLength = Table.nodes.length;
              var nNumRow = 0;
              for (var nCount = 0; nCount < nTableLength; nCount ++) {
              if ((Table.nodes.item(nCount).className == "subform") & (Table.nodes.item(nCount).name !== "HeaderRow")) {
             nNumRow = nNumRow + 1;
            if (nNumRow == 7) {
            xfa.host.messageBox("The maximum allowable number of rows is 7. You cannot add any more rows.", "Warning", 3);
           else {
            Items.Table.Row1.instanceManager.addInstance(1);
    Still dynamically rows are not getting created. But when i click on add/delete some process is happening.
    Do I need to write any logic in Webdynpro abap??.
    Please clarify.
    Thanks in advance.
    Regards,
    Phani.

    Hi Runal,
    I'm following your document, but I'm not getting the adobe forms buttons working. I try to put the code that you mention, but I got an error message in the WebDynpro View saying: "field get_element is unknown", this is the code that I'm adding in the
    method WDDOMODIFYVIEW.
    data: LR_INTERACTIVE_FORM type ref to CL_WD_INTERACTIVE_FORM,
          LR_METHOD_HANDLER type ref to IF_WD_IACTIVE_FORM_METHOD_HNDL.
    check first_time = abap_true.
      LR_INTERACTIVE_FORM ?= VIEW->GET_ELEMENT(u2018ZDYN_TBL_FORMu2019).
      LR_METHOD_HANDLER ?= LR_INTERACTIVE_FORM->_METHOD_HANDLER.
      LR_METHOD_HANDLER->SET_LEGACY_EDITING_ENABLED( abap_true ).
    If I double click in the class CL_WD_INTERACTIVE_FORM, I can't see any method GET_ELEMENT.
    I don't know where the problem is, could you help me?
    thanks,
    Luis Lara

  • Dynamic Table in adobe inter-active forms

    Hi Gurus,
    I have dragged and dropped Dynamic table in body page and Header data placed in Master page. Now my problem is the data is not going to the next pages. Kindly pls tell me the way so that my data will appear in next pages.
    Regards,
    Srini

    Hi,
    What do you mean by Header data in master page...? is it header Row...with labels, why do you need it in master page have it along with your table in body page.
    What do you mean my data is not displayed on the body page ...?
    What I could understand is as below. you have a dynamic table where the number of rows may be n such that it can spread across multiple pages, if it spreads in multiple pages you need the header row in all the page occurances. is it so ...?
    if so just do it as below.
    Have the table in your body page with one header row and one body row.
    Set table allowed page break with in content
    Put this table in a subform and say it flowed top to bottom and set allow page break with in content.
    Select header row>object>pagination set include row in initial page and subsequent pages to checked.
    Select body row-->object->binding set repeat row for each data item to checked.
    This should work, else let me know your requirement more briefly..
    if You need a sample file for this send me a test mail to my id from the business card address.
    Cheers,
    Sai

Maybe you are looking for

  • Photos uploaded to iPad sync to PC .iThmb files...how change setting?

    I'm surprised that I couldn't find a prior post about this. I bought the adapter that let's you upload photos directly to iPad (which I like a lot - can view/thin/email pics from the road). But when you sync to a PC laptop, it uploads them into my do

  • Import Settings not working

    I have been trying to Import all settings from another project: File>Project Settings>Import Settings.. (all boxes) ticked - then navigate to another Logic Song and Open... nothing happens to the original. I want to end up having imported the Midi En

  • HT1386 Is it possible to use the songs in my itunes library as a ringtone on my iphone 4? if so, how would i do that?

    I have been trying to figure out if I can use the songs in my itunes library as ringtones but am having no luck. I downloaded an app that is supposed to make it possible but can't get that to work either. Does anyone know how to do this? Would apprec

  • Dynamic Menu in JSP

    Hi, I have to make a menu just like www.staple.com in my JSP. The main product category and sub-category are read from the database. I have classes written which retrieve the product and sub categories but dont know hot to proceed with building of dy

  • How to make table cell have certain width

    Hi i have 3 cells when i write text in any cell it effects the width of other cells !!! how to make every cell have certain? i mean i want to wrap the text not to effect the cell width thanks in advance.