<?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 Create a window script - OwnerBox error in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Create-a-window-script-OwnerBox-error/m-p/644589#M84128</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently using JMP 17.&lt;/P&gt;&lt;P&gt;I try to generate a script for a window and attach it to a datatable.&amp;nbsp; The code underneath works, but the generated script doesn't.&amp;nbsp; The script JMP generates uses an ownerbox, which in turn isn't recognized by the syntax.&lt;/P&gt;&lt;P&gt;Is there a way I can avoid using this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;MyWindowScript = MyWindow &amp;lt;&amp;lt; Get Script();
MyExpression = Expr(MyDataTable &amp;lt;&amp;lt; New Script("Script Name", MyWindowScript));
Substitute Into(MyExpression, Expr(MyWindowScript), Parse(MyWindowScript));
Eval(MyExpression);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2023 11:06:58 GMT</pubDate>
    <dc:creator>jan_solo_ff</dc:creator>
    <dc:date>2023-06-21T11:06:58Z</dc:date>
    <item>
      <title>Create a window script - OwnerBox error</title>
      <link>https://community.jmp.com/t5/Discussions/Create-a-window-script-OwnerBox-error/m-p/644589#M84128</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently using JMP 17.&lt;/P&gt;&lt;P&gt;I try to generate a script for a window and attach it to a datatable.&amp;nbsp; The code underneath works, but the generated script doesn't.&amp;nbsp; The script JMP generates uses an ownerbox, which in turn isn't recognized by the syntax.&lt;/P&gt;&lt;P&gt;Is there a way I can avoid using this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;MyWindowScript = MyWindow &amp;lt;&amp;lt; Get Script();
MyExpression = Expr(MyDataTable &amp;lt;&amp;lt; New Script("Script Name", MyWindowScript));
Substitute Into(MyExpression, Expr(MyWindowScript), Parse(MyWindowScript));
Eval(MyExpression);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 11:06:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-a-window-script-OwnerBox-error/m-p/644589#M84128</guid>
      <dc:creator>jan_solo_ff</dc:creator>
      <dc:date>2023-06-21T11:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create a window script - OwnerBox error</title>
      <link>https://community.jmp.com/t5/Discussions/Create-a-window-script-OwnerBox-error/m-p/644847#M84146</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;DisplayBox &amp;lt;&amp;lt; Get Script&lt;/FONT&gt; message is undocumented and is not able to produce a working script for all window content.&amp;nbsp; Can you describe how the window was created (custom JSL, platform launcher, combine windows, etc) and what kind of content that it has (platform report(s), JSL-scripted buttons/controls, etc).&amp;nbsp; Depending on how custom the window is, there may be a way to generate a script for the window.&amp;nbsp; Methods that you might investigate in JMP 17 are &lt;FONT face="courier new,courier"&gt;platform&amp;lt;&amp;lt;Get Script&lt;/FONT&gt; or the function &lt;FONT face="courier new,courier"&gt;Get Session Script()&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 17:08:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-a-window-script-OwnerBox-error/m-p/644847#M84146</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2023-06-21T17:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create a window script - OwnerBox error</title>
      <link>https://community.jmp.com/t5/Discussions/Create-a-window-script-OwnerBox-error/m-p/652437#M84240</link>
      <description>&lt;P&gt;Thanks for the answer!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked into the both methods and they won't work.&amp;nbsp; The script is very long (+/- 1500 lines of code), collects 2 different tables from the database (results and limits), combines them into charts and sends them to 1 or 2 different reports (these are the windows).&lt;/P&gt;&lt;P&gt;One report is connected to the results datatable, but the other isn't.&amp;nbsp; The one connected to the datatable generates a script just fine.&amp;nbsp; The other one (not connected to any datatable) doesn't.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 10:17:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-a-window-script-OwnerBox-error/m-p/652437#M84240</guid>
      <dc:creator>jan_solo_ff</dc:creator>
      <dc:date>2023-06-26T10:17:23Z</dc:date>
    </item>
  </channel>
</rss>

