Skip to Content
author's profile photo Former Member
Former Member

Table with dynamic number of columns

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Apr 10, 2008 at 03:29 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.