cancel
Showing results for 
Search instead for 
Did you mean: 

Table with dynamic number of columns

Former Member
0 Kudos

Hello,

Is it possible to have a table in my Adobe print form (ABAP) with a dynamic number of columns? My requirement is to print columns with data by year, but the number of years (and thereby the number of columns) will be selected by the user at runtime.

Cheers.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Mike,

Yes this is possible, using the feature of adding subform dynamically.

The structure of my form is like this, All the Subforms and page are Flowed:

Page1

--> NumericField1

--> Section1(Subform Binding: None, Repeat: No)

--> Item(Subform Binding: None, Repeat: Yes, MinCount = 1)

--> FirstName

--> LastName

--> Button1

I have written following code on the click of the Button1.

var count = this.parent.parent.parent.NumericField1.rawValue;

for ( var i=0; i<count; i++ ){

xfa.resolveNode("Section1.Item").instanceManager.addInstance(1);

}

Hope this helps you.

With regards,

Amit