<?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: Setting Initial Value in Modal Combo Box in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Setting-Initial-Value-in-Modal-Combo-Box/m-p/810167#M99192</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4340"&gt;@afterword&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I came across this post searching for something similar. If you haven't yet found a solution, try using the &amp;lt;&amp;lt;Set() command where you'd enter the item number for the combo box. In your case, you'd enter 4 because this corresponds to "2009".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;DS&lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2024 17:02:56 GMT</pubDate>
    <dc:creator>SDF1</dc:creator>
    <dc:date>2024-11-08T17:02:56Z</dc:date>
    <item>
      <title>Setting Initial Value in Modal Combo Box</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-Initial-Value-in-Modal-Combo-Box/m-p/291#M291</link>
      <description>I'm trying to request start and end dates from the user through a modal dialogue using the combo box.  I'd like 2009 to be selected in the year field by default, but I can't figure out how to accomplish this with the following year list:&lt;BR /&gt;years = {"2006", "2007", "2008", "2009"};&lt;BR /&gt;&lt;BR /&gt;When I use&lt;BR /&gt;startYear = comboBox(years, &amp;lt;&lt;SET&gt;&lt;/SET&gt;the script is ignored, though this format is interpreted properly in the non-modal framework.  &lt;BR /&gt;&lt;BR /&gt;Any ideas for setting a default in the modal dialogue?</description>
      <pubDate>Mon, 23 Mar 2009 17:54:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-Initial-Value-in-Modal-Combo-Box/m-p/291#M291</guid>
      <dc:creator>afterword</dc:creator>
      <dc:date>2009-03-23T17:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Initial Value in Modal Combo Box</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-Initial-Value-in-Modal-Combo-Box/m-p/810167#M99192</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4340"&gt;@afterword&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I came across this post searching for something similar. If you haven't yet found a solution, try using the &amp;lt;&amp;lt;Set() command where you'd enter the item number for the combo box. In your case, you'd enter 4 because this corresponds to "2009".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;DS&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 17:02:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-Initial-Value-in-Modal-Combo-Box/m-p/810167#M99192</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2024-11-08T17:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Initial Value in Modal Combo Box</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-Initial-Value-in-Modal-Combo-Box/m-p/810175#M99195</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
years = {"2006", "2007", "2008", "2009"};

New Window( "test",
	modal,
	startYear = Combo Box( years,x=years[startyear&amp;lt;&amp;lt;get] ),
	startYear &amp;lt;&amp;lt; set( 3 )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;After exiting the window, the variable "x" will contain the selected year.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 18:14:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-Initial-Value-in-Modal-Combo-Box/m-p/810175#M99195</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-11-08T18:14:46Z</dc:date>
    </item>
  </channel>
</rss>

