<?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: How do I access a textbox value using VBScript</title><link>https://www.infopathdev.com:443/forums/thread/45330.aspx</link><pubDate>Mon, 03 Aug 2009 15:39:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:45330</guid><dc:creator>HikerSkier</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/45330.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=45330</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m making progress. I used VBScript to redirect the InfoPath form to a different SharePoint Document Library. See below.&lt;/p&gt;
&lt;p&gt;strURL = XDocument.DOM.SelectSingleNode(//my:myFields/my:group1/my:strURL&amp;quot;).text&amp;nbsp;&lt;/p&gt;
&lt;p&gt;set myAdapter = XDocument.DataAdpaters(&amp;quot;Adapter Name&amp;quot;)&lt;/p&gt;
&lt;p&gt;myAdapter.&amp;nbsp;FolderURL = strURL&lt;/p&gt;
&lt;p&gt;myAdapter.Submit&lt;/p&gt;
&lt;p&gt;Is there any way to update the Folder URL for the form in the&amp;nbsp;manifest.xsf&amp;nbsp;so we don&amp;#39;t have to enter a new URL in a text box eachtime when promoting the form from say, Dev to QA, or QA to Prod.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How do I access a textbox value using VBScript</title><link>https://www.infopathdev.com:443/forums/thread/44911.aspx</link><pubDate>Fri, 24 Jul 2009 14:25:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44911</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44911.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=44911</wfw:commentRss><description>&lt;p&gt;We use &lt;a href="http://www.codeproject.com/KB/files/CABCompressExtract.aspx"&gt;CabLib&lt;/a&gt; in our solutions when we need to programmatically fix up an InfoPath template.&amp;nbsp; It&amp;#39;s a free library for extracting and compressing .CAB files (.XSNs are essentially just .CABs).&lt;/p&gt;&lt;p&gt;Depending on how many of these templates you have to deal with, you may want to give CabLib a try.&amp;nbsp; Or you could take a midway approach, whereby you extract the templates manually but create a tool to fix up the manifest.xsf files (they can be processed as XML so they would be well suited for this).&lt;/p&gt;&lt;p&gt;&amp;nbsp;Best of luck in any case. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How do I access a textbox value using VBScript</title><link>https://www.infopathdev.com:443/forums/thread/44904.aspx</link><pubDate>Fri, 24 Jul 2009 12:32:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44904</guid><dc:creator>HikerSkier</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44904.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=44904</wfw:commentRss><description>&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;Hi Hilary,&lt;/font&gt;&lt;/p&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;Thank you again for your advice. We are aware that we can manually change the data connections in the manifest file. Since I’m between projects I got assigned to see if we can find a way to update all the data connections using some code. We think that the new URL’s will have to be provided by the person who created the InfoPath forms.&lt;/font&gt;&lt;/p&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;As far as we know there is nothing available from Microsoft or any 3&lt;sup&gt;rd&lt;/sup&gt; party and we have not found anything posted that will do this. So this seems to be a challenge. We considered writing a C# program and also imbedding VBScript code into the InfoPath forms. &lt;/font&gt;&lt;/p&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;I have some SharePoint and InfoPath training and&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;.NET skills but this is new to me. Since you recommended using a text editor to modify the manifest I assume your organization has not found a better solution. I am using Notepad2. It’s terrific.&lt;/font&gt;&lt;/p&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;I’m going to Baltimore SharePoint Saturday tomorrow. I’ve been advised by our management that they don’t think anyone there will be able to help but I like going to these types of events anyway.&lt;/font&gt;&lt;/p&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;Thanks again&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How do I access a textbox value using VBScript</title><link>https://www.infopathdev.com:443/forums/thread/44862.aspx</link><pubDate>Thu, 23 Jul 2009 20:00:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44862</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44862.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=44862</wfw:commentRss><description>&lt;p&gt;Do you mean for data connections in your form? You can modify that in manifest.xsf. Always save a copy of your form before saving as source files, in case you make a mistake! I actually (not that I&amp;#39;m recommending this) use find and replace to update things like this.... Open manifest.xsf in a text editor, find &amp;#39;http://myDevSharePoint/DevSite&amp;#39; and replace with &amp;#39;http://myTestSharePoint/TestSite&amp;#39;.&lt;/p&gt;</description></item><item><title>Re: How do I access a textbox value using VBScript</title><link>https://www.infopathdev.com:443/forums/thread/44857.aspx</link><pubDate>Thu, 23 Jul 2009 17:45:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44857</guid><dc:creator>HikerSkier</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44857.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=44857</wfw:commentRss><description>&lt;p&gt;Thanks Hillary; you got me by the 1st problem.&lt;/p&gt;
&lt;p&gt;I have never worked with XPath before so this is all new to me.&lt;/p&gt;
&lt;p&gt;Now the hard part. I have to figure out how to update the InfoPath manifest file to change URL&amp;#39;s so we can promote the InfoPath forms from Dev, to QA and then to Production in SharePoint. I have a few samples from a co-worker that hopefully will help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How do I access a textbox value using VBScript</title><link>https://www.infopathdev.com:443/forums/thread/44851.aspx</link><pubDate>Thu, 23 Jul 2009 16:06:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44851</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44851.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=44851</wfw:commentRss><description>&lt;p&gt;Hi--&lt;/p&gt;
&lt;p&gt;You need to use something like:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Dim answer&lt;br /&gt;Set answer = XDocument.DOM.selectSingleNode(&amp;quot;&lt;strong&gt;my:myFields/my:group1/my:MType&lt;/strong&gt;&amp;quot;).text&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;myFields.group1.MType is not XPath, which is what we use to access the data in a node. If the Xpath in quotes above is incorrect (which, since I am guessing the namespaces, it very well could be!) you&amp;#39;ll get an object required error when you try to access the text in the node.&lt;/p&gt;</description></item><item><title>How do I access a textbox value using VBScript</title><link>https://www.infopathdev.com:443/forums/thread/44838.aspx</link><pubDate>Thu, 23 Jul 2009 13:03:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44838</guid><dc:creator>HikerSkier</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44838.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=44838</wfw:commentRss><description>&lt;p&gt;This seems like a really basic thing to do but I can&amp;#39;t seem to solve it.&lt;/p&gt;
&lt;p&gt;I created an InfoPath form and added some textboxes in a section. I need to make some changes using VBScript but can&amp;#39;t figure out how to retrive or update the data in the text box. When I go into Textbox Proerties | value fx | Insert Fields my data structure looks like this: myFields.group1.MType for the 1st field. There are more fields under myFields.group1 and several other groups.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried everything I can think of to just display the data in a button click event. I entered data in MType as a test to prove I can get at the data in the text box. I&amp;#39;ve tried the following plus lots of other things and nothing works.&lt;/p&gt;
&lt;p&gt;Dim answer &lt;/p&gt;
&lt;p&gt;answer = myFields.group1.MType&lt;/p&gt;
&lt;p&gt;MsgBox(answer)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I know there must be a very simple solution. can someone help me.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>