<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to display the current month</title><link>https://www.infopathdev.com:443/forums/thread/25506.aspx</link><pubDate>Wed, 09 Jan 2008 16:34:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25506</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25506.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=25506</wfw:commentRss><description>&lt;p&gt;I think you could do this.&lt;/p&gt;
&lt;p&gt;Add manual entries in your drop down. Make the value a number and the display the name of the month.&lt;/p&gt;
&lt;p&gt;Then you could use a rule to set the field value to substring(today(),6,2) You need to build it in the formula window as today() does not copy.&lt;/p&gt;
&lt;p&gt;That should do it.&lt;/p&gt;</description></item><item><title>Re: How to display the current month</title><link>https://www.infopathdev.com:443/forums/thread/25503.aspx</link><pubDate>Wed, 09 Jan 2008 16:04:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25503</guid><dc:creator>Zeetec</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25503.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=25503</wfw:commentRss><description>&lt;p&gt;Thanks for that Clay,&lt;/p&gt;
&lt;p&gt;But I&amp;#39;m currently not using a DB table so how would I be able to do this using a drop down list.&lt;/p&gt;
&lt;p&gt;Would it be possible for me to create a drop down list and then set it&amp;#39;s value to show just the month part of the date by doing something like:-&lt;/p&gt;
&lt;p&gt;&amp;nbsp;substring today(), 6, 2&lt;/p&gt;
&lt;p&gt;The above doesn&amp;#39;t work but I think it might just need tweaking a bit.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item><item><title>Re: How to display the current month</title><link>https://www.infopathdev.com:443/forums/thread/25500.aspx</link><pubDate>Wed, 09 Jan 2008 14:40:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25500</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25500.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=25500</wfw:commentRss><description>&lt;p&gt;If you have a database you could use a table or create a simple XML to use as a secondary datasource.&lt;/p&gt;
&lt;p&gt;Two columns&lt;/p&gt;
&lt;p&gt;Number&amp;nbsp; Name&lt;/p&gt;
&lt;p&gt;01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; January&lt;/p&gt;
&lt;p&gt;02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; February&lt;/p&gt;
&lt;p&gt;Etc...&lt;/p&gt;
&lt;p&gt;Then in Open Rules parse the date.&amp;nbsp;Since the date is yyyy-mm-dd we need to get just the month from the string and then use it to look up the correct value from the secondary data source list.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Set your drop down to Name[number = substring-before(substring-after(today(), &amp;quot;-&amp;quot;), &amp;quot;-&amp;quot;)]&lt;/p&gt;</description></item><item><title>How to display the current month</title><link>https://www.infopathdev.com:443/forums/thread/25498.aspx</link><pubDate>Wed, 09 Jan 2008 11:37:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25498</guid><dc:creator>Zeetec</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25498.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=25498</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have a drop down menu which users choose the current month from.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How can I make the current month display in the drop down automatically?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks.&lt;/p&gt;</description></item></channel></rss>