List Box()에서 선택한 항목 가져오기
I have a GUI where _cbFilters is poupulated in from different list. Once the List Box is populated, I want to select the variable and pass it for some other us. But unable to do that. I tried get text() get selected etc...e..
Button Box( "Get DataBase Filter Column",
_cbFilters << Remove all;
Database_column_type = radio << getSelected;
if(Database_column_type == "AN_CDS",
_cbFilters << Append(Mongo_list) ,
_cbFilters << Append(SQLColumnFilters_BootLogParsed))
),
_cbFilters = List Box()
columnFilter = _cbFilters << get selected;_
Re: List Box()에서 선택한 항목 가져오기이 접근 방식은 좀 더 간단합니다. 라디오 상자에 직접 작업을 넣습니다.
all_database_list = {"AN_CDS", "XYZ", "ABC"};
x = {"abc", "cda"};
y = {"123", "345"};
selection = New Window( "Check",
H List Box(
Panel Box( "Select Database",
radio = Radio Box( All_database_list,
Database_column_type = radio << getSelected;
If( Database_column_type == "AN_CDS",
_cbFilters << set items( x ),
_cbFilters << set items( y )
);
),
),
FilterTxTBox = Text Box( "Columns: " ),
_cbFilters = List Box( x, width( 100 ), nlines( 3 ), max selected( 1 ) ),
Button Box( "Done",
SourceData = _cbFilters << GetSelected;
Show( SourceData );
selection << close window;
),
),
);Re: List Box()에서 선택한 항목 가져오기
아래의 간단한 코드를 실행하고 List Box()에서 선택한 항목을 가져오려고 합니다. 하지만 다음과 같은 오류가 발생합니다.
이름 미확인: 'SourceData' 액세스 또는 평가 중인 SourceData, SourceData/*###*/
x = {"abc", "cda"};
y={"123","345"};
selection = New Window( "Check",
H List Box(
Panel Box( "Select Database",
radio = Radio Box( All_database_list, HideShowObject( radio ) ),
Button Box( "Get DataBase Filter Column",
_cbFilters << Remove all;
Database_column_type = radio << getSelected;
If( Database_column_type == "AN_CDS",
_cbFilters << Append( x ),
_cbFilters << Append( y )
);
),
),
FilterTxTBox = Text Box( "Columns: " ),
_cbFilters = List Box({" "},width(100),nlines(3),max selected( 1 )),
Button Box("Done", SourceData = _cbFilters << GetSelected;),
show(SourceData)
),
);