Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding table column with header dynamically in Adobe form

Former Member
0 Kudos

Hi,

i need to hide a table column with header when there is no value in column..

The structure is like

Subform (TABLE)-> GT_FINAL (table which is displayed in the output)

I have written the below code (JavaScript) in the initialize event of DATA of table:

if (this.rawValue == null)

{

this.parent.PROJECT.presence = 'hidden';

}

It is successfully hiding the rows of the table but header is still displayed. Below, the column PROJECT need to be hidden. After the above code, the cell under 'Project' is hidden and the amount field is shifted forward.

Please guide me how can I hide column header as well. I have already referred to many posts on hiding the columns. however, it does not seem to work.

Regards,

Richa

3 REPLIES 3

former_member182915
Active Contributor
0 Kudos

Hi Richa,

I am new adobe form, but the same scenario in case smart form i solve.

Take that many line type and fill your internal table and in driver program identify condition i.e no of column will display & select row type and display.

Demo Code.

row = 8

condition in line type if row = 8

0 Kudos

Hello Richa,

You can look at the below link for more details. Maybe this will help you.

Reward if helpful.

Best Regards,

Jagraj Singh

0 Kudos

I have the same problem 😞