다음을 사용하여 다양하지만 항상 이름에 "X_Clean"이 있는 열 목록을 생성합니다.
col_list = dt<<GET column="" names="">0, i--, if(!contains(col_list[i], "X_Clean"), 제거 from(col_list, i); ) );</GET>
이제 표 상자를 만들려고 하는데 분석 열에서 이 col_list를 참조하는 방법을 잘 모르겠습니다.
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">어떻게든 여기에 col_list를 삽입해야 합니다.</FONT>
),
Statistics( Max )
),
Row Table( Grouping Columns( :Entity) )
),
SendToReport(
Dispatch(
{},
"Tabulate",
OutlineBox,
{Set Title( "PM Counter Summary as of: "|| TimeStamp )}
)
),
));이것은 작동합니다
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 )}
)
),
));