<?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 embed application, scripts and data tables in a package in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45704#M26098</link>
    <description>&lt;P&gt;Ahhhh,&lt;/P&gt;&lt;P&gt;I see. It works perfectly now...&lt;/P&gt;&lt;P&gt;I was not awared that you need first to define the function ten call it. In other languages, after compilation, the function is recognized wherever it is placed (even outside the script).&lt;/P&gt;&lt;P&gt;Thanks guys !!&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2017 13:42:42 GMT</pubDate>
    <dc:creator>samir</dc:creator>
    <dc:date>2017-10-10T13:42:42Z</dc:date>
    <item>
      <title>How to embed application, scripts and data tables in a package</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45666#M26083</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am writing an application that is supposed to be distributed to users...&lt;/P&gt;&lt;P&gt;For several reasons, I need the application to centralize all the scripts and data tables needed to run (no need to call a script or a reference-datatable outside the application).&lt;/P&gt;&lt;P&gt;I succeeded to centralize all my scripts in functions embedded in the application, but I do not know how to embed the data tables (which means I still need to keep some reference data tables in a public location and call them from the application)...&lt;/P&gt;&lt;P&gt;Someone knows how to embed everything in a single App to be able to disctribute it ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 14:50:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45666#M26083</guid>
      <dc:creator>samir</dc:creator>
      <dc:date>2017-10-09T14:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed application, scripts and data tables in a package</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45667#M26084</link>
      <description>&lt;P&gt;I think the 'best' way to do this may depend on how you are building the application (with Application Builder?), and what workflow and user interface you want. Dan's &lt;A href="https://community.jmp.com/t5/JMP-Scripts/Custom-JMP-application-example/ta-p/22573" target="_self"&gt;blog post&lt;/A&gt; might be useful.&lt;/P&gt;
&lt;P&gt;Don't forget that you can also 'include' JMP tables by adding the JSL to generate them to your own code (use 'Copy Table Script' from red triangle menu of the required table).&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 15:06:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45667#M26084</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-10-09T15:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed application, scripts and data tables in a package</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45668#M26085</link>
      <description>&lt;P&gt;Jan,&lt;/P&gt;&lt;P&gt;I started using Application Builder but then I stopped (I do not reaaly understand how to control the objects I create...Besides I have limited objects to insert compared to a full scripting method).&lt;/P&gt;&lt;P&gt;Anyway, now I am scripting everything.&lt;/P&gt;&lt;P&gt;The example of Dan is very good to illustrate what I wat to do: In his example, what is called embedding a datatable is just making it appear in the Application builder. But in reality, it is sourced from its location ($SAMPLE_DATA\Big Class.jmp). This means that the code of Dan will not work if I do not have a copy of the data table "Big Class" already stored somewhere on my computer.&lt;/P&gt;&lt;P&gt;What I want to do is embed tables in the Application so that users do not need to have a copy of this table (and by the way, these tables are sort of Specifications or references, so I cannot generate them by script).&lt;/P&gt;&lt;P&gt;I hope my explanation is not to vague...&amp;nbsp; :(&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 15:22:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45668#M26085</guid>
      <dc:creator>samir</dc:creator>
      <dc:date>2017-10-09T15:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed application, scripts and data tables in a package</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45669#M26086</link>
      <description>&lt;P&gt;I don't fully understandthe comment about 'specifications or references', but perhaps I don't need to if &lt;A href="https://community.jmp.com/t5/Discussions/Referening-data-file-distributed-within-an-add-in/td-p/11130" target="_self"&gt;this thread&lt;/A&gt; helps.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 15:38:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45669#M26086</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-10-09T15:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed application, scripts and data tables in a package</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45670#M26087</link>
      <description>&lt;P&gt;Hi Jan,&lt;/P&gt;&lt;P&gt;I am sorry, I missunderstood one of your key tips !!!!&amp;nbsp; :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;In fact your proposal to "Copy Data Script" should be the magic thing to make it work !!!!! I was not aware of this feature !&lt;/P&gt;&lt;P&gt;Let me test it ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 15:55:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45670#M26087</guid>
      <dc:creator>samir</dc:creator>
      <dc:date>2017-10-09T15:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed application, scripts and data tables in a package</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45673#M26089</link>
      <description>&lt;P&gt;Jan,&lt;/P&gt;&lt;P&gt;I joined below a simple code to test your proposal.&lt;/P&gt;&lt;P&gt;I am sure&amp;nbsp;the principle works, but somehow I cannot manage to do it:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = CreateTab();

CreateTab = Function( {},
	A = New Table( "TestTable",
	Add Rows( 4 ),
	New Column( "Age",
		Numeric,
		Continuous,
		Format( "Best", 12 ),
		Set Values( [3, 5, 2, 8] )
	),
	New Column( "Height",
		Numeric,
		Continuous,
		Format( "Best", 12 ),
		Set Values( [0.6, 1.03, 0.55, 1.3] )
	)
);
	A;
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It is like the generated table cannot be passed to dt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 16:14:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45673#M26089</guid>
      <dc:creator>samir</dc:creator>
      <dc:date>2017-10-09T16:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed application, scripts and data tables in a package</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45674#M26090</link>
      <description>&lt;P&gt;This worked for me:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

CreateTab = Function( {}, {Default Local},
	A = New Table( "TestTable",
		Add Rows( 4 ),
		New Column( "Age", Numeric, Continuous, Format( "Best", 12 ), Set Values( [3, 5, 2, 8] ) ),
		New Column( "Height", Numeric, Continuous, Format( "Best", 12 ), Set Values( [0.6, 1.03, 0.55, 1.3] ) )
	);
	A;
);

dt = CreateTab();
dt &amp;lt;&amp;lt; Distribution(Y(:Height));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you call your function twice JMP will take care of the table name collision so it still works.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 16:31:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45674#M26090</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-10-09T16:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed application, scripts and data tables in a package</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45683#M26092</link>
      <description>&lt;P&gt;Ian (not Jan btw) showed code where the function is defined before being called.&amp;nbsp; Your code calls the function before it is defined.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 17:14:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45683#M26092</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2017-10-09T17:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed application, scripts and data tables in a package</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45704#M26098</link>
      <description>&lt;P&gt;Ahhhh,&lt;/P&gt;&lt;P&gt;I see. It works perfectly now...&lt;/P&gt;&lt;P&gt;I was not awared that you need first to define the function ten call it. In other languages, after compilation, the function is recognized wherever it is placed (even outside the script).&lt;/P&gt;&lt;P&gt;Thanks guys !!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 13:42:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45704#M26098</guid>
      <dc:creator>samir</dc:creator>
      <dc:date>2017-10-10T13:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed application, scripts and data tables in a package</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45706#M26099</link>
      <description>&lt;P&gt;FYI,&lt;/P&gt;
&lt;P&gt;JMP is an interpretive language, not a compiled language.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 13:50:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45706#M26099</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-10-10T13:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed application, scripts and data tables in a package</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45709#M26100</link>
      <description>&lt;P&gt;Thanks for the info :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;Thanks to all...&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 14:13:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45709#M26100</guid>
      <dc:creator>samir</dc:creator>
      <dc:date>2017-10-10T14:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed application, scripts and data tables in a package</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45710#M26101</link>
      <description>&lt;P&gt;If your addin lives on a shared drive you can store datasets in the addin location, rather than create them dynamically.&amp;nbsp; For example here's an addin.def:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;id="com.abccorp.mydept.myapp"
name="My Application"
autoload=1
home="M:\jmpapps\myapp\Addin"&lt;/PRE&gt;
&lt;P&gt;You would store all of your JSL files and datasets in the folder M:\jmpapps\myapp\Addin.&lt;/P&gt;
&lt;P&gt;In your code you can reference datasets using the addin prefix:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;open("$ADDIN_HOME(com.abccorp.mydept.myapp)\mydataset.xlsx");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 14:23:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45710#M26101</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2017-10-10T14:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed application, scripts and data tables in a package</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45711#M26102</link>
      <description>&lt;P&gt;That is also an elegant way :)&lt;/img&gt; but I prefer to centralize all files inside the App.&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 14:31:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/45711#M26102</guid>
      <dc:creator>samir</dc:creator>
      <dc:date>2017-10-10T14:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed application, scripts and data tables in a package</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/52025#M29526</link>
      <description>&lt;P&gt;I realize this is marked solved, but I wanted to add on:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the object explorer you'll find your data tables. If you click on them, the properties will open underneath. From here you can control the location. It sounds like you may want to set it to embedded script.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 23:51:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-embed-application-scripts-and-data-tables-in-a-package/m-p/52025#M29526</guid>
      <dc:creator>DopeAgonist</dc:creator>
      <dc:date>2018-02-23T23:51:05Z</dc:date>
    </item>
  </channel>
</rss>

