<?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: Determine 'Week Of' or 'Week Ending' based on DatePicker control</title><link>https://www.infopathdev.com:443/forums/thread/83549.aspx</link><pubDate>Tue, 16 Oct 2012 18:42:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83549</guid><dc:creator>Gennady Vanin (Геннадий Ванин, Новосибирск)</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83549.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=83549</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;APMOB:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;the forms are to be published on a SharePoint site which I&amp;#39;m hoping gets around any issue of whether they have it installed or not (I take from your answer that it should?)&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Publishing to a Sharepoint is somewhat unrelated to where the form will be opened.&amp;nbsp;&lt;/p&gt;&lt;p&gt;If you publish a filler XSN form template then the users will be able open created on its basis XML data forms from sharepoint only in Filler (on client machines) and attempt to open in browser will produce an error..&lt;br /&gt;While browser -enabled forms can be opened both in Filler (on client machines, which requires Infopath installed on client machines) and in browser (on Sharepoint Server).&lt;/p&gt;&lt;p&gt;The Web Browser form will have both choices and I do not know how OOTB to restrict the context options to opening only in Filler or to only in browser.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Determine 'Week Of' or 'Week Ending' based on DatePicker control</title><link>https://www.infopathdev.com:443/forums/thread/83546.aspx</link><pubDate>Tue, 16 Oct 2012 16:30:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83546</guid><dc:creator>APMOB</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83546.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=83546</wfw:commentRss><description>&lt;p&gt;Many thanks Gennady!&lt;/p&gt;
&lt;p&gt;Agree on the advice to avoid coding where possible; I&amp;#39;ve managed to utilise an elaborate formula to apply a rule / data validation combo to force users to only select a Friday on a date-picker. Link below for anyone else with the same requirement :&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.bizsupportonline.net/infopath2007/force-select-day-of-week-date-picker-infopath-using-rules-formulas.htm"&gt;http://www.bizsupportonline.net/infopath2007/force-select-day-of-week-date-picker-infopath-using-rules-formulas.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Which allows me to use the date picker as a &amp;#39;Week Ending&amp;#39; value and thus solves my problem!&lt;/p&gt;
&lt;p&gt;To your point on availability of InfoPath to end-clients, the forms are to be published on a SharePoint site which I&amp;#39;m hoping gets around any issue of whether they have it installed or not (I take from your answer that it should?)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks again for the info, much appreciated!&lt;/p&gt;
&lt;p&gt;APMOB&lt;/p&gt;</description></item><item><title>Re: Determine 'Week Of' or 'Week Ending' based on DatePicker control</title><link>https://www.infopathdev.com:443/forums/thread/83544.aspx</link><pubDate>Tue, 16 Oct 2012 16:06:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83544</guid><dc:creator>Gennady Vanin (Геннадий Ванин, Новосибирск)</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83544.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=83544</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;APMOB:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;I&amp;#39;m new to coding in InfoPath (does it use C / C++?...)&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;It can use C# 2.0 (aka 2005) or VB.NEt (Visual Basic.NET) 2.0 (aka 2005).&lt;/p&gt;&lt;p&gt;You will find how to enter into coding under Developer tab on ribbon in Infopath Designer 2010 &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Somewhen before 2010 it was using JScript , in 2003, not sure abt 2007. &lt;/p&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;APMOB:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;may not have InfoPath installed and not sure if that would be a requirement in order to have this kind of code running in the background?&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If you intend to use Infopath Filler/client &amp;nbsp; form then clients should have Infopath installed even if you use codeless forms.&amp;nbsp; &lt;/p&gt;&lt;p&gt;If you are going to run then through browsers then it is available only through enterprise Sharepoint Server Infopath Form Service and you should not worry about clients. &amp;nbsp; &lt;/p&gt;&lt;p&gt;You should avoid coding due to maintenance hassles and I people manage to create &lt;a href="http://alecpojidaev.wordpress.com/2008/12/30/infopath-codeless-programming-walkthrough-2/"&gt;very complicated algorithms with dates codelessly&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Determine 'Week Of' or 'Week Ending' based on DatePicker control</title><link>https://www.infopathdev.com:443/forums/thread/83535.aspx</link><pubDate>Tue, 16 Oct 2012 12:15:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83535</guid><dc:creator>APMOB</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83535.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=83535</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;Have been browsing for this already&amp;nbsp;and suspect it is either a) impossible or b) quite complicated to achieve, but figured it&amp;#39;s no harm to ask anyway...&lt;/p&gt;
&lt;p&gt;I&amp;#39;m designing a form template which will have multiple sections based on daily, weekly or monthly data.&lt;/p&gt;
&lt;p&gt;Above each section I have a date picker to allow the user to specify exactly what period they are reporting on (so three independent date pickers)&lt;/p&gt;
&lt;p&gt;I want to format the displayed date based on the period - for Daily and Monthly, this isn&amp;#39;t a problem, as I can just set the format of the control to be either dd-mmm-yyyy (Daily) or mmm-yyyy (Monthly) and it will show perfectly. The problem arises for Weekly, as there is no pre-defined format for &amp;#39;Week Ending&amp;#39; (which could then show the date of, say, the preceding Friday?) or &amp;#39;Week Of&amp;#39; (which could show a date range from Monday to Friday, á la &amp;quot;15-19 October 2012&amp;quot;)&lt;/p&gt;
&lt;p&gt;My intention was to add a text-box next to the date-picker and add a rule / formula to populate the text box based on the date-picker value. So the user could pick a random date in the date-picker and the text-box would&amp;nbsp;populate one of the two formats described above (i.e. the date of the preceding Friday, or the dates of both the preceding Monday and Friday - whichever I can achieve!)&lt;/p&gt;
&lt;p&gt;The problem is obvious; I don&amp;#39;t know how to put such a formula together based on the pre-defined formulas that are available in the GUI (absence of &amp;#39;IF&amp;#39; or &amp;#39;WEEKDAY&amp;#39; functions, to use Excel/VBA as an equivalent) and suspect such a formula may not even be possible.&lt;/p&gt;
&lt;p&gt;So I&amp;#39;m guessing this can only be done through code, but while I could knock this up in VBA in 2 minutes, I&amp;#39;m new to coding in InfoPath (does it use C / C++?...) And also concerned about adding code-based functionality as the end-users may not have InfoPath installed and not sure if that would be a requirement in order to have this kind of code running in the background?...&lt;/p&gt;
&lt;p&gt;Thanks in advance for any pointers you can give?&lt;/p&gt;
&lt;p&gt;APMOB&lt;/p&gt;</description></item></channel></rss>