<?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>Web Services</title><link>https://www.infopathdev.com:443/forums/48.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Default Value of Textbox Not Updating Database!</title><link>https://www.infopathdev.com:443/forums/thread/17809.aspx</link><pubDate>Wed, 18 Jan 2006 19:38:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17809</guid><dc:creator>Paradice29</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17809.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17809</wfw:commentRss><description>Matt,&lt;br /&gt;&lt;br /&gt;Thanks for your response.  I tried to use the Rule you suggested, but to no avail.  The name of the textbox field is "ActualQty", it has a default value of "0" generated by the database (it is not actually NULL) and my Rule looks like this:&lt;br /&gt;&lt;br /&gt;Rule 1&lt;br /&gt;&lt;br /&gt;Condition: ActualQty = 0&lt;br /&gt;&lt;br /&gt;Action:&lt;br /&gt;Set a fields value: . = OrderQty + StoreAdj + CommAdj (this is them same formula I use for the default value)&lt;br /&gt;&lt;br /&gt;When I update the order it still does not pickup the calculated values.  When I remove the Default Value calculation, it shows in the database default value of "0", instead of the calculated value I would expect from the Rule I setup.  Any clues?&lt;br /&gt;&lt;br /&gt;Thanks!</description></item><item><title>Re: Default Value of Textbox Not Updating Database!</title><link>https://www.infopathdev.com:443/forums/thread/17808.aspx</link><pubDate>Wed, 18 Jan 2006 18:03:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17808</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17808.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17808</wfw:commentRss><description>You could add a rule to the calculated field that says "if calculated field is blank calculated field = EQUATION".&lt;br /&gt;&lt;br /&gt;A way to do it with code is as follows, but I suggest sticking with the first option.&lt;br /&gt;&lt;br /&gt;You will want to roll through all of the rows of the repeating table and "touch" each node so that the value is recalculated. Check out this code (put in your onLoad):&lt;br /&gt;&lt;br /&gt;var rows =XDocument.DOM.selectNodes( "/my:myFields/my:group1/group2" );&lt;br /&gt;&lt;br /&gt;while( row = rows.nextNode() )&lt;br /&gt;{&lt;br /&gt;row.selectSingleNode( "my:value1" ).text = row.selectSingleNode( "my:value1" ).text;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;I hope this helps, let us know if there are any more questions!&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;InfoPath Dev Texas&lt;br /&gt;</description></item><item><title>Default Value of Textbox Not Updating Database!</title><link>https://www.infopathdev.com:443/forums/thread/17510.aspx</link><pubDate>Wed, 18 Jan 2006 17:47:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17510</guid><dc:creator>Paradice29</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17510.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17510</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I have an order form that pulls all of its information from a web service.  On the form I have textbox's that have calculated Default Values so that when changes are made in other textbox's the changes are recalculated.  Everything works great when you make any changes that cause the Default Value to be recalculated.  But where I am running into issues, is when there are no changes that need to be made and the Default Value is not recalculated.  The textbox I have the Default Value set is NULL in the database by default.  When I pull it into the form via the webservice, the calculated Default Value replaces the NULL value.  But if no changes are made to the form and I hit Update, the Default Value is not written to the database.  I tried to use a Rule that basically says that "Quantity = Quantity" in an effort to make it "change" the value of the textbox to the Default Value that has been calculated.  But since that textbox is in a repeating table, it just takes the value of the first row and applies it to all the rows "Quantity" textbox.  Tried to use current(), but it is not working at all.  Can someone please help!!!&lt;br /&gt;&lt;br /&gt;Thanks In Adavance!</description></item></channel></rss>