<?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: Stored Proc Button</title><link>https://www.infopathdev.com:443/forums/thread/82306.aspx</link><pubDate>Wed, 05 Sep 2012 00:49:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82306</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82306.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=82306</wfw:commentRss><description>&lt;p&gt;Hi - I think in IP 2007 we could still use script. Sorry, I&amp;#39;ve not got my IP 2007 VM open. &lt;/p&gt;
&lt;p&gt;At any rate, I was going to suggest &lt;a href="http://msdn.microsoft.com/en-us/library/aa216945(v=sql.80).aspx"&gt;SQL Analyzer&lt;/a&gt; to see what SQL your form is actually sending to the DB....also, you can run your script in &lt;a href="http://support.microsoft.com/kb/827002"&gt;debug&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Re: Stored Proc Button</title><link>https://www.infopathdev.com:443/forums/thread/82275.aspx</link><pubDate>Tue, 04 Sep 2012 11:31:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82275</guid><dc:creator>Mikeman550</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82275.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=82275</wfw:commentRss><description>&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;I’m a newbee here and not in a position to correct anyone,
but the Fetchformula stored Proc works with this script in 2007. If what you
say is true then I’ll try some VB.&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;I would still welcome any suggestions&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;</description></item><item><title>Re: Stored Proc Button</title><link>https://www.infopathdev.com:443/forums/thread/82265.aspx</link><pubDate>Tue, 04 Sep 2012 03:20:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82265</guid><dc:creator>Gennady Vanin (Геннадий Ванин, Новосибирск)</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82265.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=82265</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;IMO, correct me if I am wrong, JScript of Infopath 2003 (that you cited) is not supported in Infopath 2007/2010.&lt;/p&gt;&lt;p&gt;You should re-write it in C# or VB.NET &lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Stored Proc Button</title><link>https://www.infopathdev.com:443/forums/thread/82210.aspx</link><pubDate>Fri, 31 Aug 2012 14:23:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82210</guid><dc:creator>Mikeman550</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82210.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=82210</wfw:commentRss><description>&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;I have recently upgraded a working system from Windows XP
and Office 2003 to a Windows 7 and office 2007.&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;I have two buttons that call stored procedures in SQL
“Copyinsert” which is essentially a save as routine and a “Findformula” which
will locate a given formula.&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;“Findformula” works
wonderfully&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;“Copyinsert” Does not work&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;I can trigger the “Copyinsert” stored proc from other means
and it works fine, but I cannot get it to work from Infopath&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Times New Roman"&gt;

Button Code:&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;XDocument.DOM.setProperty(&amp;quot;SelectionNamespaces&amp;quot;,
&amp;#39;xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot;
xmlns:q=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/ado/queryFields&amp;quot;
xmlns:d=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/ado/dataFields&amp;quot;
xmlns:dfs=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/dataFormSolution&amp;quot;
xmlns:my=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-06-08T14:01:43&amp;quot;
xmlns:xd=&amp;quot;http://schemas.microsoft.com/office/infopath/2003&amp;quot;&amp;#39;); //
&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;function CopyInsert::OnClick(eventObj) &lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;{&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;var RecipeNew =
XDocument.DOM.selectSingleNode(&amp;quot;/dfs:myFields/dfs:dataFields/d:Formulas/@FormulaNumber&amp;quot;).text;
&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;var RecipetoCopy =
XDocument.DOM.selectSingleNode(&amp;quot;/dfs:myFields/dfs:queryFields/q:Formulas/@FormulaNumber&amp;quot;).text;
&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;XDocument.QueryAdapter.Command = &amp;quot;CopyInsert &amp;quot; +
&amp;quot;&amp;#39;&amp;quot; + RecipetoCopy +
&amp;quot;&amp;#39;,&amp;quot;+&amp;quot;&amp;#39;&amp;quot;+RecipeNew+&amp;quot;&amp;#39;&amp;quot;;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;XDocument.Query(); }&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;function
FindFormula::OnClick(eventObj)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;{&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;var Formula =
XDocument.DOM.selectSingleNode(&amp;quot;/dfs:myFields/dfs:queryFields/q:Formulas/@FormulaNumber&amp;quot;).text;
&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;XDocument.QueryAdapter.Command = &amp;quot;QueryFormula &amp;quot; +
&amp;quot;&amp;#39;&amp;quot; + Formula+&amp;quot;&amp;#39;&amp;quot;; &lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;XDocument.Query(); }&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

Please help!!&lt;/font&gt;</description></item></channel></rss>