Skip to Content
author's profile photo
Former Member

How to hide table header for empty table

Hi,

I wanna to hide table header for all tables which doesn't contain any data in my Adobe form. How can I do this? Helpful answers will be rewarded 😊.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Aug 22, 2007 at 10:27 AM

    HI Aliaksandr,

    You can use javascript to do this dynamically.

    For example, i used Adobe Designer 7.1 to add a table to a subform.

    Now, i have the object hierchy as:

    Level 1 - form1

    Level 2 - form2

    Level 3 - Table1

    -->HeaderRow

    --> Cell1

    --> Cell2

    -->Row1

    --> Cell1

    --> Cell2

    Now, i sleect the Table1 element, and write the javascript which is executed on Initialization, as

    if(this.Row1.Cell1.rawValue == "")
    {
    this.HeaderRow.presence = "hidden" ;
    
    }
     

    This will check that if the first row is empty, it will hide the header from the layout.

    You can use something similar for your requirement.

    Hope this helps,

    Siddhartha Jain

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 21, 2007 at 03:07 PM

    Hi,

    There is a Check Box in Object --> Binding Tab

    repeat subform for each data item

    In this we have Max and Min.

    Uncheck Min checkbox.

    I think it will work.

    Thanks and Regards,

    Amit

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      No, if you uncheck min checkbox then another checkbox on Pagination page Include Header Row in Initial Page will be uncheked too, so header will not be included even if there are data in table. So this is not a solution

  • author's profile photo
    Former Member
    Posted on Aug 22, 2007 at 09:32 AM

    Hi Ali,

    If you are using ABAP workbench to develop the forms, you can try the following option.

    If you are using Designer 6.0

    Create an Alternative node in the context.

    Give the alternative node condition as table <> initial.

    Create separate subforms in the layour for header and body.

    Bind the header subform to the TRUE condition of Alternative node.

    If you are using Designer 7.1

    You wont be facing this problem if you have used Designer 7.1 to design the form.

    Please reward me points if this helped u..

    Add comment
    10|10000 characters needed characters exceeded