Skip to Content
avatar image
Former Member

Conditional Display of Subform based on Table values at runtime

Hi experts,

I have 4 subforms at header level like S1 - S2 - S3 - S4 - and a table "T1" table .

Now the requirement is that whenever rthere is no data in the Table T1 i dont want to display any of the Subforms. i.e from S1 till S4 and not the table as well.

Want to do it with Scripting.

Please suggest.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 21, 2010 at 03:30 PM

    Hi,

    Specify a variable(say Flag) in the GlobalData and then in the Code Initialization section Check whether your table is having data or not and accordingly set the variable (here Flag to "X" if table is having data).

    In the Layout use this variable(check if flag == "X" ) to decide the visibility of the Subforms S1 to S4 .

    Thanks.

    UmaS.

    Add comment
    10|10000 characters needed characters exceeded