Application Builder에서 목록을 목록 상자로 복사안녕 모두
Listbox의 입력을 쿼리로 사용하는 추가 기능을 Application Builder에서 작성하고 있습니다. 그러나 많은 수의 쿼리의 경우 복잡합니다. 테이블의 행에서 Application Builder의 목록 상자로 목록을 복사하고 싶습니다. 어떻게해야합니까? 미리 감사드립니다.
다시 : Application Builder에서 목록을 목록 상자로 복사안녕하세요,
아래는 이러한 목적으로 JMP Application Builder를 사용하는 방법의 예입니다. 첫 번째 열에 태그가 포함 된 테이블도 첨부됩니다. 태그를 선택하여 클립 보드에 복사 한 다음 응용 프로그램의 단추를 사용하여 목록 상자에 붙여 넣기 만하면됩니다. 단추가 어떻게 작동하는지 보려면 응용 프로그램의 스크립트를 살펴보십시오. 도움이 되나요?
다시 : Application Builder에서 목록을 목록 상자로 복사다시 안녕하세요
원하는 경우 일부 기능을 추가하기 위해 나중에 사용하기 위해 List1의 모든 항목을 복사하는 단추를 추가 할 수 있습니다 (예 : 쿼리에서 필터로 사용).
Button3Press=Function({this},
// This function is called when the button is pressed
List1items=List1<<GET items=""></GET>
또는 사용자가 목록에서 쿼리에 사용할 항목을 선택할 수있게하려면 다음을 수행하십시오.
Button4Press=Function({this},
// This function is called when the button is pressed
List1selected=List1<<GET selected=""></GET>
이것은 누군가가 하루에 필요할 수있는 모든 태그를 목록에 복사 한 다음 다양한 쿼리를 실행할 때 그 중에서 선택하는 경우에 유용 할 수 있습니다.
다시 : Application Builder에서 목록을 목록 상자로 복사테이블의 데이터를 애플리케이션 빌더 목록 상자로 동적으로로드 할 수도 있습니다. 다음은 두 개의 목록 상자가있는 간단한 예입니다. brand_lb 과 name_lb . 브랜드 및 이름 정보를 캔디 바 데이터 세트.
레이아웃은 다음과 같습니다.

스크립트 섹션은 다음과 같습니다.
// This script is executed when a new module instance is
// created. The pre-defined object "thisModuleInstance" refers
// to the instance object, but other objects such as boxes and
// scripts have not yet been created. Variables declared here are
// scoped to the ModuleInstance namespace.
// This special function will receive parameters passed to CreateInstance()
OnModuleLoad({},
);
thisModuleInstance << Create Objects;
// After this point your module instance objects have been created
// and can be referred to by name (for example, "Button1").
dt = open("$sample_data\Candy Bars.jmp");
brand_list = dt:brand << get values;
name_list = dt:name << get values;
brand_lb << set items(brand_list);
name_lb << set items(name_list);
close(dt, nosave);
다음과 같은 모습입니다.
