<?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 JSL: How to script a graph update with Combo box and Next/Prev buttons in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-How-to-script-a-graph-update-with-Combo-box-and-Next-Prev/m-p/435571#M68478</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I'm working on a larger set of JSL code and am interested in adding some functionality to it so that the user can cycle through different views -- something like what one can do when cycling through the different components in the PCA platform, see screen shot below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DiedrichSchmidt_0-1636648358078.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37484iC0C052D73F706B7B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DiedrichSchmidt_0-1636648358078.png" alt="DiedrichSchmidt_0-1636648358078.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I know that I need a couple Combo Boxes with the relevant columns from the data table, but I'm not sure how to get the graph to auto-update like in the PCA platform or how to correctly call the Next button box. I would also like to add in a Previous button box so the user can step back in the view more easily.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If anyone has some suggestions or ideas on how to implement this, I'd appreciate the help. I haven't been successful searching for this functionality or finding much about it in the Scripting Index or Scripting Guide that I have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UPDATE: I am getting closer and have a code that cycles through the list in the combo box, so that's pretty straightforward (see below). What I'm still having trouble with is getting the graph to update automatically. The intent is when the user clicks Next or Prev, the y variable changes automatically in the graph. BTW, I am using the Boston Housing.jmp file to test it out.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;Names Default To Here( 1 );

dt = Data Table( "Boston Housing" );

xlist = dt &amp;lt;&amp;lt; Get Column Names( String );

nw = New Window( "interactive Graph builder", V List Box( vlb1 = V List Box(), vlb2 = V List Box() ) );

xcol = 1;
ycol = 2;

lbcontent = V List Box(
	Lineup Box( N Col( 5 ),
		Text Box( "Select Params", &amp;lt;&amp;lt;Set Font Size( 11 ) ),
		xcb = Combo Box( xlist ),
		ycb = Combo Box( xlist, &amp;lt;&amp;lt;Set( 2 ) ),
		pbb = Button Box( "Prev",
			&amp;lt;&amp;lt;SetIcon( "PrevSeq" ),
			&amp;lt;&amp;lt;Set Icon Location( "left" ),
			&amp;lt;&amp;lt;Set Function(
				Function( {},
					ycb &amp;lt;&amp;lt; Set( ycol - 1 );
					Return( ycol = ycb &amp;lt;&amp;lt; Get );
				)
			)
		),
		nbb = Button Box( "Next",
			&amp;lt;&amp;lt;Set Icon( "NextSeq" ),
			&amp;lt;&amp;lt;Set Icon Location( "right" ),
			&amp;lt;&amp;lt;Set Function(
				Function( {},
					ycb &amp;lt;&amp;lt; Set( ycol + 1 );
					Return( ycol = ycb &amp;lt;&amp;lt; Get );
				)
			)
		)
	)
);

vlb2 &amp;lt;&amp;lt; Append( lbcontent );

gbcontent = V List Box( Graph builder( Show Control Panel( 0 ), Variables( X( Column( dt, xcol ) ), Y( Column( dt, ycol ) ) ) ) );

vlb1 &amp;lt;&amp;lt; Append( gbcontent );

&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 09 Jun 2023 18:04:56 GMT</pubDate>
    <dc:creator>SDF1</dc:creator>
    <dc:date>2023-06-09T18:04:56Z</dc:date>
    <item>
      <title>JSL: How to script a graph update with Combo box and Next/Prev buttons</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-to-script-a-graph-update-with-Combo-box-and-Next-Prev/m-p/435571#M68478</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I'm working on a larger set of JSL code and am interested in adding some functionality to it so that the user can cycle through different views -- something like what one can do when cycling through the different components in the PCA platform, see screen shot below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DiedrichSchmidt_0-1636648358078.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37484iC0C052D73F706B7B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DiedrichSchmidt_0-1636648358078.png" alt="DiedrichSchmidt_0-1636648358078.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I know that I need a couple Combo Boxes with the relevant columns from the data table, but I'm not sure how to get the graph to auto-update like in the PCA platform or how to correctly call the Next button box. I would also like to add in a Previous button box so the user can step back in the view more easily.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If anyone has some suggestions or ideas on how to implement this, I'd appreciate the help. I haven't been successful searching for this functionality or finding much about it in the Scripting Index or Scripting Guide that I have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UPDATE: I am getting closer and have a code that cycles through the list in the combo box, so that's pretty straightforward (see below). What I'm still having trouble with is getting the graph to update automatically. The intent is when the user clicks Next or Prev, the y variable changes automatically in the graph. BTW, I am using the Boston Housing.jmp file to test it out.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;Names Default To Here( 1 );

dt = Data Table( "Boston Housing" );

xlist = dt &amp;lt;&amp;lt; Get Column Names( String );

nw = New Window( "interactive Graph builder", V List Box( vlb1 = V List Box(), vlb2 = V List Box() ) );

xcol = 1;
ycol = 2;

lbcontent = V List Box(
	Lineup Box( N Col( 5 ),
		Text Box( "Select Params", &amp;lt;&amp;lt;Set Font Size( 11 ) ),
		xcb = Combo Box( xlist ),
		ycb = Combo Box( xlist, &amp;lt;&amp;lt;Set( 2 ) ),
		pbb = Button Box( "Prev",
			&amp;lt;&amp;lt;SetIcon( "PrevSeq" ),
			&amp;lt;&amp;lt;Set Icon Location( "left" ),
			&amp;lt;&amp;lt;Set Function(
				Function( {},
					ycb &amp;lt;&amp;lt; Set( ycol - 1 );
					Return( ycol = ycb &amp;lt;&amp;lt; Get );
				)
			)
		),
		nbb = Button Box( "Next",
			&amp;lt;&amp;lt;Set Icon( "NextSeq" ),
			&amp;lt;&amp;lt;Set Icon Location( "right" ),
			&amp;lt;&amp;lt;Set Function(
				Function( {},
					ycb &amp;lt;&amp;lt; Set( ycol + 1 );
					Return( ycol = ycb &amp;lt;&amp;lt; Get );
				)
			)
		)
	)
);

vlb2 &amp;lt;&amp;lt; Append( lbcontent );

gbcontent = V List Box( Graph builder( Show Control Panel( 0 ), Variables( X( Column( dt, xcol ) ), Y( Column( dt, ycol ) ) ) ) );

vlb1 &amp;lt;&amp;lt; Append( gbcontent );

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:04:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-to-script-a-graph-update-with-Combo-box-and-Next-Prev/m-p/435571#M68478</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2023-06-09T18:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: How to script a graph update with Combo box and Next/Prev buttons</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-to-script-a-graph-update-with-Combo-box-and-Next-Prev/m-p/435715#M68492</link>
      <description>&lt;P&gt;Why not use the Column Switcher?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 21:49:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-to-script-a-graph-update-with-Combo-box-and-Next-Prev/m-p/435715#M68492</guid>
      <dc:creator>DonMcCormack</dc:creator>
      <dc:date>2021-11-11T21:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: How to script a graph update with Combo box and Next/Prev buttons</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-to-script-a-graph-update-with-Combo-box-and-Next-Prev/m-p/435716#M68493</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5080"&gt;@DonMcCormack&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Yes, that would do the trick for sure, but I want an auto update of the graph when the user clicks the Next/Prev buttons or selects a different set of variables from the combo box. Essentially, I'm trying to re-create the functionality of the PCA platform but have it be generalized for incorporation into other scripts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 21:52:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-to-script-a-graph-update-with-Combo-box-and-Next-Prev/m-p/435716#M68493</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2021-11-11T21:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: How to script a graph update with Combo box and Next/Prev buttons</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-to-script-a-graph-update-with-Combo-box-and-Next-Prev/m-p/435897#M68501</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So, I was able to find a previous discussion thread &lt;A href="https://community.jmp.com/t5/Discussions/Refresh-Graph-in-Dialog-Box/td-p/7268" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;where&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/182"&gt;@ms&lt;/a&gt;&amp;nbsp;helped another user do something similar. I was able to work off of that idea and modify it to get it to more or less work as I intend. below is the code allowing for that functionality, except for one minor "flaw".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The code allows the user to select the X, Y items to graph, and updates the graph when the Combo Boxes are changed, or when the Prev/Next buttons are pressed. So, in this regard, the code works as intended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; After making a change to plot something different, the graph builder content box swaps positions with the selection Lineup Box that contains the Combo Boxes/Button Boxes. I'd like to keep the Lineup Box that contains the options for modifying the graph at the bottom of the window and not sure how to do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Any suggestions on how to get this to work out are much appreciated! (code at end).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Starting window (with option below):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DiedrichSchmidt_0-1636725071253.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37520i480CBA353238B013/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DiedrichSchmidt_0-1636725071253.png" alt="DiedrichSchmidt_0-1636725071253.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Updated window after making a change to either the X or Y Combo Boxes, or the Prev/Next buttons:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DiedrichSchmidt_1-1636725168185.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37521iF70CE3182A4E1AC5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DiedrichSchmidt_1-1636725168185.png" alt="DiedrichSchmidt_1-1636725168185.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;Names Default To Here( 1 );
//dt = open("$sample_data\Boston Housing.jmp");//In case the file isn't already open.&lt;BR /&gt;
dt = Data Table( "Boston Housing" );

xlist = dt &amp;lt;&amp;lt; Get Column Names( String );

gb_default = Expr(
	Graph builder( Show Control Panel( 0 ), Variables( X( Column( dt, 1 ) ), Y( Column( dt, 2 ) ) ), Elements( Points( X, Y, Legend( 3 ) ) ) )
);

gb_change = Expr(
	Graph builder( Show Control Panel( 0 ), Variables( X( Column( dt, xcol ) ), Y( Column( dt, ycol ) ) ), Elements( Points( X, Y, Legend( 3 ) ) ) )
);

nw = New Window( "Interactive Graph",
	gb = gb_default;
	lbcontent = Lineup Box( N Col( 5 ),
		Spacer Box( Size( 1, 0 ) ),
		Text Box( "X", &amp;lt;&amp;lt;Justify Text( "Center" ) ),
		Text Box( "Y", &amp;lt;&amp;lt;Justify Text( "Center" ) ),
		Spacer Box( Size( 1, 0 ) ),
		Spacer Box( Size( 1, 0 ) ),
		Text Box( "Select Params", &amp;lt;&amp;lt;Set Font Size( 11 ) ),
		xcb = Combo Box(
			xlist,
			&amp;lt;&amp;lt;Set( 1 ),
			&amp;lt;&amp;lt;Set Function(
				Function( {},
					xcol = xcb &amp;lt;&amp;lt; Get;
					ycol = ycb &amp;lt;&amp;lt; Get;
					gb &amp;lt;&amp;lt; delete;
					nw &amp;lt;&amp;lt; Append( gb = gb_change );
				)
			)
		),
		ycb = Combo Box(
			xlist,
			&amp;lt;&amp;lt;Set( 2 ),
			&amp;lt;&amp;lt;Set Function(
				Function( {},
					xcol = xcb &amp;lt;&amp;lt; Get;
					ycol = ycb &amp;lt;&amp;lt; Get;
					gb &amp;lt;&amp;lt; delete;
					nw &amp;lt;&amp;lt; Append( gb = gb_change );
				)
			)
		),
		pbb = Button Box( "Prev",
			&amp;lt;&amp;lt;SetIcon( "PrevSeq" ),
			&amp;lt;&amp;lt;Set Icon Location( "left" ),
			&amp;lt;&amp;lt;Set Function(
				Function( {},
					ycb &amp;lt;&amp;lt; Set( ycol - 1 );
					xcol = xcb &amp;lt;&amp;lt; Get;
					ycol = ycb &amp;lt;&amp;lt; Get;
					gb &amp;lt;&amp;lt; delete;
					nw &amp;lt;&amp;lt; Append( gb = gb_change );
				)
			)
		),
		nbb = Button Box( "Next",
			&amp;lt;&amp;lt;Set Icon( "NextSeq" ),
			&amp;lt;&amp;lt;Set Icon Location( "right" ),
			&amp;lt;&amp;lt;Set Function(
				Function( {},
					ycb &amp;lt;&amp;lt; Set( ycol + 1 );
					xcol = xcb &amp;lt;&amp;lt; Get;
					ycol = ycb &amp;lt;&amp;lt; Get;
					gb &amp;lt;&amp;lt; delete;
					nw &amp;lt;&amp;lt; Append( gb = gb_change );
				)
			)
		)
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Nov 2021 14:03:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-to-script-a-graph-update-with-Combo-box-and-Next-Prev/m-p/435897#M68501</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2021-11-12T14:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: How to script a graph update with Combo box and Next/Prev buttons</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-to-script-a-graph-update-with-Combo-box-and-Next-Prev/m-p/435900#M68502</link>
      <description>&lt;P&gt;Try 'Prepend' rather than 'Append'.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 14:17:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-to-script-a-graph-update-with-Combo-box-and-Next-Prev/m-p/435900#M68502</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2021-11-12T14:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: How to script a graph update with Combo box and Next/Prev buttons</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-to-script-a-graph-update-with-Combo-box-and-Next-Prev/m-p/435902#M68504</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3605"&gt;@ian_jmp&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; That did exactly the trick, thank you! I'll post the working code below and mark it as the solution, as this code does exactly what I intended when I started working on this portion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Updated code with Prepend instead of Append.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;Names Default To Here( 1 );

dt = Open("$sample_data/Boston housing.jmp");

//dt = Data Table( "Boston Housing" );

xlist = dt &amp;lt;&amp;lt; Get Column Names( String );

gb_default = Expr(
	Graph builder( Show Control Panel( 0 ), Variables( X( Column( dt, 1 ) ), Y( Column( dt, 2 ) ) ), Elements( Points( X, Y, Legend( 3 ) ) ) )
);

gb_change = Expr(
	Graph builder( Show Control Panel( 0 ), Variables( X( Column( dt, xcol ) ), Y( Column( dt, ycol ) ) ), Elements( Points( X, Y, Legend( 3 ) ) ) )
);

nw = New Window( "Interactive Graph",
	gb = gb_default;
	lbcontent = Lineup Box( N Col( 5 ),
		Spacer Box( Size( 1, 0 ) ),
		Text Box( "X", &amp;lt;&amp;lt;Justify Text( "Center" ) ),
		Text Box( "Y", &amp;lt;&amp;lt;Justify Text( "Center" ) ),
		Spacer Box( Size( 1, 0 ) ),
		Spacer Box( Size( 1, 0 ) ),
		Text Box( "Select Params", &amp;lt;&amp;lt;Set Font Size( 11 ) ),
		xcb = Combo Box(
			xlist,
			&amp;lt;&amp;lt;Set( 1 ),
			&amp;lt;&amp;lt;Set Function(
				Function( {},
					xcol = xcb &amp;lt;&amp;lt; Get;
					ycol = ycb &amp;lt;&amp;lt; Get;
					gb &amp;lt;&amp;lt; delete;
					nw &amp;lt;&amp;lt; Prepend( gb = gb_change );
				)
			)
		),
		ycb = Combo Box(
			xlist,
			&amp;lt;&amp;lt;Set( 2 ),
			&amp;lt;&amp;lt;Set Function(
				Function( {},
					xcol = xcb &amp;lt;&amp;lt; Get;
					ycol = ycb &amp;lt;&amp;lt; Get;
					gb &amp;lt;&amp;lt; delete;
					nw &amp;lt;&amp;lt; Prepend( gb = gb_change );
				)
			)
		),
		pbb = Button Box( "Prev",
			&amp;lt;&amp;lt;SetIcon( "PrevSeq" ),
			&amp;lt;&amp;lt;Set Icon Location( "left" ),
			&amp;lt;&amp;lt;Set Function(
				Function( {},
					ycb &amp;lt;&amp;lt; Set( ycol - 1 );
					xcol = xcb &amp;lt;&amp;lt; Get;
					ycol = ycb &amp;lt;&amp;lt; Get;
					gb &amp;lt;&amp;lt; delete;
					nw &amp;lt;&amp;lt; Prepend( gb = gb_change );
				)
			)
		),
		nbb = Button Box( "Next",
			&amp;lt;&amp;lt;Set Icon( "NextSeq" ),
			&amp;lt;&amp;lt;Set Icon Location( "right" ),
			&amp;lt;&amp;lt;Set Function(
				Function( {},
					ycb &amp;lt;&amp;lt; Set( ycol + 1 );
					xcol = xcb &amp;lt;&amp;lt; Get;
					ycol = ycb &amp;lt;&amp;lt; Get;
					gb &amp;lt;&amp;lt; delete;
					nw &amp;lt;&amp;lt; Prepend( gb = gb_change );
				)
			)
		)
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Nov 2021 14:27:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-to-script-a-graph-update-with-Combo-box-and-Next-Prev/m-p/435902#M68504</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2021-11-12T14:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: How to script a graph update with Combo box and Next/Prev buttons</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-to-script-a-graph-update-with-Combo-box-and-Next-Prev/m-p/435979#M68511</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3605"&gt;@ian_jmp&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I'm hoping you might be able to help with correctly getting this script to work when I have more elements in the new window. I have been able to take my concept script that worked on its own and move it over into a larger script that partitions the data and displays the results. I'm attaching my JSL code as a file, might be easier that way. It opens the Boston Housing and you can select the data table and then X factors and Y Response and set a validation portion and the max number of splits to attempt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The code works to generate the output I want (below):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DiedrichSchmidt_0-1636736011310.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37522i06533D658D9F0F15/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DiedrichSchmidt_0-1636736011310.png" alt="DiedrichSchmidt_0-1636736011310.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But, when you cycle through the parameters, it rearranges the layout of the window into this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DiedrichSchmidt_1-1636736080616.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37523iD4A889DD0B0FDF51/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DiedrichSchmidt_1-1636736080616.png" alt="DiedrichSchmidt_1-1636736080616.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'd like to keep the same layout as the first screenshot, but the Prepend and Append options are not maintaining the right layout. Any help is much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 16:59:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-to-script-a-graph-update-with-Combo-box-and-Next-Prev/m-p/435979#M68511</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2021-11-12T16:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: How to script a graph update with Combo box and Next/Prev buttons</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-to-script-a-graph-update-with-Combo-box-and-Next-Prev/m-p/436016#M68522</link>
      <description>&lt;P&gt;Update: OK, so I needed to do a little more reading in my Scripting Guide about Append, Prepend, Sib Append and Sib Prepend. After reading up on this, it was a matter of determining which container box I needed to prepend the updated graph to. So, when it comes to having other container boxes in a window, you might need to use the Sib Prepend() command. Makes sense now that I see it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attached JSL does all that I intended, if anyone is interested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 19:14:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-to-script-a-graph-update-with-Combo-box-and-Next-Prev/m-p/436016#M68522</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2021-11-12T19:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: How to script a graph update with Combo box and Next/Prev buttons</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-How-to-script-a-graph-update-with-Combo-box-and-Next-Prev/m-p/558473#M77179</link>
      <description>&lt;P&gt;Hi, I am looking for some further help on this?&lt;BR /&gt;&lt;BR /&gt;I am trying to only have a certain number of columns showing up on my xlist instead of all columns, which are placed in any random order&lt;/P&gt;&lt;P&gt;xlist= {"crim", "nox", "radial"};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the script above, it is only plotting the first 3 columns, which in this case "crim", "zn" and "indus" and not the ones I mentioned above.&lt;BR /&gt;Is there any workaround to this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 15:17:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-How-to-script-a-graph-update-with-Combo-box-and-Next-Prev/m-p/558473#M77179</guid>
      <dc:creator>AbbWorld27</dc:creator>
      <dc:date>2022-10-20T15:17:47Z</dc:date>
    </item>
  </channel>
</rss>

