cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-598848%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%9C%A8%E8%AE%BF%E9%97%AE%E6%88%96%E8%AF%84%E4%BC%B0%E2%80%9C%E5%8F%91%E9%80%81%E2%80%9D%E6%97%B6%E5%8F%91%E9%80%81%E6%9C%9F%E6%9C%9B%E8%84%9A%E6%9C%AC%E5%8C%96%E5%AF%B9%E8%B1%A1%EF%BC%8Cobj%20%26lt%3B%26lt%3B%20%2F*%23%23%23*%2FJournal%20%26lt%3B%26lt%3B%20%2F*%23%23%23*%2FClose%20Window%2F*%23%23%23*%2F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-598848%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E6%97%A0%E6%B3%95%E5%B0%86%E5%AF%B9%E8%B1%A1%E2%80%9CGraphBuilder%E2%80%9D%E5%8F%91%E9%80%81%E5%88%B0%20Journal%E3%80%82%20%E6%82%A8%E9%9C%80%E8%A6%81%E6%A3%80%E7%B4%A2%E6%8A%A5%E5%91%8A%EF%BC%9Areport%20(obj)%20%26lt%3B%26lt%3B%20Journal%3B%3C%2FP%3E%0A%3CP%3E%E6%AD%A4%E5%A4%96%EF%BC%8C%E4%B8%8D%E6%B8%85%E6%A5%9A%E6%82%A8%E6%98%AF%E8%A6%81%E5%85%B3%E9%97%AD%20Journal%20%E8%BF%98%E6%98%AF%E8%A6%81%E4%BD%BF%E7%94%A8%E8%84%9A%E6%9C%AC%E7%9A%84%E6%9C%80%E5%90%8E%E4%B8%80%E6%9D%A1%E8%AF%AD%E5%8F%A5%E5%85%B3%E9%97%AD%20Obj%E3%80%82%20%E6%88%91%E5%BB%BA%E8%AE%AE%E5%88%86%E5%BC%80%E8%BF%99%E4%B8%A4%E4%B8%AA%E6%AD%A5%E9%AA%A4%E3%80%82%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E6%9C%80%E5%A5%BD%E7%9A%84%EF%BC%8C%3C%2FP%3E%0A%3CP%3ETS%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-599013%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%9C%A8%E2%80%9C%E5%8F%91%E9%80%81%E2%80%9D%E7%9A%84%E8%AE%BF%E9%97%AE%E6%88%96%E8%AF%84%E4%BC%B0%E4%B8%AD%E5%8F%91%E9%80%81%E6%9C%9F%E6%9C%9B%E8%84%9A%E6%9C%AC%E5%8C%96%E5%AF%B9%E8%B1%A1%EF%BC%8Cobj%20%26lt%3B%26lt%3B%20%2F*%23%23%23*%2FJournal%20%26lt%3B%26lt%3B%20%2F*%23%23%23*%2FClose%20Window%2F*%23%23%23*%2F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-599013%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E6%88%91%E5%9C%A8%E6%82%A8%E7%9A%84%E8%BF%87%E7%A8%8B%E4%B8%AD%E7%9A%84%E8%BF%99%E4%B8%AA%E7%AE%80%E5%8D%95%E6%AD%A5%E9%AA%A4%E7%A4%BA%E4%BE%8B%E4%B8%AD%E7%9C%8B%E4%B8%8D%E5%88%B0%E8%BF%99%E4%B8%AA%E9%97%AE%E9%A2%98%EF%BC%9A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20to%20Here(%201%20)%3B%0A%0Adt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FBig%20Class.jmp%22%20)%3B%0A%0Aobj%20%3D%20dt%20%26lt%3B%26lt%3B%20Graph%20Builder(%0A%20Size(%20534%2C%20456%20)%2C%0A%20Show%20Control%20Panel(%200%20)%2C%0A%20Show%20Legend(%200%20)%2C%0A%20Variables(%20X(%20%3Aheight%20)%2C%20Y(%20%3Aweight%20)%20)%2C%0A%20Elements(%20Points(%20X%2C%20Y%2C%20Legend(%203%20)%20)%2C%20Smoother(%20X%2C%20Y%2C%20Legend(%204%20)%20)%20)%0A)%3B%0A%0Aobj%20%26lt%3B%26lt%3B%20Journal%3B%0A%0Aobj%20%26lt%3B%26lt%3B%20Close%20Window%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-598821%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ESend%20%E5%9C%A8%E8%AE%BF%E9%97%AE%E6%88%96%E8%AF%84%E4%BC%B0%20'Send'%20%E6%97%B6%E9%9C%80%E8%A6%81%E5%8F%AF%E7%BC%96%E5%86%99%E8%84%9A%E6%9C%AC%E7%9A%84%E5%AF%B9%E8%B1%A1%EF%BC%8Cobj%20%26lt%3B%26lt%3B%20%2F*%23%23%23*%2FJournal%20%26lt%3B%26lt%3B%20%2F*%23%23%23*%2FClose%20Window%2F*%23%23%23*%2F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-598821%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E8%BF%99%E6%98%AF%E5%BC%95%E5%8F%91%E6%AD%A4%E9%94%99%E8%AF%AF%E7%9A%84%E4%B8%80%E4%BA%9B%E4%BB%A3%E7%A0%81%E3%80%82%E4%B8%BA%E4%BB%80%E4%B9%88%E4%BC%9A%E5%8F%91%E7%94%9F%E8%BF%99%E7%A7%8D%E6%83%85%E5%86%B5%EF%BC%9F%E6%88%91%E4%B8%8D%E7%9F%A5%E9%81%93%E3%80%82%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%2F%2FFan%20Statuses%20vs.%20Occupancy%20graphs%0AFor(%20j%20%3D%201%2C%20j%20%26lt%3B%3D%20N%20Items(%20var%20)%2C%20j%2B%2B%2C%20%2F%2FOuter%20loop%20to%20cycle%20within%20list%20of%20variables%0A%0A%20v1%20%3D%20Char(%20%22Time%20%22%20%7C%7C%20var%5Bj%5D%20%7C%7C%20%22_FanStatus%22%20)%3B%0A%20v2%20%3D%20Char(%20var%5Bj%5D%20%7C%7C%20%22_FanStatus%22%20)%3B%0A%0A%20obj%20%3D%20Graph%20Builder(%0A%20%20Size(%201400%2C%20800%20)%2C%0A%20%20Variables(%0A%20%20%20X(%20Column(%20v1%20)%20)%2C%0A%20%20%20X(%20%3ATime%20Final%2C%20Position(%201%20)%20)%2C%0A%20%20%20Y(%20Column(%20v2%20)%20)%2C%0A%20%20%20Color(%20%3AOccupancy%20)%0A%20%20)%2C%0A%20%20Elements(%0A%20%20%20Line(%20X(%201%20)%2C%20Y%2C%20Color(%200%20)%2C%20Legend(%202%20)%2C%20Connection(%20%22Step%22%20)%20)%2C%0A%20%20%20Heatmap(%20X(%202%20)%2C%20Legend(%203%20)%20)%0A%20%20)%2C%0A%20%20SendToReport(%0A%20%20%20Dispatch(%20%7B%22Line%22%7D%2C%20%22%22%2C%20OutlineBox%2C%20%7BClose(%200%20)%7D%20)%2C%0A%20%20%20Dispatch(%20%7B%22Heatmap%22%7D%2C%20%22%22%2C%20OutlineBox%2C%20%7BClose(%200%20)%7D%20)%2C%0A%20%20%20Dispatch(%0A%20%20%20%20%7B%7D%2C%0A%20%20%20%20v1%2C%0A%20%20%20%20ScaleBox%2C%0A%20%20%20%20%7BMin(%20%3ATime%20Final%5B1%5D%20)%2C%20Max(%20%3ATime%20Final%5BN%20Rows(%20%3ATime%20Final%20)%5D%20)%2C%20Interval(%20%22Minute%22%20)%2C%0A%20%20%20%20Inc(%2015%20)%2C%20Minor%20Ticks(%200%20)%2C%20Label%20Row(%20Label%20Orientation(%20%22Angled%22%20)%20)%7D%0A%20%20%20)%2C%0A%20%20%20Dispatch(%0A%20%20%20%20%7B%7D%2C%0A%20%20%20%20%22400%22%2C%0A%20%20%20%20ScaleBox%2C%0A%20%20%20%20%7BLegend%20Model(%0A%20%20%20%20%203%2C%0A%20%20%20%20%20Properties(%200%2C%20%7BTransparency(%200.5%20)%7D%2C%20Item%20ID(%20%22Occupied%22%2C%201%20)%20)%2C%0A%20%20%20%20%20Properties(%201%2C%20%7BFill%20Color(%204%20)%2C%20Transparency(%200.5%20)%7D%2C%20Item%20ID(%20%22OptStart%22%2C%201%20)%20)%2C%0A%20%20%20%20%20Properties(%202%2C%20%7BFill%20Color(%202%20)%2C%20Transparency(%200%20)%7D%2C%20Item%20ID(%20%22Unoccupied%22%2C%201%20)%20)%0A%20%20%20%20)%7D%0A%20%20%20)%2C%0A%20%20%20Dispatch(%20%7B%7D%2C%20%22graph%20title%22%2C%20TextEditBox%2C%20%7BSet%20Text(%20%22Raney%20%22%20%7C%7C%20v2%20%7C%7C%20%22%20vs.%20Occ%22%20)%7D%20)%0A%20%20)%0A%20)%3B%0A%20obj%20%26lt%3B%26lt%3B%20Journal%20%26lt%3B%26lt%3B%20Close%20Window%3B%0A)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-598821%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3E%E6%B6%88%E8%B4%B9%E8%80%85%E5%92%8C%E5%B8%82%E5%9C%BA%E7%A0%94%E7%A9%B6%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E8%B4%A8%E9%87%8F%E5%92%8C%E5%B7%A5%E8%89%BA%E5%B7%A5%E7%A8%8B%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Choose Language Hide Translation Bar
JohnAvina
Level I

Send Expects Scriptable Object in access or evaluation of 'Send' , obj << /*###*/Journal << /*###*/Close Window/*###*/

Here is some code that throws this error.  Why is it happening?  I don't have a clue.

 

//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;
);
2 REPLIES 2
Thierry_S
Super User

Re: Send Expects Scriptable Object in access or evaluation of 'Send' , obj << /*###*/Journal << /*###*/Close Window/*###*/

Hi,

 

The object "GraphBuilder" cannot be sent to a Journal. You need to retrieve the Report: report (obj) << Journal;

Also, it is unclear whether you are trying to close the Journal or close the Obj with the last statement of your script. I recommend separating these two steps.

 

Best,

TS

Thierry R. Sornasse

Re: Send Expects Scriptable Object in access or evaluation of 'Send' , obj << /*###*/Journal << /*###*/Close Window/*###*/

I do not see this issue with this simple example of the steps in your process:

 

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;

Recommended Articles