<?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: How to Show Header Graphs Using JSL? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-Show-Header-Graphs-Using-JSL/m-p/769678#M95056</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Try(
	If(!Arg(Arg(Get Preference("Show summary graphs below column names"))),
		Current Data Table() &amp;lt;&amp;lt; close summary panels;
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;nice workaround for the issue with missing boolean option : )&lt;BR /&gt;thanks.&lt;BR /&gt;Along the idea: if the user doesn't get the summary opened by default, please open the summary for the current data table (assuming that the user didn't open it manually).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;much better than my suggestion via the preferences:&lt;/P&gt;&lt;P&gt;- no interference with global user settings&lt;/P&gt;&lt;P&gt;- works for the current data table (!) (not just data tables which will be opened in future)&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jul 2024 07:30:55 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2024-07-02T07:30:55Z</dc:date>
    <item>
      <title>How to Show Header Graphs Using JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Show-Header-Graphs-Using-JSL/m-p/769267#M94980</link>
      <description>&lt;P&gt;Is there any way to set the Header Graphs to show using JSL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've searched the Scripting Index &amp;amp; help forums, and tried&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Show Header Graphs(1);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and similar variations with no luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 18:25:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Show-Header-Graphs-Using-JSL/m-p/769267#M94980</guid>
      <dc:creator>mmt</dc:creator>
      <dc:date>2024-06-28T18:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to Show Header Graphs Using JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Show-Header-Graphs-Using-JSL/m-p/769287#M94981</link>
      <description>&lt;P&gt;With&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Preferences(Show summary graphs below column names( 1 ))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can activate the summary graphs by default.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Open data tables aren't updated. So close them and reopen them.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 18:59:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Show-Header-Graphs-Using-JSL/m-p/769287#M94981</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-06-28T18:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to Show Header Graphs Using JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Show-Header-Graphs-Using-JSL/m-p/769288#M94982</link>
      <description>&lt;P&gt;Thanks very much!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 18:59:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Show-Header-Graphs-Using-JSL/m-p/769288#M94982</guid>
      <dc:creator>mmt</dc:creator>
      <dc:date>2024-06-28T18:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to Show Header Graphs Using JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Show-Header-Graphs-Using-JSL/m-p/769289#M94983</link>
      <description>&lt;P&gt;Do you know if there's any way to do this without adjusting the user's preferences? This is for a script that will be distributed to others, and although this solution will work I would prefer my users don't have their preferences edited unwillingly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 19:03:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Show-Header-Graphs-Using-JSL/m-p/769289#M94983</guid>
      <dc:creator>mmt</dc:creator>
      <dc:date>2024-06-28T19:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Show Header Graphs Using JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Show-Header-Graphs-Using-JSL/m-p/769604#M95038</link>
      <description>&lt;P&gt;I think currently you will have to update your users' preferences (which is generally horrible idea like you did mention). There is a wish list item to have session/instance preferences &lt;LI-MESSAGE title="Provide way to set session / instance preferences and presets" uid="739449" url="https://community.jmp.com/t5/JMP-Wish-List/Provide-way-to-set-session-instance-preferences-and-presets/m-p/739449#U739449" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;(won't exactly work in this case if the table is already open without some tricks as the property won't be updated to already open tables).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might want to create separate wish list item to provide us with option to enable/disable header graphs in a data table via scripting&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit:&lt;/P&gt;
&lt;P&gt;There seems to be a command to open/close them BUT it will just swap them around (boolean flag doesn't seem to do anything). So it might be a bit difficult to make it work in every case&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Current Data Table() &amp;lt;&amp;lt; close summary panels;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can try checking user preferences but it won't work in every case (like if user has closed them)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Try(
	If(!Arg(Arg(Get Preference("Show summary graphs below column names"))),
		Current Data Table() &amp;lt;&amp;lt; close summary panels;
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Jul 2024 20:09:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Show-Header-Graphs-Using-JSL/m-p/769604#M95038</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-01T20:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Show Header Graphs Using JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Show-Header-Graphs-Using-JSL/m-p/769606#M95040</link>
      <description>&lt;P&gt;I will add a wish list item for this request.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the meantime the workaround I've been using is to check the user's preference at the start of the script with the following:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;pref = Num(Word(3,Char(Get Preferences(Show summary graphs below column names)),"()"));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Within the body of the script I set the preference to 1:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Preferences(Show summary graphs below column names(1));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My script creates a window as a UI to where the user will open a table then click a button to execute another script. So I added to the window:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&amp;lt;&amp;lt; On Close(Preferences(Show summary graphs below column names(pref)))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So when the UI is closed it will return their preferences to whatever they had before they opened it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will cause issues if the user edits their preference with the window open but I expect this would be a rare occurrence.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 20:16:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Show-Header-Graphs-Using-JSL/m-p/769606#M95040</guid>
      <dc:creator>mmt</dc:creator>
      <dc:date>2024-07-01T20:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to Show Header Graphs Using JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Show-Header-Graphs-Using-JSL/m-p/769643#M95044</link>
      <description>&lt;P&gt;Luckily this isn't too annoying preference to be messing with (for example if someone were to start messing with my locale settings it would be so annoying that I would even consider stopping using JMP for some time (I do always keep backups of my preferences)).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might want to consider saving that user preference to a temp file and load it from there when they re-run your script. JMP might for example crash or user might close JMP by using Exit JMP I always do by using Ctrl + Q (I'm not sure if On Close will trigger in this case). Of course this won't work if they change their setting before re-running your script or&amp;nbsp; don't rerun your script at all.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 21:08:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Show-Header-Graphs-Using-JSL/m-p/769643#M95044</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-01T21:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to Show Header Graphs Using JSL?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Show-Header-Graphs-Using-JSL/m-p/769678#M95056</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Try(
	If(!Arg(Arg(Get Preference("Show summary graphs below column names"))),
		Current Data Table() &amp;lt;&amp;lt; close summary panels;
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;nice workaround for the issue with missing boolean option : )&lt;BR /&gt;thanks.&lt;BR /&gt;Along the idea: if the user doesn't get the summary opened by default, please open the summary for the current data table (assuming that the user didn't open it manually).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;much better than my suggestion via the preferences:&lt;/P&gt;&lt;P&gt;- no interference with global user settings&lt;/P&gt;&lt;P&gt;- works for the current data table (!) (not just data tables which will be opened in future)&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 07:30:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Show-Header-Graphs-Using-JSL/m-p/769678#M95056</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-07-02T07:30:55Z</dc:date>
    </item>
  </channel>
</rss>

