J'utilise ce qui suit pour générer une liste de colonnes, qui varie mais a toujours un "X_Clean" dans le nom :
col_list = dt<<GET column="" names="">0, i--,
if(!contains(col_list[i], "X_Clean"),
remove from(col_list, i);
)
);</GET>Maintenant, j'essaie de créer une boîte de tabulation mais je ne sais pas comment référencer cette col_list dans les colonnes d'analyse.
dtLUB= vlistbox(dt<< Tabulate(
Change Item Label( Statistics( Max, " " ) ),
Show Control Panel( 0 ),
Add Table(
Column Table( Analysis Columns( :Date ), Statistics( Max ) ),
Column Table(
Analysis Columns(
<FONT color="#FF0000">Need to insert col_list here somehow</FONT>
),
Statistics( Max )
),
Row Table( Grouping Columns( :Entity) )
),
SendToReport(
Dispatch(
{},
"Tabulate",
OutlineBox,
{Set Title( "PM Counter Summary as of: "|| TimeStamp )}
)
),
));Cela devrait fonctionner
dtLUB= vlistbox(dt<< Tabulate(
Change Item Label( Statistics( Max, " " ) ),
Show Control Panel( 0 ),
Add Table(
Column Table( Analysis Columns( :Date ), Statistics( Max ) ),
Column Table(
Analysis Columns(
eval( col_list )
),
Statistics( Max )
),
Row Table( Grouping Columns( :Entity) )
),
SendToReport(
Dispatch(
{},
"Tabulate",
OutlineBox,
{Set Title( "PM Counter Summary as of: "|| TimeStamp )}
)
),
));