글로벌 데이터 필터에 메시지를 보내는 방법은 무엇입니까?스크립팅을 통해 다른 필터를 표시하기 위해 전역 필터에 메시지를 보내는 방법이 있습니까?
때로는 이전에 저장한 여러 필터 설정 또는 "where 절"을 검토/호출하고 싶습니다.
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Cities.jmp" );
obj = dt << Data Filter(conditional);
obj << Add Filter( columns( :POP ) );
obj << Add Filter( columns( :Region, :State, :City ), Where( :Region == "S" ), Where( :State == {"SC", "NC"} ) );
wait(1);
//This works
obj << clear;
obj << ( filter column( :Region, :State, :City )<< Where( :Region == "S" ) );
//Unable to work once multiple clauses are perscribed
obj << clear;
obj << ( filter column( :Region, :State, :City )<< Where( :Region == "S" & State == "LA") );도움을 주셔서 감사합니다!
데이터 테이블스크립팅Re: 글로벌 데이터 필터에 메시지를 보내는 방법은 무엇입니까?앞에 누락된 ":"를 추가하는 것처럼 간단할 수 있습니까?
State == "LA"
Re: 글로벌 데이터 필터에 메시지를 보내는 방법은 무엇입니까?두 개의 별도 Where로 나누어야 할 수도 있습니다(이유는 모름).
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Cities.jmp");
obj = dt << Data Filter(conditional);
obj << Add Filter(columns(:POP));
obj << Add Filter(columns(:Region, :State, :City), Where(:Region == "S"), Where(:State == {"SC", "NC"}));
Wait(1);
obj << clear;
obj << (filter column(:Region, :State, :City) << Where(:Region == "S"));
obj << clear;
obj << (filter column(:Region) << Where(:Region == "S"));
obj << (filter column(:State) << Where(:State == "LA"));
Re: 글로벌 데이터 필터에 메시지를 보내는 방법은 무엇입니까?절을 결합(또는 여러 방법으로 변경할 수 없음)할 수 없는 데이터 필터 표현식이 실행되지 않기 때문에 구문 분석하여 각 필터 항목의 상태를 설정합니다.상태를 두 개의 명령으로 분리하면 예상대로 작동해야 합니다.
obj << clear;
obj << ( filter column( :Region ) << Where( :Region == "S" ) );
obj << ( filter column( :State ) << Where( :State == "LA") );
Re: 글로벌 데이터 필터에 메시지를 보내는 방법은 무엇입니까?감사 @danschikore . 더 강력한 기능을 원했지만 이것이 내가 해결해야 하는 한계인 것 같습니다.