<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: debugging a complicated form &amp; daylight savings calculuations</title><link>https://www.infopathdev.com:443/forums/thread/69779.aspx</link><pubDate>Mon, 29 Aug 2011 19:54:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69779</guid><dc:creator>pyrocam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69779.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=69779</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;if its an internal only form, and the location information is published in your AD, you could use the sharepoint AD lookup to get the users region. then change your code to suit per region. doing your own verification if you have to.&lt;/p&gt;&lt;p&gt;if you have many different locations that might be alot of work though. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;OR, drop that verification out completely, &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: debugging a complicated form &amp; daylight savings calculuations</title><link>https://www.infopathdev.com:443/forums/thread/69768.aspx</link><pubDate>Mon, 29 Aug 2011 17:29:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69768</guid><dc:creator>nithra</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69768.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=69768</wfw:commentRss><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I am working in Sharepoint application which is using Infopath forms.I have few date fields in Infopath form.Since the server located in U.S and this application was accessed by users who are in different work location in world , when comparing date it fails.&lt;br /&gt;Example:-&lt;br /&gt;If a user is in Austrailia and they are attempting to put in &amp;quot;today&amp;#39;s&amp;quot; date (8/19/2011) which according to the server in U.S is greater than the system(Server) date in U.S (8/18/2011), the date validation is failing.&lt;br /&gt;We are currently using data validation formula today() in date field which is getting server machine time.To get the client machine time ,I used Javascipt code in formserver.aspx where able to get the client machine time but not able to bring into Infopath form.Please give some inputs. &lt;/p&gt;</description></item><item><title>Re: debugging a complicated form &amp; daylight savings calculuations</title><link>https://www.infopathdev.com:443/forums/thread/66595.aspx</link><pubDate>Mon, 16 May 2011 20:20:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66595</guid><dc:creator>pyrocam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66595.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=66595</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Hillary, thanks for your response.&lt;/p&gt;&lt;p&gt;Yes I think one of those would suit nicely for anyone else trying to do this, I wish I had seen that before starting this feature :)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have ended up using a workaround (creating an entry in the db called &amp;lt;--- choose region ---&amp;gt; ) since I already have spent too many hours getting this working, trying to start over with a new data source may be too timeconsuming for this project.&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;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: debugging a complicated form &amp; daylight savings calculuations</title><link>https://www.infopathdev.com:443/forums/thread/66575.aspx</link><pubDate>Mon, 16 May 2011 17:19:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66575</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66575.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=66575</wfw:commentRss><description>&lt;p&gt;Hi:&lt;/p&gt;
&lt;p&gt;Is there any chance an existing web service could suit your needs? Here&amp;#39;s a &lt;a href="http://stackoverflow.com/questions/55901/web-service-current-time-zone-for-a-city"&gt;StackOverflow&lt;/a&gt; question that mentions some that may be worth trying.... I wouldn&amp;#39;t want to have to maintain this kind of thing myself when there are other options....&lt;/p&gt;</description></item><item><title>debugging a complicated form &amp; daylight savings calculuations</title><link>https://www.infopathdev.com:443/forums/thread/66381.aspx</link><pubDate>Sun, 08 May 2011 21:54:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66381</guid><dc:creator>pyrocam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66381.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=66381</wfw:commentRss><description>&lt;p&gt;Hi guys, I have a rather complicated web based change control form, that allows you to pick a region, and the form will automatically put that regions current timezone in.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;img src="http://www.pyrocam.com/filez/go/tzipf1.jpg" title="change control form" alt="change control form" width="462" height="147" /&gt;&lt;/p&gt;&lt;p&gt;In the above image, there is a dropdown box (populated by a list in sharepoint) that allows you to pick a region, when the region changes, it looks at another list (below) that stores the daylight savings dates for the next 5 years&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;img src="http://www.pyrocam.com/filez/go/tzipf2.jpg" title="example of daylight savings times" alt="example of daylight savings times" width="516" height="444" /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Then, I populate some hidden textboxes with these dates, and workout if today falls between them, if so it checks the checkbox next to it (in this example, I am using UK as the region, so you can see that we are in DST&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;img src="http://www.pyrocam.com/filez/go/tzipf3.jpg" title="timezone worker" alt="timezone worker" width="916" height="224" /&gt;&lt;/p&gt;&lt;p&gt;the&amp;nbsp; rules work like so:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;img src="http://www.pyrocam.com/filez/go/tzipf4.jpg" title="rules" alt="rules" width="753" height="317" /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;First five rules will set the checkbox if today is between the two dates&lt;/p&gt;&lt;p&gt;the 6th and 7th rules &amp;#39;sum&amp;#39; the checkboxes, IE, if any of the checkboxes are checked, then a &amp;#39;total&amp;#39; checkbox called &amp;#39;IN_DST&amp;#39; is checked, if none are checked its not checked&lt;/p&gt;&lt;p&gt;8 and 9 will do a lookup on the list again, if in DST is true then set the timezone to whatever the list says the timezone should be if in DST, OR if IN_DST is false, then do the opposite.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This is the Logic Inspector of the above explanation:&lt;/p&gt;&lt;p&gt;&lt;img src="http://www.pyrocam.com/filez/go/tzipf5.jpg" alt="" /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;OK, so my first question is, is there a better way to do this? this feels like the most backwards way to figure out the current timezone of a region&lt;br /&gt;&lt;/p&gt;&lt;p&gt;My second question, if this is the only way to do this with what I have available; how can I debug this further? at the moment there is a problem whereby if I set the region to a non-existing selection from the drop down (eg blank or a &amp;lt;-- please pick your region --&amp;gt; option )&amp;nbsp; then pick a real region, it will set the IN_DST checkbox to true regardless of any of the other checkboxes being checked, what I am having trouble with is diagnosing where the problem lies, I want a console or something I can step-through the form while it runs.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks in advance&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></item></channel></rss>