<?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: Questions about &amp;quot;Set Display Width&amp;quot; behavior in JMP 16.2.0 in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Questions-about-quot-Set-Display-Width-quot-behavior-in-JMP-16-2/m-p/477487#M72178</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/17813"&gt;@SteveTerry&lt;/a&gt;&amp;nbsp;-&amp;nbsp;It does look like &amp;lt;&amp;lt;Set Display Width() is inconsistent.&amp;nbsp; The data table does not process the expression argument, but the data table view does.&amp;nbsp; One way to handle JSL messages like this is to force evaluation of the argument before the message is sent:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Eval(EvalExpr(col &amp;lt;&amp;lt; Set Display Width( Expr(x) )));
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;We will look at fixing the evaluation in a future release.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the newline issue, I would suggest trying "\!N" rather than "\!n".&amp;nbsp; The former will insert a line break that is dependent on the host environment, while the latter is a specific "newline" character.&amp;nbsp; Your example on my Mac seems to work without the change, but I'm not sure if this might be dependent on system settings.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Apr 2022 13:55:36 GMT</pubDate>
    <dc:creator>danschikore</dc:creator>
    <dc:date>2022-04-08T13:55:36Z</dc:date>
    <item>
      <title>Questions about "Set Display Width" behavior in JMP 16.2.0</title>
      <link>https://community.jmp.com/t5/Discussions/Questions-about-quot-Set-Display-Width-quot-behavior-in-JMP-16-2/m-p/476784#M72130</link>
      <description>&lt;P&gt;In trying to set a column's display width in JSL using JMP 16.2.0 (MacOS), I'm seeing several issues that I didn't see with JMP 15.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. &amp;nbsp;The &lt;CODE class=" language-jsl"&gt;Set Display Width&lt;/CODE&gt;&amp;nbsp;function appears to operate in two modes, depending on how it's used. &amp;nbsp;If it's called with a hard-coded arg value, it seems to be permanent.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col = Column("SN");
col &amp;lt;&amp;lt; Set Display Width( 200 );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, if it's called with a var arg, it displays as desired, but doesn't seem to get saved with the file. &amp;nbsp;(Or, at least, not saved as expected.)&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;x = 100; 
col &amp;lt;&amp;lt; Set Display Width( x );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In the latter case, if the file is saved and then reopened, it renders with width 200, (presumably, from having run the former code). &amp;nbsp;Thus the 200 persists thru a file-save-close-and-reopen, but the 100 does not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even more strangely, if I open the table with JMP 15, it renders the width as 100, (and a&amp;nbsp;&lt;CODE class=" language-jsl"&gt;y = col &amp;lt;&amp;lt; Get Display Width()&lt;/CODE&gt;&amp;nbsp;instruction confirms that). &amp;nbsp;But then going back and opening with JMP 16 renders a width of 200. &amp;nbsp;This suggests that, indeed, both values are saved with the file, and JMP has added a new mode to the column width attribute in JMP 16. &amp;nbsp;For reference, the attached file exhibits the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. &amp;nbsp;If the &lt;CODE class=" language-jsl"&gt;Set Display Width()&lt;/CODE&gt;&amp;nbsp;function is the last function in the JSL script, and it uses a variable argument, it manifests a &lt;CODE class=" language-jsl"&gt;Scriptable[]&lt;/CODE&gt;&amp;nbsp;error, and the operation does not appear to take place. &amp;nbsp;However, if a hard-coded value is given, everything seems to work well (and the set value is displayed in the log). &amp;nbsp;Is there maybe a new syntax requirement for this function or for JSL script terminations for JMP 16? &amp;nbsp;I notice that this behavior does not occur with JMP 15.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. &amp;nbsp;A bit unrelated, but discovered when trying to understand this, with JMP 16, a string with a newline character seems to require at least one other non-whitespace character, otherwise it seems to be ignored. &amp;nbsp;Not sure if this is a design change or an SQA oversight.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;col &amp;lt;&amp;lt; Set Display Width( 200 );
y = col &amp;lt;&amp;lt; Get Display Width();
Show(y);  Write("\!n");
Write("---");
x=100; 
col &amp;lt;&amp;lt; Set Display Width( x );
y = col &amp;lt;&amp;lt; Get Display Width();
Show(y);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;y = 200;---
y = 200;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If, say, a period is added in front of the newline in the string, &lt;CODE class=" language-jsl"&gt;".\!n"&lt;/CODE&gt;, the newline is recognized:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;y = 200;.
---
y = 200;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:56:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Questions-about-quot-Set-Display-Width-quot-behavior-in-JMP-16-2/m-p/476784#M72130</guid>
      <dc:creator>SteveTerry</dc:creator>
      <dc:date>2023-06-09T16:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about "Set Display Width" behavior in JMP 16.2.0</title>
      <link>https://community.jmp.com/t5/Discussions/Questions-about-quot-Set-Display-Width-quot-behavior-in-JMP-16-2/m-p/477487#M72178</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/17813"&gt;@SteveTerry&lt;/a&gt;&amp;nbsp;-&amp;nbsp;It does look like &amp;lt;&amp;lt;Set Display Width() is inconsistent.&amp;nbsp; The data table does not process the expression argument, but the data table view does.&amp;nbsp; One way to handle JSL messages like this is to force evaluation of the argument before the message is sent:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Eval(EvalExpr(col &amp;lt;&amp;lt; Set Display Width( Expr(x) )));
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;We will look at fixing the evaluation in a future release.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the newline issue, I would suggest trying "\!N" rather than "\!n".&amp;nbsp; The former will insert a line break that is dependent on the host environment, while the latter is a specific "newline" character.&amp;nbsp; Your example on my Mac seems to work without the change, but I'm not sure if this might be dependent on system settings.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 13:55:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Questions-about-quot-Set-Display-Width-quot-behavior-in-JMP-16-2/m-p/477487#M72178</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2022-04-08T13:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about "Set Display Width" behavior in JMP 16.2.0</title>
      <link>https://community.jmp.com/t5/Discussions/Questions-about-quot-Set-Display-Width-quot-behavior-in-JMP-16-2/m-p/478631#M72287</link>
      <description>&lt;P&gt;Thanks for the workaround, &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4587"&gt;@danschikore&lt;/a&gt;. &amp;nbsp;On the solitary "\!n" issue, "\!N" didn't make a difference -- (and "\!n" has always worked well on a Mac). &amp;nbsp;A colleague has also confirmed this behavior (on 16.1). &amp;nbsp;What is the best way to report it to the JMP team?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 17:40:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Questions-about-quot-Set-Display-Width-quot-behavior-in-JMP-16-2/m-p/478631#M72287</guid>
      <dc:creator>SteveTerry</dc:creator>
      <dc:date>2022-04-12T17:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about "Set Display Width" behavior in JMP 16.2.0</title>
      <link>https://community.jmp.com/t5/Discussions/Questions-about-quot-Set-Display-Width-quot-behavior-in-JMP-16-2/m-p/478633#M72288</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/17813"&gt;@SteveTerry&lt;/a&gt;&amp;nbsp; - please report the newline issue to &lt;A href="mailto:support@jmp.com" target="_blank"&gt;support@jmp.com&lt;/A&gt;.&amp;nbsp; I don't know why I didn't see the problem on my Mac, but they may be able to do some additional testing and create an issue that development can track if necessary.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 17:43:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Questions-about-quot-Set-Display-Width-quot-behavior-in-JMP-16-2/m-p/478633#M72288</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2022-04-12T17:43:56Z</dc:date>
    </item>
  </channel>
</rss>

