<?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: XML Datatypes</title><link>https://www.infopathdev.com:443/forums/thread/49974.aspx</link><pubDate>Wed, 16 Dec 2009 19:25:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49974</guid><dc:creator>pr0t0</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49974.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=49974</wfw:commentRss><description>&lt;p&gt;Hi Jimmy. Thanks for the help.&lt;/p&gt;
&lt;p&gt;Background: I have a drop-down (&lt;strong&gt;billToName&lt;/strong&gt;) that references the XML file for available companies. I have another drop-down (&lt;strong&gt;chargeTo&lt;/strong&gt;) that references the XML file for departments, filtered on &lt;strong&gt;billToName&lt;/strong&gt;. &lt;/p&gt;
&lt;p&gt;For the managers list, I am using the Filter Data tool for a third drop-down (&lt;strong&gt;authorizedApprover&lt;/strong&gt;). I already have an existing filter on &lt;strong&gt;authorizedApprover&lt;/strong&gt; with two criteria: value of xml element &lt;strong&gt;companyName&lt;/strong&gt; &lt;em&gt;is equal to&lt;/em&gt; Main data source &lt;strong&gt;billToName&lt;/strong&gt;; and value of xml element &lt;strong&gt;deptName&lt;/strong&gt; &lt;em&gt;is equal to&lt;/em&gt; Main data source &lt;strong&gt;chargeTo&lt;/strong&gt;. This works fine and shows me the expected list of managers for the company-&amp;gt;department. When I add the third element to the filter: and value of xml element &lt;strong&gt;Amount&lt;/strong&gt; &lt;em&gt;is less than or equal to&lt;/em&gt; Main data source &lt;strong&gt;Total&lt;/strong&gt;, the drop-list fails to populate. &lt;strong&gt;Total&lt;/strong&gt; is a double data type.&lt;/p&gt;
&lt;p&gt;Does that make sense?&lt;/p&gt;</description></item><item><title>Re: XML Datatypes</title><link>https://www.infopathdev.com:443/forums/thread/49957.aspx</link><pubDate>Wed, 16 Dec 2009 13:13:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49957</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49957.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=49957</wfw:commentRss><description>&lt;p&gt;The XML data types in your schema aren&amp;#39;t relevant as far as XPath goes.&amp;nbsp; XPath doesn&amp;#39;t care if your data is an int, string, or floating point value as long as you use syntax that deals with numbers.&amp;nbsp; You can explicitly cast a value to a number by using the number() function if you need to, but it sounds like your problem here might be a rounding issue.&amp;nbsp; Could you give a bit more detail on exactly the type of logic you&amp;#39;re using to decide which managers to list?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>XML Datatypes</title><link>https://www.infopathdev.com:443/forums/thread/49948.aspx</link><pubDate>Tue, 15 Dec 2009 21:52:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49948</guid><dc:creator>pr0t0</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49948.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=49948</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m creating a purchase order form and reading in an XML file specifying various companies, departments, managers, and amounts each manager can approve. It&amp;#39;s the last part that&amp;#39;s giving me trouble. I have a child element called &amp;#39;Amount&amp;#39; that I&amp;#39;d like to compare to the total on the PO. I would then use this comparison to populate a drop-down list of managers capable of approving the PO for that amount. Currently, if I remove the part of the filter that makes this comparison, I get the expected results: the appropriate managers for the department. However if I add that filter, nothing populates in the drop-down. I&amp;#39;m working on the basis that this is caused by the comparison never evaluating to true due to a datatype conflict.&lt;/p&gt;
&lt;p&gt;Should I code my XML in such a way&amp;nbsp;as to specify a certain element as a double datatype? I&amp;#39;ve&amp;nbsp;played around with&amp;nbsp;a couple of inline methods like: &amp;lt;element type=&amp;quot;xsd:double&amp;quot;&amp;gt;amount&amp;lt;/element&amp;gt;; or &amp;lt;element value=&amp;quot;amount&amp;quot; type=&amp;quot;xsd:int&amp;quot;/&amp;gt; Although I&amp;#39;m assuming the quotes define the element as a string.&lt;/p&gt;
&lt;p&gt;This is my first foray into creating xml files and using them as data sources in SharePoint. Any help/pointers would be greatly appreciated.&lt;/p&gt;</description></item></channel></rss>