<?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: Best way to determine XPath of form element</title><link>https://www.infopathdev.com:443/forums/thread/3639.aspx</link><pubDate>Tue, 12 Dec 2006 17:43:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3639</guid><dc:creator>jkies00</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3639.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3639</wfw:commentRss><description>that was it!  I spent so much time trying to figure this out, and it was something so simple I overlooked.  Good eye, and thanks.</description></item><item><title>Re: Best way to determine XPath of form element</title><link>https://www.infopathdev.com:443/forums/thread/3638.aspx</link><pubDate>Tue, 12 Dec 2006 13:23:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3638</guid><dc:creator>Stavi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3638.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3638</wfw:commentRss><description>You started off with 1 slash each time, that web page you posted says add 2 slashes</description></item><item><title>Re: Best way to determine XPath of form element</title><link>https://www.infopathdev.com:443/forums/thread/3637.aspx</link><pubDate>Mon, 11 Dec 2006 22:00:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3637</guid><dc:creator>jkies00</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3637.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3637</wfw:commentRss><description>I have what I believe to be the correct XPath for the above image:&lt;br /&gt;&lt;br /&gt;dfs:queryFields/q:tDisc/@Name&lt;br /&gt;&lt;br /&gt;I was able to get it using a little trick shown on this blog:&lt;br /&gt;&lt;a href='http://egrigg9000.com/mtpub/archives/000064.html' target='_blank' title='http://egrigg9000.com/mtpub/archives/000064.html'&lt;a target="_blank" href=http://egrigg9000.com/mtpub/archives/000064.html&gt;http://egrigg9000.com/mtpub/archives/000064.html&lt;/a&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I still get an error in my script, and I'm not sure why:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;Object required&lt;br /&gt;File:script.js&lt;br /&gt;Line:32&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;My function is incomplete, but here is the code so far:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;function CTRL2_8::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;	// Write your code here&lt;br /&gt;	var queryInputString = XDocument.DOM.selectSingleNode("/dfs:queryFields/q:tDisc/@Name").text;&lt;br /&gt;	XDocument.UI.Alert(queryInputString);&lt;br /&gt;	&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Right now I'm just trying to get the user's input from the form, and show a pop-up window displaying that input.  I'll build a SQL statement using the input eventually, but right now I keep on getting the object required error on this line:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;XDocument.DOM.selectSingleNode("/dfs:queryFields/q:tDisc/@Name").text;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;How can I tell if the problem is with my XPath or with my script?&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Best way to determine XPath of form element</title><link>https://www.infopathdev.com:443/forums/thread/3636.aspx</link><pubDate>Mon, 11 Dec 2006 19:40:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3636</guid><dc:creator>jkies00</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3636.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3636</wfw:commentRss><description>For example, I'm trying to figure out the XPath of the Name attribute as pictured below:&lt;br /&gt;&lt;br /&gt;&lt;img src='http://addelement.com/scr-ip.jpg' border='0' /&gt;</description></item><item><title>Best way to determine XPath of form element</title><link>https://www.infopathdev.com:443/forums/thread/1720.aspx</link><pubDate>Mon, 11 Dec 2006 16:11:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1720</guid><dc:creator>jkies00</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1720.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1720</wfw:commentRss><description>Hello,&lt;br /&gt;&lt;br /&gt;What's the best way to determine the XPath of a control in a form?  I have a text field for example.  It seems to me I should be able to right-click the text field in the design view, and be able to view the XPath somewhere in the properties dialog, but this is not the case.&lt;br /&gt;&lt;br /&gt;What's the best way to determine the XPath of an element in a form?</description></item></channel></rss>