<?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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Infopath Book Sample page 297 - datetime format</title><link>https://www.infopathdev.com:443/forums/thread/15725.aspx</link><pubDate>Sun, 16 Apr 2006 06:54:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15725</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15725.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15725</wfw:commentRss><description>Hi Gaurs,&lt;br /&gt;I replied to your other post regarding that issue. Please don't double post. I will delete double posts.</description></item><item><title>Re: Infopath Book Sample page 297 - datetime format</title><link>https://www.infopathdev.com:443/forums/thread/15724.aspx</link><pubDate>Fri, 14 Apr 2006 11:01:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15724</guid><dc:creator>gaurs</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15724.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15724</wfw:commentRss><description>I am stuck with the same problem. I am unable to update the datetime column on my custom list using the lists web service. Did you get an answer to this? If so, can you please help? Thanks.</description></item><item><title>Re: Infopath Book Sample page 297 - datetime format</title><link>https://www.infopathdev.com:443/forums/thread/15723.aspx</link><pubDate>Thu, 15 Sep 2005 05:45:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15723</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15723.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15723</wfw:commentRss><description>Hi Craig,&lt;br /&gt;I'm wondering if it isn't because he date time is different between the SQL datatypes in SharePoint and the XSD datatypes in InfoPath. I would think string would work but may require special formatting. You may look at the date time format generated when you add a task directly to SQL and see if you can do the same. I'm sure someone else - like Matthew Blain, who wrote the chapter - would have more info, but he's hard to contact ever since he went to work for Google. &lt;br /&gt;&lt;br /&gt;Anyway, please investigate a little more and if you still are stuck, I'll ask my SharePoint stud developer to take a look at it.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Infopath Book Sample page 297 - datetime format</title><link>https://www.infopathdev.com:443/forums/thread/15722.aspx</link><pubDate>Tue, 13 Sep 2005 22:16:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15722</guid><dc:creator>cafearizona</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15722.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15722</wfw:commentRss><description>Thanks Patrick.&lt;br /&gt;&lt;br /&gt;Actually, the code I am working with is on page 296 and I have modified it as shown below.  I pass the body as a string....and then I added &lt;br /&gt;" &amp;lt;Field Type='DateTime' Name='StartDate'&amp;gt;" + returndate + "&amp;lt;/Field&amp;gt;" _&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I wanted to put a datetime field in the default task list - in addition to the title and body.  I tried it as a string ( s) without the type='DateTime' - either way fails.  If I take that line out of the code block the record will post to the task list.  &lt;br /&gt;&lt;br /&gt;So I guess I'm saying I'm stuck on putting a valid datetime field into the xml that I want to shove back to the web service to update the task list.  Does that make sense?  If so...how do you recommend I pass back a datetime to the default wss task list?  Thanks.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; 'return id of task or 0 for failure&lt;br /&gt;        Public Function CreateTask(ByVal strTitle As String, ByVal strBody As String) As Integer&lt;br /&gt;            Dim listName As String&lt;br /&gt;            Dim listsservice As lists.Lists&lt;br /&gt;            Dim node As XmlDocument&lt;br /&gt;            Dim res As XmlNode&lt;br /&gt;            Dim resultError As XmlNode&lt;br /&gt;            Dim resultId As XmlNode&lt;br /&gt;            'Create a var. named rightNow and set it to the current date/time&lt;br /&gt;            Dim rightNow As DateTime = DateTime.UtcNow&lt;br /&gt;            Dim s As String 'create a string&lt;br /&gt;            s = rightNow.ToString&lt;br /&gt;            thisXDocument.UI.Alert(s)&lt;br /&gt;            ' ListName is the GUID for your tasks list&lt;br /&gt;            ' You can get the ListGuid by viewing the web address URL in&lt;br /&gt;            ' Modify setting and colums or by adding the list toyour&lt;br /&gt;            ' form (receive from a sharepoint list) and viewing the manifest&lt;br /&gt;            ' list GUID for task list @ portal.cafearizona.com&lt;br /&gt;            listName = "{4933D782-1775-4B44-8375-5E8FA05219EF}"&lt;br /&gt;            '            listName = "{7AA664AA-2F14-4D0D-98C4-7FA61B8673EE}"&lt;br /&gt;&lt;br /&gt;            listsservice = New lists.Lists&lt;br /&gt;            listsservice.Credentials = System.Net.CredentialCache.DefaultCredentials&lt;br /&gt;&lt;br /&gt;            node = New XmlDocument&lt;br /&gt;&lt;br /&gt;            node.LoadXml("" _&lt;br /&gt;            + "&amp;lt;Batch OnError='Continue' ListVersion='1' xmlns=''&amp;gt;" _&lt;br /&gt;            + " &amp;lt;Method ID='1' Cmd='New'&amp;gt;" _&lt;br /&gt;            + " &amp;lt;Field Name='Title'&amp;gt;" + strTitle + "&amp;lt;/Field&amp;gt;" _&lt;br /&gt;            + " &amp;lt;Field Name='Body'&amp;gt;" + strBody + "&amp;lt;/Field&amp;gt;" _&lt;br /&gt;            + " &amp;lt;Field Type='DateTime' Name='StartDate'&amp;gt;" + s + "&amp;lt;/Field&amp;gt;" _&lt;br /&gt;            + " &amp;lt;/Method&amp;gt;" _&lt;br /&gt;            + "&amp;lt;/Batch&amp;gt;")&lt;br /&gt;            'thisXDocument.UI.Alert("here is the stuff " + strTitle + strBody)&lt;br /&gt;            ' call the web service&lt;br /&gt;            'thisXDocument.UI.Alert(Environment.UserName)&lt;br /&gt;            res = listsservice.UpdateListItems(listName, node)&lt;br /&gt;            'thisXDocument.UI.Alert("finished calling the listservices")&lt;br /&gt;            'Parse the results&lt;br /&gt;            Dim nsmgr As XmlNamespaceManager&lt;br /&gt;            nsmgr = New XmlNamespaceManager(res.OwnerDocument.NameTable)&lt;br /&gt;            nsmgr.AddNamespace("s", "http://schemas.microsoft.com/sharepoint/soap/")&lt;br /&gt;            nsmgr.AddNamespace("z", "#RowsetSchema")&lt;br /&gt;            'look for the result of ID "1,NEW", matching id="1" and cmd="New above&lt;br /&gt;            resultError = res.SelectSingleNode("s:Result[@ID='1,New']/s:ErrorCode", nsmgr)&lt;br /&gt;&lt;br /&gt;            If (resultError Is Nothing Or Convert.ToInt32(resultError.InnerText, 16) &amp;lt;&amp;gt; 0) Then&lt;br /&gt;                Return 0&lt;br /&gt;            End If&lt;br /&gt;           &lt;br /&gt;            resultId = res.SelectSingleNode("s:Result[@ID=""1,New""]/z:row/@ows_ID", _&lt;br /&gt;            nsmgr)&lt;br /&gt;            &lt;br /&gt;            Return Integer.Parse(resultId.InnerText)&lt;br /&gt;</description></item><item><title>Re: Infopath Book Sample page 297 - datetime format</title><link>https://www.infopathdev.com:443/forums/thread/15721.aspx</link><pubDate>Tue, 13 Sep 2005 21:57:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15721</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15721.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15721</wfw:commentRss><description>Hi Craig,&lt;br /&gt;Thanks for the context. On page 297, there are the following lines of code:&lt;br /&gt;    Dim nsmgr As XmlNamespaceManager&lt;br /&gt;    nsmgr = new XmlNamespaceManager(res.OwnerDocument.NameTable)&lt;br /&gt;    nsmgr.AddNamespace("s", "http://schemas.microsoft.com/sharepoint/soap/")&lt;br /&gt;    nsmgr.AddNamespace("z", "#RowsetSchema")&lt;br /&gt;&lt;br /&gt;You can find documentation on AddNamespace by looking in help documents for VB.NET or on the MSDN website. Just search for XmlNamespaceManager. There should be a method for AddNamespace. &lt;br /&gt;&lt;br /&gt;What else?&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Infopath Book Sample page 297 - datetime format</title><link>https://www.infopathdev.com:443/forums/thread/15720.aspx</link><pubDate>Tue, 13 Sep 2005 21:18:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15720</guid><dc:creator>cafearizona</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15720.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15720</wfw:commentRss><description>Patrick, I'm still working the example you have on page 297 of the book you co-authored.  I'm having a bit of a struggle passing a datetime to the sample task list....I have the other part of your sample working fine.&lt;br /&gt;What is the trick to getting a value back to the "startdate" field in the task list?  with vb.net.......Thanks....Craig&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Infopath Book Sample page 297 - datetime format</title><link>https://www.infopathdev.com:443/forums/thread/15719.aspx</link><pubDate>Tue, 13 Sep 2005 08:31:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15719</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15719.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15719</wfw:commentRss><description>Hi Cafe Arizona and welcome to our forum,&lt;br /&gt;I'm glad to hear that you solved the problem. Documentation for xxx.namespace? I have no clue. Did you check Google? You can search both our forum and our website for namespace and fine a bunch of stuff. In addition, please take a look at the InfoPath SDK. My guess, however, is that Google will help the most.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Infopath Book Sample page 297 - datetime format</title><link>https://www.infopathdev.com:443/forums/thread/15718.aspx</link><pubDate>Tue, 13 Sep 2005 02:51:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15718</guid><dc:creator>cafearizona</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15718.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15718</wfw:commentRss><description>My mistake.  ""1.New"" is not the same as ""1,New"".  I apologize to the members of the forum for a dumb question.  Thought I had looked that over many - many times in the past 36 hours.&lt;br /&gt;&lt;br /&gt;BTW....were do I find documentation of xxx.namespace("z, "#RowsetSchema")?&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Infopath Book Sample page 297 - datetime format</title><link>https://www.infopathdev.com:443/forums/thread/15279.aspx</link><pubDate>Mon, 12 Sep 2005 18:48:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15279</guid><dc:creator>cafearizona</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15279.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15279</wfw:commentRss><description>Okay....I have found a format for a datetime constant that seems to work with my web services and display correrctly with the out - of - box wss views.&lt;br /&gt;&lt;br /&gt;For example..if I set my string to "2004-11-09T13:30:00.0000000-00:00" and use this code to update list via web service....I like the results.  Now I want to use the same format in the "events" wss list and see if it will take the string.&lt;br /&gt;&lt;br /&gt;node.LoadXml("" _&lt;br /&gt;            + "&amp;lt;Batch OnError='Continue' ListVersion='1' xmlns=''&amp;gt;" _&lt;br /&gt;            + " &amp;lt;Method ID='1' Cmd='New'&amp;gt;" _&lt;br /&gt;            + " &amp;lt;Field Name='Title'&amp;gt;" + strTitle + "&amp;lt;/Field&amp;gt;" _&lt;br /&gt;            + " &amp;lt;Field Name='Body'&amp;gt;" + strBody + "&amp;lt;/Field&amp;gt;" _&lt;br /&gt;            + " &amp;lt;Field type='DateTime' Name='StartDate'&amp;gt;" + "2004-11-09T13:30:00.0000000-00:00" + "&amp;lt;/Field&amp;gt;" _&lt;br /&gt;            + " &amp;lt;/Method&amp;gt;" _&lt;br /&gt;            + "&amp;lt;/Batch&amp;gt;")</description></item></channel></rss>