Adobe Form - Hide a table row if a condition met

Hi Helper
I am learning how to use Adobe Form - and I am trying to hide a table row if a condition is met by using Formcalc/Jave script - but I donot know how - I was told that I can use "....presence = 'hide'  " property in on of the event(?) but donot know how to write the qualified name for the varable row and what event to use. Could someone please show me how
Points will be rewarded.
Thanks

Hi Liem,
Here is some more information:
1)
Accessing data in Table Cell
xfa.resolveNode("xfa.data.my_data.tableData[" + this.parent.index  + "].column1").value
2)  Accessing data nodes in Context
xfa.datasets.data.my_data.second_node.an_attribute.value == "3"
I think you will find the WebLog below very useful for your requirements.
/people/juergen.hauser2/blog/2007/09/03/accessing-data-nodes-in-sap-interactive-forms
-regards,
harman

Similar Messages

  • How to hide a table row in pdf  using javascript?

    How to hide a table row in pdf  using javascript?

    This is only possible with LiveCycle Designer forms, not PDF forms created
    in Acrobat.

  • Hide the Table Row Scroller

    Hello ,
    I am on EP7.0 NW04s and want to hide the Table Row Scroller ...the one which says "Row 1 of 4" for eg: ....is there any table property I can modify to achieve this..
    Any help would be highly appreciated.

    Hi Subahsh,
    For Hiding RowScroller, footerVisible setting will not work.
    If you want to hide the Row scroller then do following steps
    (1).IWDTable t = (IWDTable)view.getElemnt("Table");
    (2)t.setVisibleRows(2);
    (3)then delete the rows which you do not want to show..
    and before deleting copy it some where.
    Or the other way to handle the problem is :-
    TableNode----
    > ActualNode create both in the context
    Keep all contents in your actual Node.
    And when you want to update the number of rows...
    then invalidate TableNode( it will clear the table node).
    And the again copy Elements from ActualNode.
    And keep a count of the number of elements, set the visibility of row to that count..
    In this way the scroller will never come...
    See basic of this concept is that you have to keep the VisibleRow setting same as number of elements in your table.
    feel free to ask queries
    Regards,
    Praveen
    Message was edited by:
            Praveen Kumar Pandey

  • Adobe Forms, display connected tables

    Hi.
    I have a problem in a Adobe form, to display connected tables.
    I need to make a catalog of product..., then I have in one table, the product with its specifications...etc, and in other table, I have the URLs with the image associated to this product.
    The two tables have the same key (zproduct_key), then I want to get the next structure, but I don't know how to indicate in the Adobe Form table, that in the loop of the table of products, make a loop of the images product and only print the images that corresponse with this product.
    Can you help me??? Thks.
    product1
    image1product1              image2product1
    image3product1              image4product1
    product2
    image1product2             image2product2
    product3
    image1product3

    Please, I need your help..., I don't get to solve this problem.
    Thks again.

  • Show or Hide empty table based on If condition

    I want to show or hide empty table based on condition. The table will be empty with 5 rows,2 cols and should display if <?Rout_Information1_id1?> is blank or null or when XML field is not present. Actually the JDEdwards report will generate XML file. In the XML file if <?Rout_Information1_id1?> is present it will have definitely value like 'PULL' or 'Cut' otherwise sometimes XML field itself will not be present. Need to display the empty table when the <?Rout_Information1_id1?> is not present. I am trying to do as below but the table is not displayed. Can someone tell me how to resolve this.
    <?if:Rout_Information1_id1=' '?>
    5 rows,2 cols table
    <?end if?>
    Thanks,
    Vijay Vattiprolu

    Ok. I used the below syntax from other post and it resolved displaying empty table issue.
    <?if:not(XML_TAG_NAME)?>
    <?end if?>
    Thanks,
    Vijay

  • Table Rows with Multiple Conditions Not Showing Up in RH

    Hi everyone,
    I'm currently evaluating TCS2 (Framemaker 9 and RoboHelp 8 on Windows XP) and have come across the following issue:
    One of our FrameMaker source files contains a table in which one of the rows has multiple conditions applied. When one of the conditions is shown in Framemaker, and the others are hidden, the row is displayed in Framemaker as expected. However, when the file is then imported or linked into Robohelp, the same table row vanishes, even though the Apply FrameMaker Conditional Text Build Expression check box is selected in the Framemaker Conversion Settings > Other Settings screen. This only appears to affect table rows - when paragraph text is tagged with the same conditions, it is imported correctly into RoboHelp.
    For example, when Condition B is shown and Condition A is hidden in the Framemaker file, the content appears like this in Frame:
    Unconditional
    Unconditional
    Condition A and Condition B applied
    Condition A and Condition B applied
    Condition B applied
    Condition B applied
    Paragraph text with Condition A and Condition B applied.
    Paragraph text with Condition B applied.
    When the same file is imported into RoboHelp, the row with both conditions applied is absent from the table:
    Unconditional
    Unconditional
    Condition B applied
    Condition B applied
    Paragraph text with Condition A and Condition B applied.
    Paragraph text with Condition B applied.
    Installing patches 8.0.1 and 8.0.2 did not resolve the issue (and actually caused other, unrelated issues) and I see the same behavior regardless of whether I import or link the FrameMaker document.
    Has anyone else seen this issue? Any help would be much appreciated.
    Thanks
    DaveB

    It just seems that the items I select as align to top in the
    property inspector should force the items to the top of their
    cells, unless I'm missing something.

  • Hide a table row if the data field is empty

    I know this sounds easy and it would be if I were doing it with my own data.
    But I'm writing html that is being copied into an online form processor call "Absolute Form Processor" to be used to generate a report within in the software.
    It works great if I create every row in the table but I'd like to hide the rows that don't have a field value so that the report is more concise.  I hope that makes sense.
    The data accessed by surrounding the field name with "$$".  For example:  $$ed2_1$$.
    What kind of script do I need to write to hide a row if there's no data?
    Here's the code:
    <table width="95%" border="1" cellspacing="0" cellpadding="5">
                    <tr>
                        <th colspan="2">Education and Experience Information</th>
                        </tr>
                    <tr>
                        <td width="18%">School/Experience:  </td>
                        <td width="82%">$$ed1_1$$</td>
                        </tr>
                    <tr>
                        <td>Degree/Position:  </td>
                        <td>$$ed1_2$$</td>
                        </tr>
                    <tr>
                        <td>Major/Minor:  </td>
                        <td>$$ed1_3$$</td>
                        </tr>
                    <tr>
                        <td width="18%">School/Experience:  </td>
                        <td width="82%">$$ed2_1$$</td>
                        </tr>
                    <tr>
                        <td>Degree/Position:  </td>
                        <td>$$ed2_2$$</td>
                        </tr>
                    <tr>
                        <td>Major/Minor:  </td>
                        <td>$$ed2_3$$</td>
                        </tr>
                    <tr>
                        <td>School/Experience:  </td>
                        <td>$$ed3_1$$</td>
                        </tr>
                    <tr>
                        <td>Degree/Position:  </td>
                        <td>$$ed3_2$$</td>
                        </tr>
                    <tr>
                        <td>Major/Minor:  </td>
                        <td>$$ed3_3$$</td>
                        </tr>
                    <tr>
                        <td>School/Experience:  </td>
                        <td>$$ed4_1$$</td>
                        </tr>
                    <tr>
                        <td>Degree/Position:  </td>
                        <td>$$ed4_2$$</td>
                        </tr>
                    <tr>
                        <td>Major/Minor:  </td>
                        <td>$$ed4_3$$</td>
                        </tr>
                    </table>
    Any help would be most graciously accepted.
    Kim

    Hi
    try this
    <%
    'Check a variable isn't "empty"
    Function IsBlank(ByRef TempVar)
         'by default, assume it's not blank
         IsBlank = False
         'now check by variable type
         Select Case VarType(TempVar)
             'Empty & Null
             Case 0, 1
                 IsBlank = True
             'String
             Case 8
                 If Len(TempVar) = 0 Then
                     IsBlank = True
                 End If
             'Object
             Case 9
                 tmpType = TypeName(TempVar)
                 If (tmpType = "Nothing") Or (tmpType = "Empty") Then
                     IsBlank = True
                 End If
             'Array
             Case 8192, 8204, 8209
                 'does it have at least one element?
                 If UBound(TempVar) = -1 Then
                     IsBlank = True
                 End If
         End Select
    End Function
    %>
    Example usage
    <%
    If IsBlank("Degree/Position:")Then
         Response.Write "the default text or nothing goes here"
    End If
    %>
    You could also use "if ¦IsBlank" to only include the item if it has content, to do what you require.
    PZ
    Message was edited by: pziecina

  • How to upload a collection of records from adobe form into a table in BAPI

    We are creating an appliction using web dynpro and adobe that will allow users to update PO status information offline. The information is downloaded into a form and then updated offline by the vendor. After this change the form is uploaded into the application and sent to SAP R/3 via a BAPI call. The BAPI provides the information for different PO's as a table structure (many items - collection) which is downloaded into the form and displayed as a table. The download part works and we can upload the modified file also. We can even see the data getting loaded into the controller context after we upload the form.
    <b>The problem</b> is when we try to execute the BAPI to upload the data. The data in the table structure does not seem to upload, only the non-table structure field values get posted back. Logs at the BAPI show "0" records uploaded. Couple of other fields which are not part of the table structure get uploaded properly.
    Can someone <b>please provide some insights - help</b> on what could be going wrong. Any debugging ideas or checking logs to see if the data is really getting pushed from the webdynpro/adobe app to the R/3 system would be helpfull.
    Our R/3 setup is ECC5 on a AIX server and the adobe webdynpro setup is NW04s on a different different AIX server.
    Thanks

    Hi satishsuri ,
    You will have to use 3 methods together :
    CALL METHOD cl_gui_frontend_services=>directory_browse "Browse the Directory
    CALL METHOD cl_gui_frontend_services=>directory_list_files "Get all the files from the directory
    CALL METHOD cl_gui_frontend_services=>gui_upload "Upload each file in a loop
    Example:
    TYPES: BEGIN OF ty_data,
             line TYPE string,
          END OF ty_data.
    DATA: str_file TYPE string,
          str_dir TYPE string,
          it_file_table TYPE STANDARD TABLE OF file_info,
          wa_file_table TYPE file_info,
          v_count TYPE i,
          it_data TYPE STANDARD TABLE OF ty_data,
          wa_data TYPE ty_data.
    CALL METHOD cl_gui_frontend_services=>directory_browse
      CHANGING
        selected_folder = str_dir.
    CALL METHOD cl_gui_frontend_services=>directory_list_files
      EXPORTING
        directory  = str_dir
      CHANGING
        file_table = it_file_table
        count      = v_count.
    LOOP AT it_file_table INTO wa_file_table.
      CONCATENATE str_dir wa_file_table-filename INTO str_file SEPARATED BY '\'.
      CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename = str_file
          filetype = 'ASC'
        CHANGING
          data_tab = it_data.
      LOOP AT it_data INTO wa_data.
        WRITE : / wa_data-line.
      ENDLOOP.
      ULINE.
    ENDLOOP.
    Regards,
    Jovito

  • Adobe Forms and Check table

    Hi, guys.
    I gotta insert an internal table value simlar to a field with entry help/ check table (for example, BSEG-BUKRS) in an ADOBE print forms.
    And the function give to me an error because the help table field doesn't exist.
    What I must do?
    Thanks a lot!

    Hello,
    you can do this using scripting. Use formcalc or javascript. Guides:
    help.adobe.com/en_US/livecycle/es/FormCalc.pdf
    http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf
    hope this solves the problem, have a nice day, Otto

  • Adobe form - Split internal table data & dis on the right and left corner

    HI ,
    I have a form where i am populating the data via an Internal Table.
    The concern i have is i have 100 rows in the table and i want to print the first 10 rows on the right hand side of the page and the next 10 rows on the Left hand side of the page. I want to do this dynamically on multiple pages during run time based on the volume of data in the internal table.
    I am sure i cannot dynamically change the interface of the form to allow multiple internal table , Please suggest if there is any other solution.
    Thanks in advance
    Tk
    Edited by: tarunk on Jan 16, 2012 5:56 PM

    Hi,
    Thank you  very much for the input, But my concern is
    I have a table with 120 records.
    i have three columns which i have it on the right side as well as on the Left side of the page.
    EX:
    Right Side                                                                          Left Side
    Col1 col2 col3                                                                    col1 col2 col3.
    Now what i want to do is the first ten rows of the internal table data i want to print it on the Right Side and the Next 10 rows on the Left Side in the same page .
    I want to do this on Multiple pages.
    please suggest.
    Thanks,
    Tk

  • Tables In Adobe Forms

    Hello,
    I have a requirement to display a table based on condition.
    Based on the condition only one table should be displayed.
    Table 1
    Table 2
    If (X==1)
    Display table1
    else.
    Display table 2.
    Endif.
    Please provide the solution to achieve this.
    Thank you!
    Regards,
    Patil

    Hi friend,
    There is many ways to achieve this. For example if you have two tables and the number of fields for two table is same then you can dynamically fill the table in the interface based on your condition and pass that value alone to the form so that you can achieve your requirement.
    Else if you are comfortable with Java code there is an option to hide a table row in Adobe form. The code for that is
    Table1.Row1.instanceManager.removeInstance(<rowNumberHere>);
    So there also will be an option to hide a table in that. (Since i am not worked in Java Script i cant tell you much in Java Script).
    Also see this link which will be helpful to you.
    Link : [Adobe Form - Hide a table row if a condition met|Adobe Form - Hide a table row if a condition met;.
    I think this will help you solve your issue. If you face any issues in this please revert back to me i will help you.
    Thanks,
    Sri Hari

  • Read all rows in static table defined in the adobe form using webdynproABAP

    Hi all,
    The requirement is i have to display the 5 empty rows using adobe forms in the table format and retrieve the data from that 5 rows after user enter some value and post it in the database table. This is the part of my requirement.
    I have done the designing part in interactive form and coding in WD using ABAP.
    For that, I defined table in the adobe forms where in the DATA subform I have given Min count value is 5 instead of 1(selected the check box - repeat each item... also). I am able to display 5 empty rows successfully. After enter values in 3 rows and press SAVE button i am getting only first record but not all 3 records.
    I have written the code for SAVE records in WD using ABAP. I am using this method "get_static_attributes_table" for getting all records.
    Please help me resolving my issue.
    Thanks in advance.

    Hi,
    In the WDDOINIT method, create an internal table with 5 empty rows and bind it to the context using the method Bind_Table.
    Then try executing your program, this should work.
    If it doesnt , do let me know.
    Regards,
    Runal
    Edited by: Runal Singh on Jun 11, 2009 3:00 PM
    Edited by: Runal Singh on Jun 11, 2009 3:08 PM

  • How to handle Adobe Form - Dynamic Tables.

    Experts:
    I am new to Web DynPro for ABAP and Adobe Interactive forms.
    I have created a Adobe form with dynamic table. When I submit the form, WD4A is able to read only the first row of the table. Other rows are getting lost.
    I thought just binding with the context will trasfer data from Adobe to WD4A. But it is not happending.
    Do I need to write any code in WD4A and any script in Adobe Designer?
    Can any one send me a sample code (ABAP and JavaScript). Even link to that will be very useful.
    Thanks,
    Vijai

    Thomas:
    My context is as follows.
    <CHANGING>
      <REQUISITION_ITEMS>
        <ELEMENT..1>
        <ELEMENT..2>
        <ELEMENT..3>
    The cardinality of <CHANGING> node is 1..1 and the cardinality of  <Requisition_items> is 1..n.
    Thanks
    Vijai

  • How to transfer Internal table to a Adobe form? ....urgent...

    Hi Experts,
    I am not able to get the data in the adobe form from an internal table.
    I need to put the data in individual fields in the adobe form.
    I'm working on Adobe Interactive form developed in WDP ABAP.( I have successfully config the ADS in my server.)
    Action:
    1. There are 1 table in the Adobe Interactive form((Adobeform)created by the 'sfp' t-code.
    a) create a interface with a structure(A_STRU).
    b) create a form with the interface.
    c) In the layout of the form, drag a table to the form.
    d) Binding the table to the A_STRU.
    e) Binding the fields of the table to the fields of the structure.
    2. Create a view -
    first_view in the WDP ABAP.
    3. In the first_view, there is a Interactiveform ( named "adobe_form" ) to be binding the Adobe Interactive form (Adobeform).
    4. Type the code in the wddoinit of the first_view for bindding the internal table to context of the adobe interface.
    DATA lo_nd_z_php_form_pay TYPE REF TO if_wd_context_node.
    DATA lo_nd_g_context TYPE REF TO if_wd_context_node.
    DATA lo_el_g_context TYPE REF TO if_wd_context_element.
    DATA ls_g_context TYPE wd_this->element_g_context.
    navigate from <CONTEXT> to <Z_PHP_FORM_PAY> via lead selection
    lo_nd_z_php_form_pay = wd_context->get_child_node( name = wd_this->wdctx_z_php_form_pay ).
    g_context is the context interface of the adobe form.
    navigate from <Z_PHP_FORM_PAY> to <G_CONTAIN> via lead selection
    lo_nd_g_context = lo_nd_z_php_form_pay->get_child_node( name = wd_this->wdctx_g_context ).
    binding the g_context to the form context.
    lo_nd_g_context->bind_table( result_payslip ).
    through the debug the program, I found 50 records in the result_payslip internal * * table .
    5. run the wda, I find the nothing data to be displayed in the adobe form.
    6. But I can transfer a string parameter from wda to adobe form. I don't know how to transfer data in the table?
    I don't know how to config the table in the adobe form?
    I hope to get the guide for step by step to solve the problem. Thanks a lot .
    I hope to get some hints. Thanks a lot .
    Pls help me out.
    Thanks & Regards,
    Tao

    hi ,
    I have similar difficulty.....
    I Am putting data from internal table into Adobe form using ABAP web dynapro.
    I am not able to see data in Adobe form though inernal table contains 14 records.
    Also, i have been thr' WDR_TEST_ADOBE
    but still not able to solve problem .
    Can you help me?

  • Cell hiding problem in adobe form

    Hi,
    I am making a adobe form which contain 5 row and 5 column and i am filling this by using internal table . My requirement is  : when internal table doesn't contain some column(means suppose column 4 doesn't contain any value then i want to hide from 4th column) value i want hide from that column dynamically.
    Regards,
    Durga

    Hi Gupta,
    Please refer the below links
    Hiding a table column for a particular condition
    Adobe Community: How to hide table with empty content using Javascript? 
    Hope this helps you.
    Regards,
    Rama

Maybe you are looking for

  • Text options on Treo Pro.

    Hi everybody. So I have the Treo pro, and I was just wondering, in the text conversations, is there any way to change the conversation display from showing "ME" to my actual name? I like it to say 'Tiffany' instead. I know I was able to change it on

  • Connecting an Xbox using the DVI to Video adapter to a Display

    I have a second display (Vision 17'' TFT LCD Display) and I love using it with my Power Book using the DVI out. I also have a PC that shares this display through a VGA input port also on the display. Anyways, I want to use the display for my Xbox whi

  • JTabbedPane with close Icons

    Ok, so I was trying to get a JTabbedPane with 'X' icons on each tab. Searched this site, and found no answers, but loads of questions on how to do it. I've done it now, and here's my code. import javax.swing.*; import java.awt.*; import java.awt.even

  • Cannot enter value in selection screen for Hierarchy variable.

    Hi All, I have a hierarchy variable on the selection screen for Org unit. When i execute the report via Bex or RSRT i am able to enter the value directly into the selection screen input field without going for F4 help and then selecting the value. Bu

  • LabView 8.6 Software installation error code -32

    Hi, I have at this time Labview 8.5 on my computer and I'm trying to install 8.6 upgrade from DVDs. When the installation is beginning, I have the following error: Error: A file, directory, or other piece of data could not be found (Error code -32).