<?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 Application Dialog ^TABLENAME reference in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Application-Dialog-TABLENAME-reference/m-p/351386#M60095</link>
    <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been struggling for a while now, trying to have a Dialog ^TABLENAME reference filled in an Application Dialog Title.&lt;/P&gt;&lt;P&gt;It seems that it only reacts to a Current DataTable being already loaded when my app is launched.&lt;/P&gt;&lt;P&gt;But this is in fact the purpose of Dialog1, to chose what Data Table to open, starting from nothing:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dialog2_Title-TABLENAME_Setting.png" style="width: 296px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29609i1E8C3445CBF9421E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Dialog2_Title-TABLENAME_Setting.png" alt="Dialog2_Title-TABLENAME_Setting.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue here is that even though Dialog1 script ends with opening a chosen Data Table, Dialog2 Title TABLENAME remains empty:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dialog2_Title-TABLENAME_Render.png" style="width: 292px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29610iD5FEC539B68A1AB6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Dialog2_Title-TABLENAME_Render.png" alt="Dialog2_Title-TABLENAME_Render.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already tried several syntaxes at the end of Dialog1 script, with no change :(&lt;/img&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;OnNext1 = Function( {},
	file_path = FilePath &amp;lt;&amp;lt; GetText();
	If ( file_path != "",

		//IST Text File
		dt = Open(
			file_path,
...
		);

		dt &amp;lt;&amp;lt; CurrentDataTable();
		CurrentDataTable( dt );

		Dialog2 &amp;lt;&amp;lt; CreateInstance( dt );
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any suggestion on how to push my "dt" Data Table into this&amp;nbsp;^TABLENAME reference, in a Dialog Title?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:25:07 GMT</pubDate>
    <dc:creator>HubP_SDe</dc:creator>
    <dc:date>2023-06-10T23:25:07Z</dc:date>
    <item>
      <title>Application Dialog ^TABLENAME reference</title>
      <link>https://community.jmp.com/t5/Discussions/Application-Dialog-TABLENAME-reference/m-p/351386#M60095</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been struggling for a while now, trying to have a Dialog ^TABLENAME reference filled in an Application Dialog Title.&lt;/P&gt;&lt;P&gt;It seems that it only reacts to a Current DataTable being already loaded when my app is launched.&lt;/P&gt;&lt;P&gt;But this is in fact the purpose of Dialog1, to chose what Data Table to open, starting from nothing:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dialog2_Title-TABLENAME_Setting.png" style="width: 296px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29609i1E8C3445CBF9421E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Dialog2_Title-TABLENAME_Setting.png" alt="Dialog2_Title-TABLENAME_Setting.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue here is that even though Dialog1 script ends with opening a chosen Data Table, Dialog2 Title TABLENAME remains empty:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dialog2_Title-TABLENAME_Render.png" style="width: 292px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29610iD5FEC539B68A1AB6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Dialog2_Title-TABLENAME_Render.png" alt="Dialog2_Title-TABLENAME_Render.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already tried several syntaxes at the end of Dialog1 script, with no change :(&lt;/img&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;OnNext1 = Function( {},
	file_path = FilePath &amp;lt;&amp;lt; GetText();
	If ( file_path != "",

		//IST Text File
		dt = Open(
			file_path,
...
		);

		dt &amp;lt;&amp;lt; CurrentDataTable();
		CurrentDataTable( dt );

		Dialog2 &amp;lt;&amp;lt; CreateInstance( dt );
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any suggestion on how to push my "dt" Data Table into this&amp;nbsp;^TABLENAME reference, in a Dialog Title?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:25:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Application-Dialog-TABLENAME-reference/m-p/351386#M60095</guid>
      <dc:creator>HubP_SDe</dc:creator>
      <dc:date>2023-06-10T23:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Application Dialog ^TABLENAME reference</title>
      <link>https://community.jmp.com/t5/Discussions/Application-Dialog-TABLENAME-reference/m-p/358396#M60845</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Stéphane - unfortunately the ^TABLENAME substitution in Application Builder is only designed to work with the Current Data Table.&amp;nbsp; Application Builder resolves the required data tables at initialization.&amp;nbsp; One table is allowed to come from the Current Data Table at the time the Application launches, and the rest are either identified by name, by file, or are assigned dynamically by the scripts.&amp;nbsp; Data Tables are global to the Application, so there is not a table that is associated with each Module.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Fortunately, there is a straightforward way to set the title directly in the script for the Dialog2 module.&amp;nbsp; The window is created at the point where "thisModuleInstance &amp;lt;&amp;lt; Create Objects" is called.&amp;nbsp; After that line, you can add something like:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;(thisModuleInstance &amp;lt;&amp;lt; Get Box) &amp;lt;&amp;lt; Set Window Title("IST Analyser - " || (dt &amp;lt;&amp;lt; Get Name));
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;where &lt;FONT face="courier new,courier"&gt;dt&lt;/FONT&gt; is the name of the JSL symbol for the data table, as defined in the Dialog2 module.&amp;nbsp; I hope this helps!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 02:51:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Application-Dialog-TABLENAME-reference/m-p/358396#M60845</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2021-02-12T02:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Application Dialog ^TABLENAME reference</title>
      <link>https://community.jmp.com/t5/Discussions/Application-Dialog-TABLENAME-reference/m-p/358448#M60849</link>
      <description>&lt;P&gt;Thanks a lot Dan,&lt;BR /&gt;&lt;BR /&gt;First solving reply after more than 500 views must be close to a record!&lt;/P&gt;
&lt;P&gt;;)&lt;/img&gt;&lt;BR /&gt;I also found how to avoid hardcoding the app name:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;(thisModuleInstance &amp;lt;&amp;lt; GetBox) &amp;lt;&amp;lt; SetWindowTitle( (thisApplication &amp;lt;&amp;lt; GetName) || " - " || (dt2 &amp;lt;&amp;lt; GetName));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;It works fine as expected now.&lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 12:35:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Application-Dialog-TABLENAME-reference/m-p/358448#M60849</guid>
      <dc:creator>HubP_SDe</dc:creator>
      <dc:date>2021-02-12T12:35:57Z</dc:date>
    </item>
  </channel>
</rss>

