<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: field doesnt updates with webservice data connecti</title><link>https://www.infopathdev.com:443/forums/thread/12234.aspx</link><pubDate>Mon, 03 Jul 2006 09:00:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12234</guid><dc:creator>loma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12234.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12234</wfw:commentRss><description>Yes, the problem was that the field was bound to the main datasource. Thanks a lot for your help!! &lt;br /&gt;&lt;br /&gt;Now i headed an new problem, how can i change the value in that field after i have changed the binding? My code for this is:&lt;br /&gt;&lt;br /&gt;XDocument.DOM.setProperty("SelectionNamespaces", 'xmlns:tns="http://strandinoment.com/webservices/" xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"');&lt;br /&gt;		&lt;br /&gt;var currentUserDep = XDocument.DOM.selectSingleNode("//dfs:dataFields//tns:GetMyInfoResponse//GetMyInfoResult");&lt;br /&gt;		&lt;br /&gt;var myDep = currentUserDep.text;&lt;br /&gt;if(currentUserDep.text.charAt(0) == '&amp;lt;'){		&lt;br /&gt;	var string = currentUserDep.text;&lt;br /&gt;	var start = string.indexOf("Department",0);&lt;br /&gt;	var end = string.indexOf("]",start+21);&lt;br /&gt;	myDep = string.substring(start+21,end);&lt;br /&gt;}&lt;br /&gt;else myDep = currentUserDep.text;&lt;br /&gt;currentUserDep.text = myDep;&lt;br /&gt;&lt;br /&gt;But i get the error "Object required". It seems that the code can not find the right node. Is that right? How do i solve this?</description></item><item><title>Re: field doesnt updates with webservice data connecti</title><link>https://www.infopathdev.com:443/forums/thread/12233.aspx</link><pubDate>Fri, 30 Jun 2006 18:26:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12233</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12233.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12233</wfw:commentRss><description>If the field is "bound" to the secondary data source (the web service dom) then the field should update. If, however, the field is bound to the main dom, then that is why its not being updated.</description></item><item><title>field doesnt updates with webservice data connecti</title><link>https://www.infopathdev.com:443/forums/thread/12108.aspx</link><pubDate>Fri, 30 Jun 2006 17:44:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12108</guid><dc:creator>loma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12108.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12108</wfw:commentRss><description>Hi!&lt;br /&gt;&lt;br /&gt;In my form i have a field whose default value is retrieved from a webservice. The problem is that the data from the web service is just retrieved the first time when the user creates a new form. I want it to be updated every time the form is opened and has therefor checked the "update from dataconnection every time form is opened"-box when i created the data connection to the webservice. Does anyone know why the field doesnt get updated?</description></item></channel></rss>