함수가있는 위치와 출력을 표시하는 표현식 평가안녕하세요, 다른 테이블에 변수 이름을 기반으로 분리 된 데이터 테이블에서 일련의 그래프를 만들고 있습니다. 기본적으로 y 대 x의 2 변량 그래프를 만들 때 by는 다른 이름 표에서 선택됩니다. 그래프를 라인업 상자에 넣었지만 변수가 나타내는 실제 값을 사용할 위치를 얻을 수 없습니다. 또한 별도의 텍스트 상자가 그래프 위에 표시되어 그래프 제목에 표시되는 대신 지정됩니다. 기본적으로 Where (: Parameter == CofA_dt10 : Parameter [w])를 볼 수 있지만 그래프의 어떤 변수를 알 수 있도록 w의 다른 값에 대해 평가 된 식을보고 싶습니다. eval, eval expr 및 parse의 여러 변형을 시도했으며 원하는 방식으로 테스트를 수행 할 수 없습니다. 내 코드는 아래에, 모든 제안 크게 감사하겠습니다. 아래와 같이 EVAL 기능이 포함 된 디스플레이가 나타나지 않습니다. EVAL 기능을 삭제하면 위에 설명한 문제가 있지만 표시됩니다.
CofA_dt10 = Data Table( "GraphData" ) << Summary(
Group( :Parameter ),
Freq( "None" ),
Weight( "None" )
);
output2 = lineup box(Ncol(1));
row_count = nrow(CofA_dt10);
for(w=1, w<=row_count-1, w++,
output2 << append (CofA_dt9 << Bivariate(
Y( :test_value ),
X( :received_date ),
Where( :Parameter == Eval(CofA_dt10:Parameter[w])),
SendToReport(
Dispatch(
{},
"Bivariate Fit of CofA Parameter Value By received_date",
OutlineBox,
{Set Title( "CofA Material Parameter Value By received_date" )}
),
Dispatch( {}, "1", ScaleBox, {Label Row( Label Orientation( "Angled" ) )} ),
Dispatch( {}, "test_value", TextEditBox, {Set Text( "Value" )} )
)
))
); //end row loop
Re : 함수가 어디에 있는지와 출력을 표시하는 표현식 평가하기안녕 Uday, 그 작동하지 않았다; 나는 그 표현을 평가할 수 없다.
여기서 진술. 그러나, 당신이 보낸 코드를 수정하고
그래프 제목 내에서 표현식을 평가하십시오. 삭제 방법을 찾으면
그래프 위의 텍스트 상자에 "Where (: Parameter == Eval (
파싱 (Eval Insert ( "Stmt")))) "다음은 허용 가능해야합니다
해결책. 왜 아직도 그래프 제목에서 작동하지만 나는 그렇지 않은지 궁금합니다.
where 문은 내 자신의 이해를위한 것입니다.
CofA_dt10 = 데이터 테이블 * (* "GraphData"*) * << * 요약 (* 그룹 * (* : 매개 변수
*) *, Freq * (* "None"*) *, Weight * (* "None"*) * *) *;
output2 = 라인업 박스 * (* N Col * (* * 1 * *) * *) *;
row_count = N 행 * (* CofA_dt10 *) *;
* (* w = * 1 *, w <= row_count - * 1 *, w ++,
Stmt = CofA_dt10 : 매개 변수 * [* w *] *;
output2 << * append (*
CofA_dt9 <<
이변 량 * (*
Y * (* : test_value *) *,
X * (* : 수신 _ 날짜 *) *,
* * * * *) * *) * * * * * * * * * * *
*) *,
SendToReport * (*
급파*(*
* {} *,
"test_value By bivariate Fit by received_date",
아웃 라인 박스,
* {* 제목 설정 * (* "received_date에 의한 CofA 매개 변수 값"|| ""|| Eval * (*
Parse * (* Eval Insert * (* "Stmt"*) * *) * *) * *)} *
*) *,
디스패치 * (* * {} *, "1", ScaleBox, * {* 레이블 행 * (* 레이블 방향 * (*
"Angled"*)) * *) *,
급파*(*
* {} *,
"test_value",
TextEditBox,
* {* 텍스트 설정 * (*
"값"
*)} *
*) *
*)))) *
*); *
Re : 함수가 어디에 있는지와 출력을 표시하는 표현식 평가하기 @ 토로 몬 ,
하나의 편집, 나는 이것이 작동 할지도 모른다고 생각한다. 나에게 알려주지 않으면 나는 그것을 살펴볼 것이다.
CofA_dt10 <SPAN class="token operator">=</SPAN> <SPAN class="token function">Data Table</SPAN><SPAN class="token punctuation">(</SPAN> <SPAN class="token string">"GraphData"</SPAN> <SPAN class="token punctuation">)</SPAN> <SPAN class="token operator"><</SPAN><SPAN class="token operator"><</SPAN> Summary<SPAN class="token punctuation">(</SPAN> Group<SPAN class="token punctuation">(</SPAN> <SPAN class="token punctuation">:</SPAN><SPAN class="token function">Parameter</SPAN> <SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">,</SPAN> Freq<SPAN class="token punctuation">(</SPAN> <SPAN class="token string">"None"</SPAN> <SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">,</SPAN> Weight<SPAN class="token punctuation">(</SPAN> <SPAN class="token string">"None"</SPAN> <SPAN class="token punctuation">)</SPAN> <SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;</SPAN>
output2 <SPAN class="token operator">=</SPAN> <SPAN class="token function">Lineup Box</SPAN><SPAN class="token punctuation">(</SPAN> N Col<SPAN class="token punctuation">(</SPAN> <SPAN class="token number">1</SPAN> <SPAN class="token punctuation">)</SPAN> <SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;</SPAN>
row_count <SPAN class="token operator">=</SPAN> <SPAN class="token function">N Row</SPAN><SPAN class="token punctuation">(</SPAN> CofA_dt10 <SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;</SPAN>
<SPAN class="token function">For</SPAN><SPAN class="token punctuation">(</SPAN> w <SPAN class="token operator">=</SPAN> <SPAN class="token number">1</SPAN><SPAN class="token punctuation">,</SPAN> w <SPAN class="token operator"><=</SPAN> row_count <SPAN class="token operator">-</SPAN> <SPAN class="token number">1</SPAN><SPAN class="token punctuation">,</SPAN> w<SPAN class="token operator">++</SPAN><SPAN class="token punctuation">,</SPAN>
Stmt <SPAN class="token operator">=</SPAN> CofA_dt10<SPAN class="token punctuation">:</SPAN><SPAN class="token function">Parameter</SPAN><SPAN class="token punctuation">[</SPAN>w<SPAN class="token punctuation">]</SPAN><SPAN class="token punctuation">;</SPAN>
output2 <SPAN class="token operator"><</SPAN><SPAN class="token operator"><</SPAN> append<SPAN class="token punctuation">(</SPAN>
CofA_dt9 <SPAN class="token operator"><</SPAN><SPAN class="token operator"><</SPAN> Bivariate<SPAN class="token punctuation">(</SPAN>
Y<SPAN class="token punctuation">(</SPAN> <SPAN class="token punctuation">:</SPAN>test_value <SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">,</SPAN>
X<SPAN class="token punctuation">(</SPAN> <SPAN class="token punctuation">:</SPAN>received_date <SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">,</SPAN>
Eval(Parse(Eval Insert("\[Where<SPAN class="token punctuation">(</SPAN> <SPAN class="token punctuation">:</SPAN><SPAN class="token function">Parameter</SPAN> <SPAN class="token operator">==</SPAN> <SPAN class="token punctuation">[^</SPAN>Stmt^<SPAN class="token punctuation">]</SPAN>\"<SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">)</SPAN> <SPAN class="token punctuation">)</SPAN> <SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">,</SPAN>
SendToReport<SPAN class="token punctuation">(</SPAN>
Dispatch<SPAN class="token punctuation">(</SPAN>
<SPAN class="token punctuation">{</SPAN><SPAN class="token punctuation">}</SPAN><SPAN class="token punctuation">,</SPAN>
<SPAN class="token string">"Bivariate Fit of CofA Parameter Value By received_date"</SPAN><SPAN class="token punctuation">,</SPAN>
<SPAN class="token function">OutlineBox</SPAN><SPAN class="token punctuation">,</SPAN>
<SPAN class="token punctuation">{</SPAN>Set Title<SPAN class="token punctuation">(</SPAN> <SPAN class="token string">"CofA Material Parameter Value By received_date"</SPAN> <SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">}</SPAN>
<SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">,</SPAN>
Dispatch<SPAN class="token punctuation">(</SPAN> <SPAN class="token punctuation">{</SPAN><SPAN class="token punctuation">}</SPAN><SPAN class="token punctuation">,</SPAN> <SPAN class="token string">"1"</SPAN><SPAN class="token punctuation">,</SPAN> ScaleBox<SPAN class="token punctuation">,</SPAN> <SPAN class="token punctuation">{</SPAN>Label <SPAN class="token function">Row</SPAN><SPAN class="token punctuation">(</SPAN> Label Orientation<SPAN class="token punctuation">(</SPAN> <SPAN class="token string">"Angled"</SPAN> <SPAN class="token punctuation">)</SPAN> <SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">}</SPAN> <SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">,</SPAN>
Dispatch<SPAN class="token punctuation">(</SPAN> <SPAN class="token punctuation">{</SPAN><SPAN class="token punctuation">}</SPAN><SPAN class="token punctuation">,</SPAN> <SPAN class="token string">"test_value"</SPAN><SPAN class="token punctuation">,</SPAN> <SPAN class="token function">TextEditBox</SPAN><SPAN class="token punctuation">,</SPAN> <SPAN class="token punctuation">{</SPAN>Set <SPAN class="token function">Text</SPAN><SPAN class="token punctuation">(</SPAN> <SPAN class="token string">"Value"</SPAN> <SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">}</SPAN> <SPAN class="token punctuation">)</SPAN>
<SPAN class="token punctuation">)</SPAN>
<SPAN class="token punctuation">)</SPAN>
<SPAN class="token punctuation">)</SPAN>
<SPAN class="token punctuation">)</SPAN><SPAN class="token punctuation">;</SPAN> <SPAN class="token comment">//end row loop</SPAN>
Re : 함수가 어디에 있는지와 출력을 표시하는 표현식 평가하기Uday에게 감사하지만 불행히도, 그것은 여전히 나를 위해 작동하지 않습니다. 제목
그래프의 "
매개 변수 == Eval (구문 분석 (Eval Insert ( "Stmt")))) "대신
각 그래프에 대해 Stmt를 표시합니다. JMP 12를 사용하면
차.
건배,
테스 푸
Re : 함수가 어디에 있는지와 출력을 표시하는 표현식 평가하기 @ 토로 몬 ,
시도해보고 싶은 것이 있습니다 :
CofA_dt10 = Data Table( "GraphData" ) << Summary( Group( :Parameter ), Freq( "None" ), Weight( "None" ) );
output2 = Lineup Box( N Col( 1 ) );
row_count = N Row( CofA_dt10 );
For( w = 1, w <= row_count - 1, w++,
Stmt = CofA_dt10:Parameter[w];
output2 << append(
CofA_dt9 << Bivariate(
Y( :test_value ),
X( :received_date ),
Where( :Parameter == Eval(Parse(Eval Insert("\[Stmt]\")) ) ),
SendToReport(
Dispatch(
{},
"Bivariate Fit of CofA Parameter Value By received_date",
OutlineBox,
{Set Title( "CofA Material Parameter Value By received_date" )}
),
Dispatch( {}, "1", ScaleBox, {Label Row( Label Orientation( "Angled" ) )} ),
Dispatch( {}, "test_value", TextEditBox, {Set Text( "Value" )} )
)
)
)
); //end row loop본질적으로 Eval 삽입 및 파싱으로 평가를 래핑하려고합니다.