<?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: Private yes/no? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Private-yes-no/m-p/721880#M90374</link>
    <description>&lt;P&gt;I think a mess with expressions is only fairly simple option you have&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
DEBUG = 1;
If(IsEmpty(DEBUG),
	TABLE_VISIBILITY = "Visible";
, DEBUG == 1,
	TABLE_VISIBILITY = "Private";
, // else
	TABLE_VISIBILITY = "Visible";
);

dt = Eval(EvalExpr(Open("$SAMPLE_DATA/Big Class.jmp", Expr(TABLE_VISIBILITY))));
dt_subset = Eval(EvalExpr(dt &amp;lt;&amp;lt; Subset(dt, Expr(TABLE_VISIBILITY))));

dt_new = New Table("MyTable", Visibility(TABLE_VISIBILITY));

Show(dt, dt_subset, dt_new);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;Maybe if all the messages/functions related to table creation didn't just use &amp;lt;Private&amp;gt;, &amp;lt;Invisible&amp;gt; optional arguments but rather had &amp;lt;Visibility("Visible"|"Invisible"|"Private")&amp;gt; as argument (like new table) something like this could be easier.&lt;/P&gt;</description>
    <pubDate>Sun, 04 Feb 2024 15:36:40 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-02-04T15:36:40Z</dc:date>
    <item>
      <title>Private yes/no?</title>
      <link>https://community.jmp.com/t5/Discussions/Private-yes-no/m-p/721777#M90371</link>
      <description>&lt;P&gt;When I open a data table, I can use the option private to hide the data table:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp", private );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same feature is also available for table operations like Subset, Concatenate, and so on:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Data Table( "Big Class" ) &amp;lt;&amp;lt; subset(1, Private)
Data Table( "Big Class" ) &amp;lt;&amp;lt; Concatenate( Data Table( "Big Class" ), Private);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;For MFI, there no such option :(&lt;/img&gt;&lt;BR /&gt;... up to now, but a strong demand by the community:&lt;/P&gt;&lt;P&gt;&lt;LI-MESSAGE title="Private option for Import Multiple Files" uid="569217" url="https://community.jmp.com/t5/JMP-Wish-List/Private-option-for-Import-Multiple-Files/m-p/569217#U569217" 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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my Scripts, while debugging, I like to see the data tables, so I added:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//developerIsHere = 1
loadPrivate = If( Is Empty( developerIsHere ),1,0); // default: 1; for debugging automatically set to 0
dt = Open( "$SAMPLE_DATA/Big Class.jmp", private(loadPrivate ) );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;with the idea:&lt;/P&gt;&lt;P&gt;As a developer, I can execute the&amp;nbsp;&lt;CODE class=" language-jsl"&gt;developerIsHere = 1 &lt;/CODE&gt;behind the //&lt;BR /&gt;then the data table is opened with the option private(0) and I can see the data table and debug the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Surprisingly,&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Data Table( "Big Class" ) &amp;lt;&amp;lt; subset(1, private(loadPrivate ) )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;doesn't "work", the table is always opened in private mode - independent of the current value of &lt;FONT face="courier new,courier"&gt;loadPrivate&lt;/FONT&gt;. Seems that table operations react on the presence of&amp;nbsp;&lt;FONT face="courier new,courier"&gt;Private&lt;/FONT&gt;&amp;nbsp; - independent of the argument.&lt;/P&gt;&lt;P&gt;Just try the following commands:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;current data table() &amp;lt;&amp;lt; subset(1,Private(1));
current data table() &amp;lt;&amp;lt; subset(1,Private(0));
current data table() &amp;lt;&amp;lt; subset(1,Private("has no effect"));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;All of them have the same effect - the subset is opened in Private mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hm.&lt;BR /&gt;Is there some documentation about the differences between Private and Private?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something less complicated which does the same as:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Eval(Substitute(Expr(current data table() &amp;lt;&amp;lt; Subset( 1,__p__)),Expr(__p__),If(loadPrivate,Expr(Private),1)));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;TS-00127556&amp;nbsp;&lt;BR /&gt;➥ &lt;A href="https://community.jmp.com/t5/Discussions/Tiny-Traps-in-Jmp-and-JSL/m-p/702685#U702685" target="_blank"&gt;Tiny-Traps-in-Jmp-and-JSL&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 08:36:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Private-yes-no/m-p/721777#M90371</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-02-04T08:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Private yes/no?</title>
      <link>https://community.jmp.com/t5/Discussions/Private-yes-no/m-p/721880#M90374</link>
      <description>&lt;P&gt;I think a mess with expressions is only fairly simple option you have&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
DEBUG = 1;
If(IsEmpty(DEBUG),
	TABLE_VISIBILITY = "Visible";
, DEBUG == 1,
	TABLE_VISIBILITY = "Private";
, // else
	TABLE_VISIBILITY = "Visible";
);

dt = Eval(EvalExpr(Open("$SAMPLE_DATA/Big Class.jmp", Expr(TABLE_VISIBILITY))));
dt_subset = Eval(EvalExpr(dt &amp;lt;&amp;lt; Subset(dt, Expr(TABLE_VISIBILITY))));

dt_new = New Table("MyTable", Visibility(TABLE_VISIBILITY));

Show(dt, dt_subset, dt_new);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;Maybe if all the messages/functions related to table creation didn't just use &amp;lt;Private&amp;gt;, &amp;lt;Invisible&amp;gt; optional arguments but rather had &amp;lt;Visibility("Visible"|"Invisible"|"Private")&amp;gt; as argument (like new table) something like this could be easier.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 15:36:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Private-yes-no/m-p/721880#M90374</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-02-04T15:36:40Z</dc:date>
    </item>
  </channel>
</rss>

