<?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 How could Workflow Builder automatically recognize the table newly created Untitle1 vs. Untitle 2? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-could-Workflow-Builder-automatically-recognize-the-table/m-p/782477#M96599</link>
    <description>&lt;P&gt;When I am creating the workflow, I may use tabulate to create some summary table and it is automatically named as "Untitle 1". As a result, when I excuting the Workflow again, the newly created summary table is named as "Untitle 2" so workflow cannot find Untilte1 and I need to manually give it a reference and mistakes happens a lot if there are a lot of new tables.&lt;/P&gt;&lt;P&gt;Is there any way we could let Workflow automatically recognize the new table? Or, could we directly name the table in Tabulate before "make it into table" "Untitle"?&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;</description>
    <pubDate>Mon, 19 Aug 2024 03:59:51 GMT</pubDate>
    <dc:creator>Fruit325</dc:creator>
    <dc:date>2024-08-19T03:59:51Z</dc:date>
    <item>
      <title>How could Workflow Builder automatically recognize the table newly created Untitle1 vs. Untitle 2?</title>
      <link>https://community.jmp.com/t5/Discussions/How-could-Workflow-Builder-automatically-recognize-the-table/m-p/782477#M96599</link>
      <description>&lt;P&gt;When I am creating the workflow, I may use tabulate to create some summary table and it is automatically named as "Untitle 1". As a result, when I excuting the Workflow again, the newly created summary table is named as "Untitle 2" so workflow cannot find Untilte1 and I need to manually give it a reference and mistakes happens a lot if there are a lot of new tables.&lt;/P&gt;&lt;P&gt;Is there any way we could let Workflow automatically recognize the new table? Or, could we directly name the table in Tabulate before "make it into table" "Untitle"?&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;</description>
      <pubDate>Mon, 19 Aug 2024 03:59:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-could-Workflow-Builder-automatically-recognize-the-table/m-p/782477#M96599</guid>
      <dc:creator>Fruit325</dc:creator>
      <dc:date>2024-08-19T03:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: How could Workflow Builder automatically recognize the table newly created Untitle1 vs. Untitle 2?</title>
      <link>https://community.jmp.com/t5/Discussions/How-could-Workflow-Builder-automatically-recognize-the-table/m-p/782487#M96600</link>
      <description>&lt;P&gt;You can decide the name when using Tabulate, but I think you have to do it by modifying the JSL (add Output Table("tablename") to &amp;lt;&amp;lt; Make Into Data Table)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Car Poll.jmp");
obj = dt &amp;lt;&amp;lt; Tabulate(
	Add Table(
		Column Table(Grouping Columns(:sex, :marital status)),
		Row Table(Grouping Columns(:country, :size))
	)
);
dt = obj &amp;lt;&amp;lt; Make Into Data Table(Output Table("My Table"));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Aug 2024 04:06:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-could-Workflow-Builder-automatically-recognize-the-table/m-p/782487#M96600</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-08-19T04:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: How could Workflow Builder automatically recognize the table newly created Untitle1 vs. Untitle 2?</title>
      <link>https://community.jmp.com/t5/Discussions/How-could-Workflow-Builder-automatically-recognize-the-table/m-p/782571#M96616</link>
      <description>&lt;P&gt;Workflow Builder is great - the user doesn't need to know any JSL scripting.&lt;/P&gt;&lt;P&gt;... till he is confronted with the trap: table name conflicts.&lt;BR /&gt;In 50% of the cases, there is no table with matching name - and JMP will ask.&lt;BR /&gt;The issue starts, IF there is a table with matching name, and it's the wrong one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The topic is dicussed in the Q&amp;amp;A of this talk:&lt;BR /&gt;&lt;LI-MESSAGE title="Workflow Builder or the &amp;amp;quot;baby steps&amp;amp;quot; into Scripting" uid="699152" url="https://community.jmp.com/t5/Benelux-JMP-Users-Group/Workflow-Builder-or-the-quot-baby-steps-quot-into-Scripting/m-p/699152#U699152" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are several "workarounds":&lt;BR /&gt;&lt;BR /&gt;The easiest one (#4b) - following&amp;nbsp; &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt; example:&lt;BR /&gt;use a bit of JSL and store the table references as "&lt;FONT face="courier new,courier"&gt;dt&lt;/FONT&gt;". Then &lt;U&gt;use &lt;FONT face="courier new,courier"&gt;dt&lt;/FONT&gt; also in all the other workflow steps.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;NB: Specifying "Output Table" just works till there is a collision, then "Untitled" will be "Untitled 2".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;other approaches:&lt;/P&gt;&lt;P&gt;#1 use the rewind icon&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1724069630374.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67255i78D68EE0D34F8E18/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1724069630374.png" alt="hogi_0-1724069630374.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;... to close all data tables, then the newly generated table will again be "Untitled".&lt;BR /&gt;-&amp;gt; no robust solution&lt;BR /&gt;The approach will fail once there is an open data table &lt;FONT face="courier new,courier"&gt;Untitled&lt;/FONT&gt; and the user tries to run the workflow.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#2: &lt;STRONG&gt;save&lt;/STRONG&gt;&lt;BR /&gt;after creating the data table, save it with a specific name. Use the saved data table to record the additional steps.&lt;BR /&gt;Cool: With Save, even if there is a table name conflict - JMP won't add a "2".&lt;BR /&gt;Just use every time the same temporary file and overwrite it.&lt;BR /&gt;Not nice - but very effective!!&lt;BR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/13470"&gt;@Zoe_Betteridge&lt;/a&gt;in &lt;A href="https://community.jmp.com/t5/Abstracts/Using-JMP-Workflow-Builder-to-Automate-Analysis-of-an-Annual/ev-p/708940" target="_blank" rel="noopener"&gt;Using-JMP-Workflow-Builder-to-Automate-Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#3: new since JMP18: use the &lt;STRONG&gt;for each loop&lt;/STRONG&gt;&lt;BR /&gt;It replaces all table names in nested workflow steps with the table name from the import step (also works for N=1):&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Benelux-JMP-Users-Group/Workflow-Builder-or-the-quot-baby-steps-quot-into-Scripting/m-p/739486/highlight/true#M7" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/Benelux-JMP-Users-Group/Workflow-Builder-or-the-quot-baby-steps-quot-into-Scripting/m-p/739486/highlight/true#M7&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#4: with a bit of JSL: in all workflow steps, remove the table name references&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// for workflow steps like
// Data Table("mytable") &amp;lt;&amp;lt; command (...);
// just remove the data table and get:
command( ... )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;[unfortunately, there are several exceptions where this approach will fail].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#4b: change the code and use a variable as reference for the data table&lt;BR /&gt;&lt;EM&gt;import step:&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// add "dt ="
dt = open( ...);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;subsequent worklow steps:&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// replace:
// Data Table("mytable") &amp;lt;&amp;lt; command (...)
// with

dt &amp;lt;&amp;lt; command( ...)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope, in a future version of JMP there will be a Workflow Builder which &lt;U&gt;automatically&lt;/U&gt; prevents the user from getting into this trap, e.g.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;once a data table is created, Worklow Builder could ask for a suitable variable name to reference the data table.&lt;/LI&gt;&lt;LI&gt;a button in Workflow Builder:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;replace Data Table reference by table name -&amp;gt; Data Table reference by variable&lt;BR /&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 19 Aug 2024 13:04:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-could-Workflow-Builder-automatically-recognize-the-table/m-p/782571#M96616</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-08-19T13:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: How could Workflow Builder automatically recognize the table newly created Untitle1 vs. Untitle 2?</title>
      <link>https://community.jmp.com/t5/Discussions/How-could-Workflow-Builder-automatically-recognize-the-table/m-p/782859#M96674</link>
      <description>&lt;P&gt;Based on Option 4b, there is a post in the wish list to fix the issue automatically:&lt;/P&gt;&lt;P&gt;&lt;LI-MESSAGE title="Allow Action Recorder to use simple variable names as references" uid="589514" url="https://community.jmp.com/t5/JMP-Wish-List/Allow-Action-Recorder-to-use-simple-variable-names-as-references/m-p/589514#U589514" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 15:39:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-could-Workflow-Builder-automatically-recognize-the-table/m-p/782859#M96674</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-08-20T15:39:44Z</dc:date>
    </item>
  </channel>
</rss>

