<?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: Hide Local Data Filter in Graph Builder - JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Hide-Local-Data-Filter-in-Graph-Builder-JSL/m-p/468555#M71233</link>
    <description>&lt;P&gt;You need to add references to Graph Builders with gb. &lt;/P&gt;
&lt;P&gt;Here is other option (I only added it to male graph builder):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
// Prompt for the input and create graph
rc = New Window("Choose the parameters to be plotted",
	rb = Radio Box({"Female", "Male"}),
	Button Box("Ok",
		Choose(rb &amp;lt;&amp;lt; Get,
			gb = Graph Builder(
				Variables(X(:age), Y(:sex)),
				Local Data Filter(Close Outline(1), Add Filter(columns(:sex), Where(:sex == "F"))),
				SendToReport(Dispatch({}, "age", ScaleBox, {Add Ref Line(2.5, "Dotted", "Black", "", 3)}))
			),
			gb = Graph Builder(
				Variables(X(:age), Y(:sex)),
				Local Data Filter(Close Outline(1), Add Filter(columns(:sex), Where(:sex == "M"))) &amp;lt;&amp;lt; visibility("Collapse"),
				SendToReport(Dispatch({}, "age", ScaleBox, {Add Ref Line(2.5, "Dotted", "Red", "", 3)}))
			)
		);
		rb &amp;lt;&amp;lt; Close Window;
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 10 Mar 2022 18:55:58 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2022-03-10T18:55:58Z</dc:date>
    <item>
      <title>Hide Local Data Filter in Graph Builder - JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Hide-Local-Data-Filter-in-Graph-Builder-JSL/m-p/468481#M71227</link>
      <description>&lt;P&gt;I wanted to find out how to hide or close the local data filter in the following JSL script. What I have now is giving errors. I'm unsure of how to assign a variable to each of the Graph Builder plots in the Choose function.&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");
// Prompt for the input and create graph
rc = New Window("Choose the parameters to be plotted",
	rb = Radio Box({"Female", "Male"}),
	Button Box("Ok",
		Choose(rb&amp;lt;&amp;lt;Get,
			Graph Builder(
			Variables(X(:age), Y(:sex)),
			Local Data Filter(
				Close Outline (1),
				Add Filter( columns( :sex ), Where( :sex == "F"))
			),
			
			SendToReport(
				Dispatch(
				{},
				"age",
				ScaleBox,
				{Add Ref Line( 2.5, "Dotted", "Black", "", 3 )}
		)
	)
			
			),
			
				
			Graph Builder(
			Variables(X(:age), Y(:sex)),
			Local Data Filter(
				Close Outline (1),
				Add Filter( columns( :sex ), Where( :sex == "M"))
			),
			
			SendToReport(
				Dispatch(
				{},
				"age",
				ScaleBox,
				{Add Ref Line( 2.5, "Dotted", "Red", "", 3 )}
			)		
		)
			
			),
		);
		rb&amp;lt;&amp;lt;Close Window;
		
	)
);

// Add this line if you do not want the collapsed Local Data Filter displayed
(Graph Builder &amp;lt;&amp;lt;top parent)["Local Data Filter"]&amp;lt;&amp;lt;visibility("Collapse");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:12:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hide-Local-Data-Filter-in-Graph-Builder-JSL/m-p/468481#M71227</guid>
      <dc:creator>sciguy</dc:creator>
      <dc:date>2023-06-09T18:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Local Data Filter in Graph Builder - JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Hide-Local-Data-Filter-in-Graph-Builder-JSL/m-p/468513#M71228</link>
      <description>&lt;P&gt;I think this handles what you want&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt=Open("$SAMPLE_DATA/Big Class.jmp");
// Prompt for the input and create graph
rc = New Window("Choose the parameters to be plotted",
	rb = Radio Box({"Female", "Male"}),
	Button Box("Ok",
		Choose(rb&amp;lt;&amp;lt;Get,
			gb = Graph Builder(
			Variables(X(:age), Y(:sex)),
			Local Data Filter(
				Close Outline (1),
				Add Filter( columns( :sex ), Where( :sex == "F"))
			),
			
			SendToReport(
				Dispatch(
				{},
				"age",
				ScaleBox,
				{Add Ref Line( 2.5, "Dotted", "Black", "", 3 )}
		)
	)
			
			),
			
				
			Graph Builder(
			Variables(X(:age), Y(:sex)),
			Local Data Filter(
				Close Outline (1),
				Add Filter( columns( :sex ), Where( :sex == "M"))
			),
			
			SendToReport(
				Dispatch(
				{},
				"age",
				ScaleBox,
				{Add Ref Line( 2.5, "Dotted", "Red", "", 3 )}
			)		
		)
			
			),
		);
		rb&amp;lt;&amp;lt;Close Window;
		
	)
);

// Add this line if you do not want the collapsed Local Data Filter displayed

(gb&amp;lt;&amp;lt;top parent)["Local Data Filter"]&amp;lt;&amp;lt;visibility("Collapse");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Mar 2022 18:18:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hide-Local-Data-Filter-in-Graph-Builder-JSL/m-p/468513#M71228</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-03-10T18:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Local Data Filter in Graph Builder - JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Hide-Local-Data-Filter-in-Graph-Builder-JSL/m-p/468527#M71230</link>
      <description>&lt;P&gt;I get the following error when I run this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Name Unresolved: gb in access or evaluation of 'gb'&lt;/P&gt;&lt;P&gt;gb/*###*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 18:28:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hide-Local-Data-Filter-in-Graph-Builder-JSL/m-p/468527#M71230</guid>
      <dc:creator>sciguy</dc:creator>
      <dc:date>2022-03-10T18:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Local Data Filter in Graph Builder - JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Hide-Local-Data-Filter-in-Graph-Builder-JSL/m-p/468555#M71233</link>
      <description>&lt;P&gt;You need to add references to Graph Builders with gb. &lt;/P&gt;
&lt;P&gt;Here is other option (I only added it to male graph builder):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
// Prompt for the input and create graph
rc = New Window("Choose the parameters to be plotted",
	rb = Radio Box({"Female", "Male"}),
	Button Box("Ok",
		Choose(rb &amp;lt;&amp;lt; Get,
			gb = Graph Builder(
				Variables(X(:age), Y(:sex)),
				Local Data Filter(Close Outline(1), Add Filter(columns(:sex), Where(:sex == "F"))),
				SendToReport(Dispatch({}, "age", ScaleBox, {Add Ref Line(2.5, "Dotted", "Black", "", 3)}))
			),
			gb = Graph Builder(
				Variables(X(:age), Y(:sex)),
				Local Data Filter(Close Outline(1), Add Filter(columns(:sex), Where(:sex == "M"))) &amp;lt;&amp;lt; visibility("Collapse"),
				SendToReport(Dispatch({}, "age", ScaleBox, {Add Ref Line(2.5, "Dotted", "Red", "", 3)}))
			)
		);
		rb &amp;lt;&amp;lt; Close Window;
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Mar 2022 18:55:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hide-Local-Data-Filter-in-Graph-Builder-JSL/m-p/468555#M71233</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-03-10T18:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Local Data Filter in Graph Builder - JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Hide-Local-Data-Filter-in-Graph-Builder-JSL/m-p/468556#M71234</link>
      <description>&lt;P&gt;I suspect you did not add the following&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gb = Graph Builder(&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Mar 2022 18:56:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hide-Local-Data-Filter-in-Graph-Builder-JSL/m-p/468556#M71234</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-03-10T18:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Local Data Filter in Graph Builder - JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Hide-Local-Data-Filter-in-Graph-Builder-JSL/m-p/468573#M71237</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I copied your code as you have attached it. It is not working for me. I'm using JMP Pro 16.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 19:14:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hide-Local-Data-Filter-in-Graph-Builder-JSL/m-p/468573#M71237</guid>
      <dc:creator>sciguy</dc:creator>
      <dc:date>2022-03-10T19:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Local Data Filter in Graph Builder - JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Hide-Local-Data-Filter-in-Graph-Builder-JSL/m-p/468574#M71238</link>
      <description>&lt;P&gt;Hi this code breaks the button selection. As this is actually closing the Local data filter and both plots have both M and F data in them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 19:15:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hide-Local-Data-Filter-in-Graph-Builder-JSL/m-p/468574#M71238</guid>
      <dc:creator>sciguy</dc:creator>
      <dc:date>2022-03-10T19:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Local Data Filter in Graph Builder - JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Hide-Local-Data-Filter-in-Graph-Builder-JSL/m-p/468577#M71239</link>
      <description>&lt;P&gt;You are correct.&amp;nbsp; The position where the collapsing of the Local Data Filter was, will execute before the OK button is pressed.&amp;nbsp; I was always testing the code by running everything above that line, and then running the line separately.&amp;nbsp; My error.&amp;nbsp; I have moved the line of code to a position where it is only executed after the OK button is pressed.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt=Open("$SAMPLE_DATA/Big Class.jmp");
// Prompt for the input and create graph
rc = New Window("Choose the parameters to be plotted",
	rb = Radio Box({"Female", "Male"}),
	Button Box("Ok",
		Choose(rb&amp;lt;&amp;lt;Get,
			gb = Graph Builder(
			Variables(X(:age), Y(:sex)),
			Local Data Filter(
				Close Outline (1),
				Add Filter( columns( :sex ), Where( :sex == "F"))
			),
			
			SendToReport(
				Dispatch(
				{},
				"age",
				ScaleBox,
				{Add Ref Line( 2.5, "Dotted", "Black", "", 3 )}
		)
	)
			
			),
			
				
			Graph Builder(
			Variables(X(:age), Y(:sex)),
			Local Data Filter(
				Close Outline (1),
				Add Filter( columns( :sex ), Where( :sex == "M"))
			),
			
			SendToReport(
				Dispatch(
				{},
				"age",
				ScaleBox,
				{Add Ref Line( 2.5, "Dotted", "Red", "", 3 )}
			)		
		)
			
			),
		);
		
		rb&amp;lt;&amp;lt;Close Window;
		(gb&amp;lt;&amp;lt;top parent)["Local Data Filter"]&amp;lt;&amp;lt;visibility("Collapse");
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Mar 2022 19:24:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hide-Local-Data-Filter-in-Graph-Builder-JSL/m-p/468577#M71239</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-03-10T19:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Local Data Filter in Graph Builder - JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Hide-Local-Data-Filter-in-Graph-Builder-JSL/m-p/468578#M71240</link>
      <description>&lt;P&gt;Thank you so much! This works perfectly.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 19:28:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hide-Local-Data-Filter-in-Graph-Builder-JSL/m-p/468578#M71240</guid>
      <dc:creator>sciguy</dc:creator>
      <dc:date>2022-03-10T19:28:29Z</dc:date>
    </item>
  </channel>
</rss>

