안녕하십니까,
사용자에게 태그 이름을 선택할 수 있는 기회를 주고 싶습니다. 그러면 해당 태그 이름을 기반으로 하는 다양한 변수의 시계열 플롯이 표시됩니다.
TAG 이름 목록을 생성하기 위해 이 스크립트를 만든 다음 해당 선택(onchange)을 사용하여 그래프 빌더 스크립트의 변수를 채웁니다.
그러나 이것은 빈 목록 상자를 생성합니다. 이유를 식별할 수 있는 사람이 있습니까?
감사해요
Names Default To Here( 1 );
dt = Current Data Table();
ET_LIST = {};
ET_TAG_List = {};
//removes empty column from the column list
For( i = N Col( dt ), i >= 1, i--,
ET_col = Column( dt, i ) << Get Name();
If( (Col N Missing( Column( i ) ) / N Row()) != 1 & Contains( ET_col, "ETarg" ),
Insert Into( ET_LIST, ET_col )
);
);
Show( ET_LIST );
//takes column list and removes the TAG extension to provide the list of tags
n = N Items( ET_LIST );
For( i = 1, i <= n, i++,
ETARG = ET_LIST[i] ;
NFull = Length(ETARG) ;
ETTAG = Left(ETARG,(NFull-6)) ;
Insert Into(ET_TAG_List, ETTAG);
);
Show(ET_TAG_List);
//want to now take that list and put it into a list box for user to select. will use getselected/onchange to update the charts
New Window( "Example",
List1 = List Box( ET_TAG_List );
List1 << Set Items( ET_TAG_List );
);
빈 입력란..

";" 처리를 중지하고 있습니다.
New Window( "Example",
List1 = List Box( ET_TAG_List ),
List1 << Set Items( ET_TAG_List )
);