<?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: Scripting to go to last row in table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Scripting-to-go-to-last-row-in-table/m-p/34102#M20215</link>
    <description>&lt;P&gt;Thanks, that worked, but I'm confused as to why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In terms of script time, the script as a whole takes ~4-6 seconds to run completely. The Go To Row command was at the end of the script and the table was generated in the beginning with multiple table messages that run succesfully in between. Do you know if JMP finishes each line/message before moving to the next? If so, then I don't see why the wait command did anything. Or is it just a quirk in JSL?&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jan 2017 15:41:18 GMT</pubDate>
    <dc:creator>art</dc:creator>
    <dc:date>2017-01-05T15:41:18Z</dc:date>
    <item>
      <title>Scripting to go to last row in table</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-to-go-to-last-row-in-table/m-p/34094#M20207</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm trying to set up a JSL script that will take the user to the last row(or any specific row) in the table upon opening. I have it working for standalone tables by using the On Open script property and the Go To Row() message. I have found, however, that this does not work when the table is procedurally generated from a script (i.e. from a standalone SQL query with custom formatting scripts).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried both the Go To Row() and Select Rows() combined with Next/Previous Selected and neither have the expected effect. The targeted row gets selected, but the table does not scroll to show the selected row. I don't get any errors in the debugger log so I assume the line runs fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a seperate trick to getting table messages to run in JMP13?&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>Thu, 05 Jan 2017 15:10:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-to-go-to-last-row-in-table/m-p/34094#M20207</guid>
      <dc:creator>art</dc:creator>
      <dc:date>2017-01-05T15:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting to go to last row in table</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-to-go-to-last-row-in-table/m-p/34100#M20213</link>
      <description>&lt;P&gt;Try adding a wait statement. For example:&lt;/P&gt;&lt;P&gt;dt=Open("mypath\table.jmp");&lt;BR /&gt;wait(0);&lt;BR /&gt;dt&amp;lt;&amp;lt;go to row(nrow(dt));&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 15:32:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-to-go-to-last-row-in-table/m-p/34100#M20213</guid>
      <dc:creator>mark_anawis</dc:creator>
      <dc:date>2017-01-05T15:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting to go to last row in table</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-to-go-to-last-row-in-table/m-p/34102#M20215</link>
      <description>&lt;P&gt;Thanks, that worked, but I'm confused as to why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In terms of script time, the script as a whole takes ~4-6 seconds to run completely. The Go To Row command was at the end of the script and the table was generated in the beginning with multiple table messages that run succesfully in between. Do you know if JMP finishes each line/message before moving to the next? If so, then I don't see why the wait command did anything. Or is it just a quirk in JSL?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 15:41:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-to-go-to-last-row-in-table/m-p/34102#M20215</guid>
      <dc:creator>art</dc:creator>
      <dc:date>2017-01-05T15:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting to go to last row in table</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-to-go-to-last-row-in-table/m-p/34104#M20217</link>
      <description>&lt;P&gt;Sometimes JMP needs to finish a command before continuing to the next command so adding a wait statement allows it to finish the previous command.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 15:48:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-to-go-to-last-row-in-table/m-p/34104#M20217</guid>
      <dc:creator>mark_anawis</dc:creator>
      <dc:date>2017-01-05T15:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting to go to last row in table</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-to-go-to-last-row-in-table/m-p/34109#M20222</link>
      <description>&lt;P&gt;No, JMP does not run your code synchronously. It begins each function as soon as possible, so you can have situations where the results from an earlier function are not available when a later function is called, which might depend on those results.&lt;/P&gt;
&lt;P&gt;Wait( 0 ) causes JMP to 'catch up' before calling the next function after Wait().&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 16:21:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-to-go-to-last-row-in-table/m-p/34109#M20222</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-01-05T16:21:24Z</dc:date>
    </item>
  </channel>
</rss>

