<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Code and Object Required</title><link>https://www.infopathdev.com:443/forums/thread/18181.aspx</link><pubDate>Tue, 05 Sep 2006 15:15:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18181</guid><dc:creator>mbenbow</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18181.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18181</wfw:commentRss><description>Hey,&lt;br /&gt;&lt;br /&gt;I could send you an XSN....since it is occurring on all 300 XSNs.&lt;br /&gt;&lt;br /&gt;You are correct in that I have never set a namespace in code.  I am doing all the programming via the script.vbs file that is created by InfoPath.  It is in this file that Microsoft creates the namespace and what Microsoft creates is not correct.&lt;br /&gt;&lt;br /&gt;The schemas are not created manually.</description></item><item><title>Re: Code and Object Required</title><link>https://www.infopathdev.com:443/forums/thread/18180.aspx</link><pubDate>Sat, 02 Sep 2006 07:14:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18180</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18180.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18180</wfw:commentRss><description>Hi Mary,&lt;br /&gt;&lt;br /&gt;Sorry for the delays in responding to you. I guess we need more information about your form. Can you send us the XSN? I'll ask one of our developers to look at it. My guess is that you may bot be setting the namespace in your code and that may be required. Your workarounds are probably not true workarounds. There are many threads that have sample C# code to do exactly what you are doing, so I suggest searching the forum. Lastly, your xpath does look unique. Did you create your schema manually? &lt;br /&gt;&lt;br /&gt;As for the xmlns:my namespace date postfixing, this is to store when the form (and schema) was last saved. &lt;br /&gt;&lt;br /&gt;I hope this helps. Please do not hesitate to send me e-mail with your XSN and we'll debug it for you. &lt;br /&gt;&lt;br /&gt;Cheers!</description></item><item><title>Re: Code and Object Required</title><link>https://www.infopathdev.com:443/forums/thread/18179.aspx</link><pubDate>Thu, 31 Aug 2006 14:55:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18179</guid><dc:creator>mbenbow</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18179.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18179</wfw:commentRss><description>Hey again,&lt;br /&gt;&lt;br /&gt;Since I have not heard from any one of the above issue......perhaps someone can explain to me why Microsoft is appending a namespace with a Date/Time.&lt;br /&gt;&lt;br /&gt;In April I created a form - called 4668.  At the time I created the form, the "xmlns:my" namespace was:&lt;br /&gt;xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD"&lt;br /&gt;&lt;br /&gt;In Aug, I had to revise the form.  So I took the 4668.xsn and did a Save As to name is 4668_20060802.xsn.  Sometime when I made the revisions to 4668_20060802.xsn, the "xmlns:my" changed to:&lt;br /&gt;xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-05-10T16:28:52"&lt;br /&gt;&lt;br /&gt;This namespace was actually changed in every document (xsl, xml, xsf, etc) within the XSN except for the script.vbs file.  &lt;br /&gt;&lt;br /&gt;So, at the end of this month when I needed to make a change to the form yet again and use selectSingleNode in code to reference an element in the DOM, I can to change the namespace in the script.vbs file to the following in order to reference the DOM in code:&lt;br /&gt;xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-05-10T16:28:52"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;My basic question is why is the namespace being being "redefined" and what signifigance is the date/time stamp at the end of the namespace??&lt;br /&gt;&lt;br /&gt;Mary</description></item><item><title>Re: Code and Object Required</title><link>https://www.infopathdev.com:443/forums/thread/18178.aspx</link><pubDate>Fri, 25 Aug 2006 11:26:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18178</guid><dc:creator>mbenbow</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18178.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18178</wfw:commentRss><description>Hey,&lt;br /&gt;&lt;br /&gt;My Xpath is not wrong!&lt;br /&gt;&lt;br /&gt;The code work in more than 30 forms!  And SEQNUM is always directly under the main data source.&lt;br /&gt;&lt;br /&gt;If you read my post carefully.....the issue is with the namespace and determining which namespace is incorrect.  From rules, the form has no issue with reading the values of the main datasource element.  From code (where it has a bad namespace referece), the form does not understand the datasource elements.  But once I "fix" the offending namespace, the form "all of a sudden" will accept the same XPATH statement and produce the desired result.&lt;br /&gt;&lt;br /&gt;So it is not an Xpath issue!!!!!&lt;br /&gt;&lt;br /&gt;Mary</description></item><item><title>Re: Code and Object Required</title><link>https://www.infopathdev.com:443/forums/thread/18177.aspx</link><pubDate>Fri, 25 Aug 2006 06:42:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18177</guid><dc:creator>shekar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18177.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18177</wfw:commentRss><description>Hi mary&lt;br /&gt;If your SEQNUM field is in a group(myFields) like("/my:myFields/my:SEQNUM")&lt;br /&gt;then you wrote the wrong xpath, so correct then you will get it.</description></item><item><title>Code and Object Required</title><link>https://www.infopathdev.com:443/forums/thread/18027.aspx</link><pubDate>Thu, 24 Aug 2006 15:52:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18027</guid><dc:creator>mbenbow</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18027.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18027</wfw:commentRss><description>Hey,&lt;br /&gt;&lt;br /&gt;This has been driving me nuts for some time.  And, after examining each file within the XSN, I can fix the problem but the "fix" is not always the same.  I am hoping that one of you can shed some light as to why I am having to do the following....&lt;br /&gt;&lt;br /&gt;Background Information:&lt;br /&gt;InfoPath 2003 - SP2; script language = VBScript&lt;br /&gt;&lt;br /&gt;In all 300+ forms, we have script that overrides the save routine in InfoPath.  I never run into a problem with this code or using the eventObj.&lt;br /&gt;&lt;br /&gt;However, there are times when I need to revise forms and access the data elements within the DOM.  If the elements of the DOM have not been accessed before in code, 80% of the time when I access a field in code (even though the XPath is 100% correct) I get the error in script that Object is Required.&lt;br /&gt;&lt;br /&gt;'Populate Seq. No. field if empty&lt;br /&gt;	Dim oSeq&lt;br /&gt;	Set oSeq = XDocument.DOM.selectSingleNode("//my:SEQNUM")&lt;br /&gt;	If oSeq.text = "" Then&lt;br /&gt;		'do something&lt;br /&gt;	End If&lt;br /&gt;&lt;br /&gt;It always fails on the Set oSeq line........&lt;br /&gt;&lt;br /&gt;Here is what I have discovered are the possible "fixes"&lt;br /&gt;1) In the scrip.vbs file ensure that the '&amp;lt;namespacesDefinition&amp;gt; has the following namespace (xmlns:od=""urn:schemas-microsoft-com:officedata"").  This is missing in 20% of the cases&lt;br /&gt;&lt;br /&gt;2) In the scrip.vbs file ensure that the '&amp;lt;namespacesDefinition&amp;gt; has the namespace xmlns:my as the one listed in Designer under File/Form Properties/FormID.  In 80% of the cases, the namespace "xmlns:my" does not equal the FormID namespace - actually it is missing some of the namespace.&lt;br /&gt;&lt;br /&gt;For instance:  &lt;br /&gt;&lt;br /&gt;The script file will state&lt;br /&gt;xmlns:my=""http://schemas.microsoft.com/office/infopath/2003/myXSD""&lt;br /&gt;&lt;br /&gt;When it needs to be:&lt;br /&gt;xmlns:my=""http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-05-10T16:28:52""&lt;br /&gt;&lt;br /&gt;3)  There has been one instance when the namespace for my in the manifest did not match up with the same namespace in schema (date and/or time were different).&lt;br /&gt;&lt;br /&gt;Is this a bug?  Or do I merely need to keep a crib sheet on how to apply the "fix" in order for the code to recognize the elements in the DOM??&lt;br /&gt;&lt;br /&gt;Why isn't InfoPath synching the information when you "extract" the files?&lt;br /&gt;&lt;br /&gt;Am I the only one that has this issue?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Mary</description></item></channel></rss>