cancel
Showing results for 
Search instead for 
Did you mean: 

Conditional Display of Subform based on Table values at runtime

agnihotro_sinha2
Active Contributor
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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.