<?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 keyboard shortcut: local data filter ? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/keyboard-shortcut-local-data-filter/m-p/565377#M77743</link>
    <description>&lt;P&gt;Is there a Keyboard shortcut to add a local data filter to a GraphBuilder Plot?&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jun 2023 11:29:07 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2023-06-11T11:29:07Z</dc:date>
    <item>
      <title>keyboard shortcut: local data filter ?</title>
      <link>https://community.jmp.com/t5/Discussions/keyboard-shortcut-local-data-filter/m-p/565377#M77743</link>
      <description>&lt;P&gt;Is there a Keyboard shortcut to add a local data filter to a GraphBuilder Plot?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:29:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/keyboard-shortcut-local-data-filter/m-p/565377#M77743</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-11T11:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: keyboard shortcut: local data filter ?</title>
      <link>https://community.jmp.com/t5/Discussions/keyboard-shortcut-local-data-filter/m-p/565395#M77748</link>
      <description>&lt;P&gt;You can assign your own shortcuts from View / Customize / Menus and Toolbars&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1667722054063.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47073i728DEE44B9FFBFDF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1667722054063.png" alt="jthi_0-1667722054063.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if you want it to work just for graph builder, then you can write your own JSL for it which would ignore other platforms&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2022 08:08:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/keyboard-shortcut-local-data-filter/m-p/565395#M77748</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-11-06T08:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: keyboard shortcut: local data filter ?</title>
      <link>https://community.jmp.com/t5/Discussions/keyboard-shortcut-local-data-filter/m-p/565411#M77750</link>
      <description>&lt;P&gt;Ah,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Platform: Local Data Filter&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;thanks, very convenient :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And for&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Show control Panel" ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2022 12:04:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/keyboard-shortcut-local-data-filter/m-p/565411#M77750</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2022-11-06T12:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: keyboard shortcut: local data filter ?</title>
      <link>https://community.jmp.com/t5/Discussions/keyboard-shortcut-local-data-filter/m-p/565437#M77754</link>
      <description>&lt;P&gt;No idea if there is JMP Built-In command for that, so you might have to write JSL to handle that and then build shortcut for it&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2022 12:45:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/keyboard-shortcut-local-data-filter/m-p/565437#M77754</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-11-06T12:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: keyboard shortcut: local data filter ?</title>
      <link>https://community.jmp.com/t5/Discussions/keyboard-shortcut-local-data-filter/m-p/565440#M77755</link>
      <description>&lt;P&gt;Ok, thanks :)&lt;/img&gt;&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);

gb= Current Report()["Graph Builder"] &amp;lt;&amp;lt;Get Scriptable Object; 

ib= Current Report()["Graph Builder",IfBox(1)];
if(ib &amp;lt;&amp;lt; get,
gb &amp;lt;&amp;lt; show control panel(0),
gb &amp;lt;&amp;lt; show control panel(1))&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 06 Nov 2022 13:47:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/keyboard-shortcut-local-data-filter/m-p/565440#M77755</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2022-11-06T13:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: keyboard shortcut: local data filter ?</title>
      <link>https://community.jmp.com/t5/Discussions/keyboard-shortcut-local-data-filter/m-p/565491#M77761</link>
      <description>&lt;P&gt;I think that should work great if the outline box title hasn't been changed. You might consider adding Try() to avoid JMP from throwing errors if no graph builder is open in the Current Report().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to also manage situations where the outline box title has been changed, using XPath might the most robust option. With XPath you can look for Outline Boxes' helpKey attribute with value 'Graph Builder' and then use similar idea with &lt;EM&gt;&amp;lt;&amp;lt; Get Scriptable Object&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Local({first_gb},
	Try(
		first_gb = (Current Report() &amp;lt;&amp;lt; XPath("//OutlineBox[@helpKey = 'Graph Builder']"))[1] &amp;lt;&amp;lt; Get Scriptable Object;
		Report(first_gb)[IfBox(1)] &amp;lt;&amp;lt; Set(!(Report(first_gb)[IfBox(1)] &amp;lt;&amp;lt; get));
	);	
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also using Current Window() instead of Current Report() is an option, if you &lt;STRONG&gt;only&lt;/STRONG&gt; want to change the Control Panel visibility on the currently active graph builder window (I think Current Report() would change the control panel even if the graph builder was behind data table for example).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2022 21:56:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/keyboard-shortcut-local-data-filter/m-p/565491#M77761</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-11-06T21:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: keyboard shortcut: local data filter ?</title>
      <link>https://community.jmp.com/t5/Discussions/keyboard-shortcut-local-data-filter/m-p/565790#M77771</link>
      <description>&lt;P&gt;Cool, very robust!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Next Thing: Keyboard Shortcut for the Legend&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Local( {first_gb},
	Try(
		first_gb = (Current Window() &amp;lt;&amp;lt; XPath( "//OutlineBox[@helpKey = 'Graph Builder']" ))[1] &amp;lt;&amp;lt; Get Scriptable Object;
		first_gb &amp;lt;&amp;lt; show legend (!(Report(first_gb)[LegendBox( 1 )] &amp;lt;&amp;lt; get width));

	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;why "Current Report"?&lt;BR /&gt;-&amp;gt; hm, debugging is&amp;nbsp; much easier :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Toggling the IfBox value instead of sending the "Control Panel" command to the Graph Builder Object is clever (a whole new world of possibilities!)&lt;/P&gt;&lt;P&gt;Was there a specific reason to go from Report to Scriptable Object and then back to Report?&lt;BR /&gt;instead of&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Local({first_gb},
	Try(
		first_gb = (Current Report() &amp;lt;&amp;lt; XPath("//OutlineBox[@helpKey = 'Graph Builder']"))[1];
		first_gb[IfBox(1)] &amp;lt;&amp;lt; Set(!(first_gb[IfBox(1)] &amp;lt;&amp;lt; get));
	);	
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 08:14:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/keyboard-shortcut-local-data-filter/m-p/565790#M77771</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2022-11-07T08:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: keyboard shortcut: local data filter ?</title>
      <link>https://community.jmp.com/t5/Discussions/keyboard-shortcut-local-data-filter/m-p/566292#M77789</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;Was there a specific reason to go from Report to Scriptable Object and then back to Report?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No, I just used what first came to my mind and did work out.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 18:20:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/keyboard-shortcut-local-data-filter/m-p/566292#M77789</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-11-07T18:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: keyboard shortcut: local data filter ?</title>
      <link>https://community.jmp.com/t5/Discussions/keyboard-shortcut-local-data-filter/m-p/568417#M77909</link>
      <description>&lt;P&gt;Oops, I just "realized" that&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gb &amp;lt;&amp;lt; show control panel(1)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;has more to do than just &lt;EM&gt;show the control panel&lt;/EM&gt;&amp;nbsp;:)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;so (final version):&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Local({first_gb,newState},
	Try(
		first_gbr = (Current Report() &amp;lt;&amp;lt; XPath("//OutlineBox[@helpKey = 'Graph Builder']"))[1] ;
		newState=!(first_gbr[IfBox(1)] &amp;lt;&amp;lt; get);
		(first_gbr &amp;lt;&amp;lt; Get Scriptable Object)&amp;lt;&amp;lt; Show Control Panel(newState);
	);	
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P&gt;&lt;EM&gt;show the control panel:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1668230959271.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47272i7E5E07DDD698637A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1668230959271.png" alt="hogi_1-1668230959271.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;show control panel(1)&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1668229730125.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/47271i7FDDAA9CB66A4BCF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1668229730125.png" alt="hogi_0-1668229730125.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/LI-SPOILER&gt;</description>
      <pubDate>Sat, 12 Nov 2022 05:54:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/keyboard-shortcut-local-data-filter/m-p/568417#M77909</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2022-11-12T05:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: keyboard shortcut: local data filter ?</title>
      <link>https://community.jmp.com/t5/Discussions/keyboard-shortcut-local-data-filter/m-p/578800#M78614</link>
      <description>&lt;P&gt;Here is an Add-In which adds Shortcut Icons to the &lt;STRONG&gt;Report&lt;/STRONG&gt; Toolbar&lt;/P&gt;&lt;P&gt;- to open/close &lt;STRONG&gt;Control Panel &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- to show/hide the &lt;STRONG&gt;legend&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;LI-MESSAGE title="Graph Builder Toolbar" uid="565466" url="https://community.jmp.com/t5/JMP-Add-Ins/Graph-Builder-Toolbar/m-p/565466#U565466" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1670489025090.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48032i77DE67A5C3BCAF25/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1670489025090.png" alt="hogi_0-1670489025090.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 20:52:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/keyboard-shortcut-local-data-filter/m-p/578800#M78614</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-27T20:52:56Z</dc:date>
    </item>
  </channel>
</rss>

