<?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: Get current state of Suppress Eval? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Get-current-state-of-Suppress-Eval/m-p/327197#M57642</link>
    <description>&lt;P&gt;That's a clever way to do it.&amp;nbsp; Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 27 Oct 2020 22:11:59 GMT</pubDate>
    <dc:creator>Chris_Rodrigues</dc:creator>
    <dc:date>2020-10-27T22:11:59Z</dc:date>
    <item>
      <title>Get current state of Suppress Eval?</title>
      <link>https://community.jmp.com/t5/Discussions/Get-current-state-of-Suppress-Eval/m-p/327109#M57633</link>
      <description>&lt;P&gt;I know that in JSL I can change Suppress Eval flag on individual columns to prevent that column's formula from being evaluated.&amp;nbsp; This is useful for complex formulas that take a while to evaluate.&amp;nbsp; I can eval once and suppress it, but keep the formula intact so i can go back and eval again later if needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In some situations, when I am doing operations that iterate over multiple columns, I would like to know the current state of the Suppress Eval flag without actually changing it.&amp;nbsp; I have not been able to find any way to extract this information.&amp;nbsp; I can set the value to 1 or 0, but I cannot toggle it, and I cannot get the current value.&amp;nbsp; Is this possible?&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;Names Default To Here(1);
dt = Current Data Table();
col = Column(dt, "myColumn");
col &amp;lt;&amp;lt; Suppress Eval(1);                  //suppresses formula eval
col &amp;lt;&amp;lt; Suppress Eval(0);                  //un-suppresses formula eval

suppress_state = col &amp;lt;&amp;lt; Suppress Eval;    //does not work as expected. sets suppress eval to 1.
Show(suppress_state);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//prints "suppress_state = Scriptable[]" in the log.&amp;nbsp;&amp;nbsp;current&amp;nbsp;state&amp;nbsp;not&amp;nbsp;returned.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also noticed that if Supress Eval is already set to 1 and the "col &amp;lt;&amp;lt; Supress Eval" line executes, the following warning is displayed:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;A message with an empty Boolean argument enabled an option that was already enabled. That option remains enabled. In previous versions of JMP, this would have disabled the option.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So in previous versions of JMP this option could be toggled, but this functionality has been removed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also looked at the output of Show Properties(col) and I found only one reference to Supress Eval:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Suppress Eval [Boolean] [Scripting Only]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So this means it is a function that accepts a Boolean argument, does not return a value, and is only accessible from Scripting?&amp;nbsp; Is there any way to get the value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:21:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-current-state-of-Suppress-Eval/m-p/327109#M57633</guid>
      <dc:creator>Chris_Rodrigues</dc:creator>
      <dc:date>2023-06-10T23:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get current state of Suppress Eval?</title>
      <link>https://community.jmp.com/t5/Discussions/Get-current-state-of-Suppress-Eval/m-p/327178#M57641</link>
      <description>&lt;P&gt;I am not aware of a direct way to get it, however this silly piece of code will work for it;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;suppresseval = contains(char(:&amp;lt;yourcolumnname&amp;gt; &amp;lt;&amp;lt;get script),"Suppress Eval");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Oct 2020 21:48:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-current-state-of-Suppress-Eval/m-p/327178#M57641</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-10-27T21:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get current state of Suppress Eval?</title>
      <link>https://community.jmp.com/t5/Discussions/Get-current-state-of-Suppress-Eval/m-p/327197#M57642</link>
      <description>&lt;P&gt;That's a clever way to do it.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 22:11:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-current-state-of-Suppress-Eval/m-p/327197#M57642</guid>
      <dc:creator>Chris_Rodrigues</dc:creator>
      <dc:date>2020-10-27T22:11:59Z</dc:date>
    </item>
  </channel>
</rss>

