<?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 Column data not updating through script until selected separately in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Column-data-not-updating-through-script-until-selected/m-p/582284#M78882</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having very curious issues that I haven't found within the JMP community yet. Using JSL, here's what's happening:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Import dataset (dt)&lt;/LI&gt;&lt;LI&gt;Correct values in :Col1&lt;OL&gt;&lt;LI&gt;Since I'm replacing the corrected values into the same cell they're read from, I'm using a for loop&lt;/LI&gt;&lt;LI&gt;I have this same loop set up in other scripts. I've checked a few and they're working correctly still&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Use :Col1 in formula for :Col2&lt;/LI&gt;&lt;LI&gt;:Col2 matched to join tables with dt.&lt;OL&gt;&lt;LI&gt;The joined table does not have :Col1&lt;BR /&gt;(after script completes)&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;I notice, at a glance, that :Col1 hasn't updated&lt;/LI&gt;&lt;LI&gt;I highlight the code in the script I created and run block separately &amp;amp; :Col1 updates, as it was supposed to in step 2&lt;OL&gt;&lt;LI&gt;Nothing was done differently except singling out the code to run separately.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Values created by step 3 still have the unupdated values of :Col1, thus the join didn't work as intended&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Since this issue seems to be isolated to the current script I'm working on, this is a real head scratcher, mainly because this is one of the very first blocks of code in the script. Before this there are column creations and column renamings being done. There aren't many of these either. About 20 lines of code between dataset import and this block of code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Technically I'm having this problem all over my code in different ways, but the earliest instance is above. This "new" script is a copy of a known working script, but modified to pull data from a different source. There are differences between the data sources, and those are already accounted for.&amp;nbsp; I'm having this issue for column deletion &amp;amp; other for loops. I've even recreated a portion of this script BOTH from scratch and another try from point-and-clicking and copying and pasting from the enhanced log.&amp;nbsp; Everything has this issue. I'm thinking it must be something to do with the source (SQL server), but no one else is having this issue. I'm the only one pulling from the SQL server and using JMP however.&lt;BR /&gt;&lt;BR /&gt;Any thoughts?&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:58:26 GMT</pubDate>
    <dc:creator>StarfruitBob</dc:creator>
    <dc:date>2023-06-10T23:58:26Z</dc:date>
    <item>
      <title>Column data not updating through script until selected separately</title>
      <link>https://community.jmp.com/t5/Discussions/Column-data-not-updating-through-script-until-selected/m-p/582284#M78882</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having very curious issues that I haven't found within the JMP community yet. Using JSL, here's what's happening:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Import dataset (dt)&lt;/LI&gt;&lt;LI&gt;Correct values in :Col1&lt;OL&gt;&lt;LI&gt;Since I'm replacing the corrected values into the same cell they're read from, I'm using a for loop&lt;/LI&gt;&lt;LI&gt;I have this same loop set up in other scripts. I've checked a few and they're working correctly still&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Use :Col1 in formula for :Col2&lt;/LI&gt;&lt;LI&gt;:Col2 matched to join tables with dt.&lt;OL&gt;&lt;LI&gt;The joined table does not have :Col1&lt;BR /&gt;(after script completes)&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;I notice, at a glance, that :Col1 hasn't updated&lt;/LI&gt;&lt;LI&gt;I highlight the code in the script I created and run block separately &amp;amp; :Col1 updates, as it was supposed to in step 2&lt;OL&gt;&lt;LI&gt;Nothing was done differently except singling out the code to run separately.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Values created by step 3 still have the unupdated values of :Col1, thus the join didn't work as intended&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Since this issue seems to be isolated to the current script I'm working on, this is a real head scratcher, mainly because this is one of the very first blocks of code in the script. Before this there are column creations and column renamings being done. There aren't many of these either. About 20 lines of code between dataset import and this block of code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Technically I'm having this problem all over my code in different ways, but the earliest instance is above. This "new" script is a copy of a known working script, but modified to pull data from a different source. There are differences between the data sources, and those are already accounted for.&amp;nbsp; I'm having this issue for column deletion &amp;amp; other for loops. I've even recreated a portion of this script BOTH from scratch and another try from point-and-clicking and copying and pasting from the enhanced log.&amp;nbsp; Everything has this issue. I'm thinking it must be something to do with the source (SQL server), but no one else is having this issue. I'm the only one pulling from the SQL server and using JMP however.&lt;BR /&gt;&lt;BR /&gt;Any thoughts?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:58:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-data-not-updating-through-script-until-selected/m-p/582284#M78882</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2023-06-10T23:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Column data not updating through script until selected separately</title>
      <link>https://community.jmp.com/t5/Discussions/Column-data-not-updating-through-script-until-selected/m-p/582348#M78885</link>
      <description>&lt;P&gt;A hunch: try Wait(0) where you expect to see an update.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="peng_liu_0-1671153314846.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48349iA37778434B3BE08A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="peng_liu_0-1671153314846.png" alt="peng_liu_0-1671153314846.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 01:16:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-data-not-updating-through-script-until-selected/m-p/582348#M78885</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2022-12-16T01:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Column data not updating through script until selected separately</title>
      <link>https://community.jmp.com/t5/Discussions/Column-data-not-updating-through-script-until-selected/m-p/582371#M78889</link>
      <description>&lt;P&gt;Besides trying Wait(0), if your table has formulas try using &amp;lt;&amp;lt; Run formulas. This should force JMP to evaluate all pending formulas before script execution continues&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Run Formulas();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1671170272534.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48351iE8B17A147BB9E820/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1671170272534.png" alt="jthi_0-1671170272534.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or even &amp;lt;&amp;lt; Rerun formulas (though this should be unnecessary as it evaluates all formulas, even the ones not pending)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Rerun Formulas;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1671170280396.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48352i27086BEB26B69858/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1671170280396.png" alt="jthi_1-1671170280396.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 05:59:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-data-not-updating-through-script-until-selected/m-p/582371#M78889</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-12-16T05:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Column data not updating through script until selected separately</title>
      <link>https://community.jmp.com/t5/Discussions/Column-data-not-updating-through-script-until-selected/m-p/582680#M78902</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2781"&gt;@peng_liu&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;Thank you! wait() worked! Right above the loop I describe above, there's a formula that's run to populate a column that's required for the loop. Thank you both!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 16:19:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-data-not-updating-through-script-until-selected/m-p/582680#M78902</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2022-12-16T16:19:11Z</dc:date>
    </item>
  </channel>
</rss>

