<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Manipulating Values:  Works for one, but not the other</title><link>https://www.infopathdev.com:443/forums/thread/31647.aspx</link><pubDate>Fri, 22 Aug 2008 19:26:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31647</guid><dc:creator>e_stylzz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31647.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=31647</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;What I did to fix:&lt;/p&gt;&lt;p&gt;&amp;nbsp;Since the date worked, i swapped the order in my code to do the bill rates first then the dates just for giggles.&amp;nbsp; This time it produceded an error about my tbBillRateOld being null.&amp;nbsp; I put a value the textbox and it worked.&amp;nbsp; So, i just set a default value for the textbox and all is well.&amp;nbsp; Thank you for everyone that read this and offered suggestions.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Eric &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Manipulating Values:  Works for one, but not the other</title><link>https://www.infopathdev.com:443/forums/thread/31619.aspx</link><pubDate>Thu, 21 Aug 2008 07:45:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31619</guid><dc:creator>totoen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31619.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=31619</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;You can try with this at the end of the code:&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;thisXDocument.View.ForceUpdate();&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Manipulating Values:  Works for one, but not the other</title><link>https://www.infopathdev.com:443/forums/thread/31617.aspx</link><pubDate>Thu, 21 Aug 2008 05:37:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31617</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31617.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=31617</wfw:commentRss><description>&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;Hi,&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;You can try this with rules. I think no need of code.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;Put a Rule on drop down by setting the field values.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;I hope it will work for you.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Manipulating Values:  Works for one, but not the other</title><link>https://www.infopathdev.com:443/forums/thread/31575.aspx</link><pubDate>Wed, 20 Aug 2008 14:31:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31575</guid><dc:creator>e_stylzz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31575.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=31575</wfw:commentRss><description>&lt;p&gt;I have a dropdown list, where if it changes from a specific value to another, certain things happen.&amp;nbsp; For example&lt;/p&gt;
&lt;p&gt;The StartDate value is set to the value of the EndDate and the EndDate clears.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Well, I wanted to do a similar thing with a Rate field and Old Rate field.&amp;nbsp;Code for both:&lt;/p&gt;&lt;font size="2"&gt;thisXDocument.DOM.selectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:ddlEngagementType/@my:bEngagementType&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;).text = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;true&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;thisXDocument.DOM.selectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:dpStart&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;).text = thisXDocument.DOM.selectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:dpEnd&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;).text;&lt;/p&gt;thisXDocument.DOM.selectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:dpEnd&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;).text = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;thisXDocument.DOM.selectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:tbBillRateOld&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;).text = thisXDocument.DOM.selectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:tbBillRate&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;).text;&lt;/p&gt;
&lt;p&gt;thisXDocument.DOM.selectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:myFields/my:tbBillRate&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;).text = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;The date changes work, but the rates do not.&amp;nbsp; Any ideas?&amp;nbsp;&amp;nbsp; Thanks,&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Eric&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>