<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Send Expects Scriptable Object in access or evaluation of 'Send' , obj &amp;lt;&amp;lt; /*###*/Journal &amp;lt;&amp;lt; /*###*/Close Window/*###*/ in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Send-Expects-Scriptable-Object-in-access-or-evaluation-of-Send/m-p/599013#M80254</link>
    <description>&lt;P&gt;I do not see this issue with this simple example of the steps in your process:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

obj = dt &amp;lt;&amp;lt; 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 &amp;lt;&amp;lt; Journal;

obj &amp;lt;&amp;lt; Close Window;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 09 Feb 2023 13:43:38 GMT</pubDate>
    <dc:creator>Mark_Bailey</dc:creator>
    <dc:date>2023-02-09T13:43:38Z</dc:date>
    <item>
      <title>Send Expects Scriptable Object in access or evaluation of 'Send' , obj &lt;&lt; /*###*/Journal &lt;&lt; /*###*/Close Window/*###*/</title>
      <link>https://community.jmp.com/t5/Discussions/Send-Expects-Scriptable-Object-in-access-or-evaluation-of-Send/m-p/598821#M80243</link>
      <description>&lt;P&gt;Here is some code that throws this error.&amp;nbsp; Why is it happening?&amp;nbsp; I don't have a clue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//Fan Statuses vs. Occupancy graphs
For( j = 1, j &amp;lt;= 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 &amp;lt;&amp;lt; Journal &amp;lt;&amp;lt; Close Window;
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:37:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Send-Expects-Scriptable-Object-in-access-or-evaluation-of-Send/m-p/598821#M80243</guid>
      <dc:creator>JohnAvina</dc:creator>
      <dc:date>2023-06-08T16:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Send Expects Scriptable Object in access or evaluation of 'Send' , obj &lt;&lt; /*###*/Journal &lt;&lt; /*###*/Close Window/*###*/</title>
      <link>https://community.jmp.com/t5/Discussions/Send-Expects-Scriptable-Object-in-access-or-evaluation-of-Send/m-p/598848#M80244</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The object "GraphBuilder" cannot be sent to a Journal. You need to retrieve the Report: report (obj) &amp;lt;&amp;lt; Journal;&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 22:28:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Send-Expects-Scriptable-Object-in-access-or-evaluation-of-Send/m-p/598848#M80244</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2023-02-08T22:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Send Expects Scriptable Object in access or evaluation of 'Send' , obj &lt;&lt; /*###*/Journal &lt;&lt; /*###*/Close Window/*###*/</title>
      <link>https://community.jmp.com/t5/Discussions/Send-Expects-Scriptable-Object-in-access-or-evaluation-of-Send/m-p/599013#M80254</link>
      <description>&lt;P&gt;I do not see this issue with this simple example of the steps in your process:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

obj = dt &amp;lt;&amp;lt; 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 &amp;lt;&amp;lt; Journal;

obj &amp;lt;&amp;lt; Close Window;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Feb 2023 13:43:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Send-Expects-Scriptable-Object-in-access-or-evaluation-of-Send/m-p/599013#M80254</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2023-02-09T13:43:38Z</dc:date>
    </item>
  </channel>
</rss>

