Options

IncludeInDataSet ft. Array

Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
edited 2011-07-26 in NAV Three Tier
I guys, I've one question for you. I'm upgrading a matrix form.
The number of columns depends on the number of records inserted in a custom table.
To manage this I created 2 arrays, one that contains captions for the columns and the other one that contains the values that will printed in the repeater. This works as a charm.
my problem is that I never use all elements of the arrays and the columns that correspond to unused array's elements must disappear.
To do this I create another array of boolean values in which I specify if the columns must be printed or not.
But here I'm blocked because system says me that I can't set the property IncludeinDataSet to yes if Dimension <> 0.
the only idea I have is to create one boolean variable for each columns... but I really don't like it...
Does anyone of you have a suggestion?

Many Thx..
~Rik~
It works as expected... More or Less...

Answers

  • Options
    Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
    I saw that also standard "matrix pages" manage the visibility of the columns with N boolean variables.
    I think it's the most obvious option and the only way to manage this.

    Thx.
    ~Rik~
    It works as expected... More or Less...
Sign In or Register to comment.