<?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: Calling a Function in JScript on an InfoPath form</title><link>https://www.infopathdev.com:443/forums/thread/25217.aspx</link><pubDate>Wed, 19 Dec 2007 17:39:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25217</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25217.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=25217</wfw:commentRss><description>&lt;p&gt;Great! Glad to have helped.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t recall where I picked up that little tidbit, but it&amp;#39;s a great one to have in your arsenal.&lt;/p&gt;</description></item><item><title>Re: Calling a Function in JScript on an InfoPath form</title><link>https://www.infopathdev.com:443/forums/thread/25192.aspx</link><pubDate>Wed, 19 Dec 2007 13:31:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25192</guid><dc:creator>m181354</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25192.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=25192</wfw:commentRss><description>&lt;p&gt;This worked great.&amp;nbsp; Thanks!&lt;/p&gt;</description></item><item><title>Re: Calling a Function in JScript on an InfoPath form</title><link>https://www.infopathdev.com:443/forums/thread/25111.aspx</link><pubDate>Thu, 13 Dec 2007 18:08:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25111</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25111.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=25111</wfw:commentRss><description>&lt;p&gt;JScript has a sneaky way of doing this that is not commonly known--and something you would certainly never think of on your own...&lt;/p&gt;
&lt;p&gt;&lt;u&gt;&lt;strong&gt;myFunctionAccessName =&lt;/strong&gt;&lt;/u&gt; function btnOBSRollUpQuery::OnClick(eventObj) &lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; code&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;var queryCheck = XDocument.DOM.selectSingleNode(&amp;quot;/dfs:myFields/my:FormData/my:QUERY_CHECK&amp;quot;).text; &lt;br /&gt;if (queryCheck == &amp;quot;OBSRollUp&amp;quot;)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;u&gt;&lt;strong&gt;myFunctionAccessName(null);&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;}&amp;nbsp;&lt;/p&gt;</description></item><item><title>Calling a Function in JScript on an InfoPath form</title><link>https://www.infopathdev.com:443/forums/thread/25104.aspx</link><pubDate>Thu, 13 Dec 2007 16:51:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25104</guid><dc:creator>m181354</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25104.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=25104</wfw:commentRss><description>&lt;p&gt;I want to call a function that I created in an InfoPath form&amp;nbsp;using JScript. &lt;/p&gt;
&lt;p&gt;My function is...&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;function btnOBSRollUpQuery::OnClick(eventObj) &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp; code&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I am calling my function with this code but it is nor working..Do you know why? I am calling this from Form Code behind a Submit button. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;var queryCheck = XDocument.DOM.selectSingleNode(&amp;quot;/dfs:myFields/my:FormData/my:QUERY_CHECK&amp;quot;).text; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;if (queryCheck == &amp;quot;OBSRollUp&amp;quot;)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp; btnOBSRollUpQuery();&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;}&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>