<?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: Tablebox() - how to set focus to specific row? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Tablebox-how-to-set-focus-to-specific-row/m-p/356269#M60618</link>
    <description>&lt;P&gt;Ok, I figured out a solution!&amp;nbsp; This will set the focus of a specific row within a tablebox().&amp;nbsp; Basically, you just need to disable the standard scrolling associated with a tablebox(), then wrap that tablebox within a scrollbox().&amp;nbsp; Here's roughly how it's done:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//r10 is a report of a data table called dt10

//wrap the report tablebox in a scrollbox
sb10 = Scroll Box( size( 700, 400 ), r10 );

//disable the scrolling of the report tablebox
r10[Table Box( 1 )] &amp;lt;&amp;lt; set selectable rows();
r10[Table Box( 1 )] &amp;lt;&amp;lt; set scrollable( 0, 0 );

//find max hor and vert pixel range of scrollbox sb10
sb10max = sb10 &amp;lt;&amp;lt; get scroll extents;

//now reference the vertical component of sb10max
//make a buttonbox and you can find key rows in tablebox
//and find their ratio of where they occur as row indices to nrows(dt10)
//then multiply them by sb10max and this will force the
//tablebox to scroll by the action of the buttonbox! woo-hoo!
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Feb 2021 13:10:31 GMT</pubDate>
    <dc:creator>djhanson</dc:creator>
    <dc:date>2021-02-05T13:10:31Z</dc:date>
    <item>
      <title>Tablebox() - how to set focus to specific row?</title>
      <link>https://community.jmp.com/t5/Discussions/Tablebox-how-to-set-focus-to-specific-row/m-p/350953#M60059</link>
      <description>&lt;P&gt;Hi, lets say I have a Tablebox() with many rows.&amp;nbsp; (e.g. 1000 rows)&amp;nbsp; In this case it does an automatic vertical scroll bar.&amp;nbsp; (good as there are many rows)&amp;nbsp; But how to set focus to say the n=685th row as focus?&amp;nbsp; Is there a specific command or method?&amp;nbsp; In this way, by focus, I mean a command that will automatically scroll the vertical scroll bar to the n=685th row.&amp;nbsp; (so that a user doesn't have to manually scroll down via the vertical scroll bar)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks, DJ&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:03:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tablebox-how-to-set-focus-to-specific-row/m-p/350953#M60059</guid>
      <dc:creator>djhanson</dc:creator>
      <dc:date>2023-06-09T22:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Tablebox() - how to set focus to specific row?</title>
      <link>https://community.jmp.com/t5/Discussions/Tablebox-how-to-set-focus-to-specific-row/m-p/350974#M60062</link>
      <description>&lt;P&gt;I might add, in a Scrollbox() there is a &amp;lt;&amp;lt;set scroll position command.&amp;nbsp; But with a Tablebox() it seems to automatically make a vertical scroll box I think. (if many rows)&amp;nbsp; Can this &amp;lt;&amp;lt;set scroll position work with Tablebox() perhaps?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 02:14:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tablebox-how-to-set-focus-to-specific-row/m-p/350974#M60062</guid>
      <dc:creator>djhanson</dc:creator>
      <dc:date>2021-01-20T02:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Tablebox() - how to set focus to specific row?</title>
      <link>https://community.jmp.com/t5/Discussions/Tablebox-how-to-set-focus-to-specific-row/m-p/350977#M60065</link>
      <description>&lt;P&gt;No such message exists in the Table Box() object.&amp;nbsp; I too wish that it has that capability&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 02:54:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tablebox-how-to-set-focus-to-specific-row/m-p/350977#M60065</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-01-20T02:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Tablebox() - how to set focus to specific row?</title>
      <link>https://community.jmp.com/t5/Discussions/Tablebox-how-to-set-focus-to-specific-row/m-p/356269#M60618</link>
      <description>&lt;P&gt;Ok, I figured out a solution!&amp;nbsp; This will set the focus of a specific row within a tablebox().&amp;nbsp; Basically, you just need to disable the standard scrolling associated with a tablebox(), then wrap that tablebox within a scrollbox().&amp;nbsp; Here's roughly how it's done:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;//r10 is a report of a data table called dt10

//wrap the report tablebox in a scrollbox
sb10 = Scroll Box( size( 700, 400 ), r10 );

//disable the scrolling of the report tablebox
r10[Table Box( 1 )] &amp;lt;&amp;lt; set selectable rows();
r10[Table Box( 1 )] &amp;lt;&amp;lt; set scrollable( 0, 0 );

//find max hor and vert pixel range of scrollbox sb10
sb10max = sb10 &amp;lt;&amp;lt; get scroll extents;

//now reference the vertical component of sb10max
//make a buttonbox and you can find key rows in tablebox
//and find their ratio of where they occur as row indices to nrows(dt10)
//then multiply them by sb10max and this will force the
//tablebox to scroll by the action of the buttonbox! woo-hoo!
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 13:10:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Tablebox-how-to-set-focus-to-specific-row/m-p/356269#M60618</guid>
      <dc:creator>djhanson</dc:creator>
      <dc:date>2021-02-05T13:10:31Z</dc:date>
    </item>
  </channel>
</rss>

