<?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: sending commands to reports in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/sending-commands-to-reports/m-p/678297#M86468</link>
    <description>&lt;P&gt;Thank you for your help! That works! I really appreciate it!&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
    <pubDate>Fri, 15 Sep 2023 19:51:34 GMT</pubDate>
    <dc:creator>danf</dc:creator>
    <dc:date>2023-09-15T19:51:34Z</dc:date>
    <item>
      <title>sending commands to reports</title>
      <link>https://community.jmp.com/t5/Discussions/sending-commands-to-reports/m-p/678221#M86461</link>
      <description>&lt;P&gt;&amp;nbsp;I would like to get some help on how to send commands to elements within a platform report, I've done it before with the help of Xan Gregg's&amp;nbsp; suggestion. I've done it myself in another case when I happened to get the correct code but I can find nothing that really explains how to do it every time. I have a report coming out of the Time Series platform and I want to send the report a Save Columns command in the Outline Box where the first model appears. This Outline box has a drop down window. I have tried Update Element() as well as Save Columns(1) and Save columns. My guess is that I am not identifying&amp;nbsp; the Outline box properly and I cannot find information on how to do that so I would greatly appreciate some discussion on how to get the proper element identified every time. Attached is a screen shot of the report window and below is my JSL attempts. Any help is greatly appreciated.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();
 
ts = dt &amp;lt;&amp;lt; Time Series(
	Y( :"Forming Line-Forming Line Speed"n ),
	Input List( :Mat Length ),
	Variogram( 1 ),
	Transfer Function(
		Order( 0, 1, 6 ),
		Seasonal( 0, 0, 0, 1 ),
		:Mat Length( Order( 0, 1, 0 ), Seasonal( 0, 0, 0, 1 ), Lag( 0 ) ),
		Prediction Interval( 0.85 ),
		Number of Forecast Periods( 6 )
	),
	Model Comparison Report( Select Reports( [1] ), Select Graphs( Empty() ) ),
	Input Series( :Mat Length, Variogram( 0 ) ),
	SendToReport(
		Dispatch(
			{"Time Series Forming Line-Forming Line Speed", "Model Comparison"},
			"",
			ScrollBox,
			{Background Color( {246, 250, 254} )}
		),
		Dispatch(
			{"Time Series Forming Line-Forming Line Speed", "Transfer Function Model (1)",
			"Interactive Forecasting"},
			"Time Series",
			FrameBox,
			{DispatchSeg( CustomStreamSeg( 2 ), {Line Color( "Red" )} ),
			DispatchSeg( CustomStreamSeg( 3 ), {Line Color( "Blue" )} ),
			DispatchSeg( CustomStreamSeg( 4 ), {Line Color( "Blue" )} ),
			DispatchSeg( CustomStreamSeg( 5 ), {Line Color( "Blue" )} )}
		)
	)
);
tsr = Report( ts );
tsb = tsr( Outline Box( "Transfer Function Model (1)" ) );
tsb &amp;lt;&amp;lt; Save Columns;

 

// tsr &amp;lt;&amp;lt; Update Element(1, 1, 1, 1, 8, 1, {Save Columns}));

// tsr &amp;lt;&amp;lt; Update Element(1, 1, 3, {Save Columns}));
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Sep 2023 18:49:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/sending-commands-to-reports/m-p/678221#M86461</guid>
      <dc:creator>danf</dc:creator>
      <dc:date>2023-09-15T18:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: sending commands to reports</title>
      <link>https://community.jmp.com/t5/Discussions/sending-commands-to-reports/m-p/678280#M86465</link>
      <description>&lt;P&gt;Below are few options which might work for you (or at least maybe give an idea what to do)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Time Series/SeriesJ.jmp");
obj = dt &amp;lt;&amp;lt; Time Series(Y(:Output CO2), Input List(:Input Gas Rate));
obj &amp;lt;&amp;lt; Transfer Function(
	Order(2, 0, 0),
	Seasonal(0, 0, 0, 0),
	:Input Gas Rate(Order(2, 0, 2), Seasonal(0, 0, 0, 0), Lag(3))
);
obj2 = obj &amp;lt;&amp;lt; Transfer Function(
	Order(2, 0, 0),
	Seasonal(0, 0, 0, 0),
	:Input Gas Rate(Order(2, 0, 2), Seasonal(0, 0, 0, 0), Lag(3)),
	No Intercept(1),
	Alternative Parameterization(1),
	Confidence Intervals(0.99),
	Number of Forecast Periods(10)
);

dt1 = obj2 &amp;lt;&amp;lt; Save Columns; // using second reference

// using timeseries reference
dt2 = (Report(obj)[OutlineBox("Transfer Function Model (1)")] &amp;lt;&amp;lt; get scriptable object) &amp;lt;&amp;lt; Save Columns;

show(dt1, dt2);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 19:28:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/sending-commands-to-reports/m-p/678280#M86465</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-09-15T19:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: sending commands to reports</title>
      <link>https://community.jmp.com/t5/Discussions/sending-commands-to-reports/m-p/678297#M86468</link>
      <description>&lt;P&gt;Thank you for your help! That works! I really appreciate it!&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 19:51:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/sending-commands-to-reports/m-p/678297#M86468</guid>
      <dc:creator>danf</dc:creator>
      <dc:date>2023-09-15T19:51:34Z</dc:date>
    </item>
  </channel>
</rss>

