<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Load Event - Generate GUID</title><link>https://www.infopathdev.com:443/forums/thread/2897.aspx</link><pubDate>Wed, 02 Aug 2006 19:10:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2897</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2897.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2897</wfw:commentRss><description>Add this line to your namespaces:&lt;br /&gt;&lt;br /&gt;xmlns:d="http://schemas.microsoft.com/office/infopath/2003/dataFields"&lt;br /&gt;&lt;br /&gt;Also, see this HowTo for more info on namespaces:&lt;a target="_blank" href=http://www.infopathdev.com/howto/tutorials/default.aspx?i=ed2cf0c5895f468995cdd081cf17fead&gt;http://www.infopathdev.com/howto/tutorials/default.aspx?i=ed2cf0c5895f468995cdd081cf17fead&lt;/a&gt;</description></item><item><title>Re: Load Event - Generate GUID</title><link>https://www.infopathdev.com:443/forums/thread/2896.aspx</link><pubDate>Wed, 02 Aug 2006 06:05:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2896</guid><dc:creator>K.Ramana Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2896.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2896</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;Check once your Xpath  &lt;br /&gt;XDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/dfs:tblCallAuditStorage/@CallAuditID") is correct?&lt;br /&gt;&lt;br /&gt;I hope this will help you.&lt;br /&gt;Thanks.</description></item><item><title>Re: Load Event - Generate GUID</title><link>https://www.infopathdev.com:443/forums/thread/2895.aspx</link><pubDate>Tue, 01 Aug 2006 17:33:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2895</guid><dc:creator>SPP_ACS</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2895.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2895</wfw:commentRss><description>K.Ramana:&lt;br /&gt;Thanks for takin a look at the code.  If I change the "d" to "dfs", I come up with the error:&lt;br /&gt;'XDocument.DOM.selectSingleNode(...)' is null or not an object.&lt;br /&gt;File:script.js&lt;br /&gt;&lt;br /&gt;If I leave it as the "d", i get this error&lt;br /&gt;Reference to undeclared namespace prefix: 'd'.&lt;br /&gt;File:script.js&lt;br /&gt;&lt;br /&gt;So, any other ideas?  Is it possible since the field is the GUID field that is submit to the database, I need a "dummy" field to gather the GUID string, then have the @CallAuditID equal that field by the click of a button?&lt;br /&gt;&lt;br /&gt;is there another way to call the field?</description></item><item><title>Re: Load Event - Generate GUID</title><link>https://www.infopathdev.com:443/forums/thread/2894.aspx</link><pubDate>Tue, 01 Aug 2006 05:24:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2894</guid><dc:creator>K.Ramana Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2894.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2894</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I think you have given incorrect prefix of field /d:tblCallAuditStorage,&lt;br /&gt;Give this /dfs:tblCallAuditStorage.&lt;br /&gt;&lt;br /&gt;I hope this will work for you.&lt;br /&gt;Thanks.</description></item><item><title>Re: Load Event - Generate GUID</title><link>https://www.infopathdev.com:443/forums/thread/2893.aspx</link><pubDate>Tue, 01 Aug 2006 04:25:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2893</guid><dc:creator>SPP_ACS</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2893.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2893</wfw:commentRss><description>Just for an update to everyone, I have fixed the undefined system error.  The following changes to the namespace:&lt;br /&gt;&lt;br /&gt;//&amp;lt;namespacesDefinition&amp;gt;&lt;br /&gt;XDocument.DOM.setProperty("SelectionNamespaces", 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:s0="urn:sap-com:document:sap:rfc:functions" xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns1="http://schemas.xmlsoap.org/wsdl/" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2004-06-03T02:08:05" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003"');&lt;br /&gt;//&amp;lt;/namespacesDefinition&amp;gt;&lt;br /&gt;&lt;br /&gt;Also, I am using the function to generate the GUID as follows by a click of a button:&lt;br /&gt;//==================&lt;br /&gt;// Magic GUID Click&lt;br /&gt;//==================&lt;br /&gt;function CTRL53_7::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;	// Create GUID in Call Audit ID Field&lt;br /&gt;	XDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/d:tblCallAuditStorage/@CallAuditID").text = System.Guid.NewGuid()&lt;br /&gt;}&lt;br /&gt;//==================&lt;br /&gt;&lt;br /&gt;Now the error is:&lt;br /&gt;    The following error occurred:&lt;br /&gt;    Reference to undeclared namespace prefix: 'd'.&lt;br /&gt;    File:script.js&lt;br /&gt;    Line:46&lt;br /&gt;    Unspecified error&lt;br /&gt;&lt;br /&gt;Line 46 is the line with the location of the field on the form to enter the GUID.  is the code wrong for that portion of the feild location?&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Paul&lt;br /&gt;</description></item><item><title>Re: Load Event - Generate GUID</title><link>https://www.infopathdev.com:443/forums/thread/2892.aspx</link><pubDate>Mon, 31 Jul 2006 22:28:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2892</guid><dc:creator>SPP_ACS</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2892.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2892</wfw:commentRss><description>Additional information on error:&lt;br /&gt;'XDocument.DOM.selectSingleNode(..)' is null or not an object.&lt;br /&gt;File:script.js&lt;br /&gt;Line:77&lt;br /&gt;&lt;br /&gt;Is there another way to generate this GUID field on load or during the submission the the SQL Server.</description></item><item><title>Re: Load Event - Generate GUID</title><link>https://www.infopathdev.com:443/forums/thread/2891.aspx</link><pubDate>Mon, 31 Jul 2006 17:38:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2891</guid><dc:creator>SPP_ACS</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2891.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2891</wfw:commentRss><description>&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by Matt Faus&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Hi Paul and welcome to the forums! I don't see anything blaringly wrong with this - what error are you getting?&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;&lt;br /&gt;&lt;br /&gt;The Error:&lt;br /&gt;XDocument.DOM.selectSingleNode( . . . ) is undefined</description></item><item><title>Re: Load Event - Generate GUID</title><link>https://www.infopathdev.com:443/forums/thread/2890.aspx</link><pubDate>Mon, 31 Jul 2006 17:34:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2890</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2890.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2890</wfw:commentRss><description>Hi Paul and welcome to the forums! I don't see anything blaringly wrong with this - what error are you getting?</description></item><item><title>Load Event - Generate GUID</title><link>https://www.infopathdev.com:443/forums/thread/1456.aspx</link><pubDate>Mon, 31 Jul 2006 15:42:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1456</guid><dc:creator>SPP_ACS</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1456.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1456</wfw:commentRss><description>I am extremely new to Infopath, but learning by making mistakes.&lt;br /&gt;&lt;br /&gt;Here is the code I have so far:&lt;br /&gt;function XDocument::OnLoad(eventObj)&lt;br /&gt;{&lt;br /&gt;XDocument.DOM.selectSingleNode("/myFields/CallAuditID").text = System.Guid.NewGuid()&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Any assitance would be great.  I have read up on the forums, but still confused.&lt;br /&gt;&lt;br /&gt;Paul</description></item></channel></rss>