안녕,
개체 "GraphBuilder"를 저널로 보낼 수 없습니다. 다음 보고서를 검색해야 합니다. report (obj) << Journal;
또한 저널을 닫으려는 것인지 스크립트의 마지막 문으로 Obj를 닫으려는 것인지 명확하지 않습니다. 이 두 단계를 분리하는 것이 좋습니다.
최상의,
TS
귀하의 프로세스 단계에 대한 이 간단한 예에서는 이 문제를 볼 수 없습니다.
Names Default to Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
obj = dt << Graph Builder(
Size( 534, 456 ),
Show Control Panel( 0 ),
Show Legend( 0 ),
Variables( X( :height ), Y( :weight ) ),
Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 4 ) ) )
);
obj << Journal;
obj << Close Window;
다음은 이 오류를 발생시키는 코드입니다.왜 이런 일이 발생합니까?나는 단서가 없다.
//Fan Statuses vs. Occupancy graphs
For( j = 1, j <= N Items( var ), j++, //Outer loop to cycle within list of variables
v1 = Char( "Time " || var[j] || "_FanStatus" );
v2 = Char( var[j] || "_FanStatus" );
obj = Graph Builder(
Size( 1400, 800 ),
Variables(
X( Column( v1 ) ),
X( :Time Final, Position( 1 ) ),
Y( Column( v2 ) ),
Color( :Occupancy )
),
Elements(
Line( X( 1 ), Y, Color( 0 ), Legend( 2 ), Connection( "Step" ) ),
Heatmap( X( 2 ), Legend( 3 ) )
),
SendToReport(
Dispatch( {"Line"}, "", OutlineBox, {Close( 0 )} ),
Dispatch( {"Heatmap"}, "", OutlineBox, {Close( 0 )} ),
Dispatch(
{},
v1,
ScaleBox,
{Min( :Time Final[1] ), Max( :Time Final[N Rows( :Time Final )] ), Interval( "Minute" ),
Inc( 15 ), Minor Ticks( 0 ), Label Row( Label Orientation( "Angled" ) )}
),
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
3,
Properties( 0, {Transparency( 0.5 )}, Item ID( "Occupied", 1 ) ),
Properties( 1, {Fill Color( 4 ), Transparency( 0.5 )}, Item ID( "OptStart", 1 ) ),
Properties( 2, {Fill Color( 2 ), Transparency( 0 )}, Item ID( "Unoccupied", 1 ) )
)}
),
Dispatch( {}, "graph title", TextEditBox, {Set Text( "Raney " || v2 || " vs. Occ" )} )
)
);
obj << Journal << Close Window;
);