<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Validation Problems - Bug??</title><link>https://www.infopathdev.com:443/forums/thread/18159.aspx</link><pubDate>Tue, 13 Jun 2006 19:38:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18159</guid><dc:creator>demian42</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18159.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18159</wfw:commentRss><description>it is a DB Connection, but I filter data in numerous places (to set fields values for instance) and have no issues whatsoever.  I ended up changing the database structure so that the validation is based on one field only - I needed to finish lol.&lt;br /&gt;&lt;br /&gt;I absolutely love this application and have developed many useful forms ... but I would be soooo much happier if they allowed  ...&lt;br /&gt;&lt;br /&gt;&lt;b&gt;unbound controls&lt;/b&gt;, i.e. combo boxes &amp; such, where selections trigger events and data could be used without having to have that field in the database.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Validation Problems - Bug??</title><link>https://www.infopathdev.com:443/forums/thread/18158.aspx</link><pubDate>Thu, 08 Jun 2006 15:49:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18158</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18158.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18158</wfw:commentRss><description>Is the CostCodeDropDown a DB connection? I know I have had trouble in the past with the DB putting an extra whitespace character at the end of a column and making that fail string comparison. To solve this, I used the normalize-space() method.&lt;br /&gt;&lt;br /&gt;I hope this helps, it sounds like a frustrating bug!</description></item><item><title>Re: Validation Problems - Bug??</title><link>https://www.infopathdev.com:443/forums/thread/18157.aspx</link><pubDate>Thu, 08 Jun 2006 12:34:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18157</guid><dc:creator>demian42</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18157.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18157</wfw:commentRss><description>I tried both of them, and then one at a time.  For some reason they are always 'true'.&lt;br /&gt;&lt;br /&gt;A different attempt was to modify the data connection such that I only have one field to filter by the SQL was modified to select [Project] &amp; "-" &amp; [CostCode] AS ProjectCostCode and this was validated against this function ... concat(current()/@Project, "-", current()/@CostCode) ... failure again.&lt;br /&gt;&lt;br /&gt;Note that the concat function displays different results in a text box vs. expression box as described in my original post.&lt;br /&gt;</description></item><item><title>Re: Validation Problems - Bug??</title><link>https://www.infopathdev.com:443/forums/thread/18156.aspx</link><pubDate>Thu, 08 Jun 2006 06:37:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18156</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18156.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18156</wfw:commentRss><description>Hi demain,&lt;br /&gt;&lt;br /&gt;Can you try out with two validations same as shown below&lt;br /&gt;&lt;br /&gt;not(current()/@CostCode = xdXDocument:GetDOM("CostCodeDropDown")/dfs:myFields/dfs:dataFields/d:row/@CostCode[../@Project = current()/@Project]&lt;br /&gt; &lt;br /&gt;not(current()/@CostCode = xdXDocument:GetDOM("CostCodeDropDown")/dfs:myFields/dfs:dataFields/d:row/@CostCode[. = current()/@CostCode]) &lt;br /&gt;</description></item><item><title>Validation Problems - Bug??</title><link>https://www.infopathdev.com:443/forums/thread/18017.aspx</link><pubDate>Wed, 07 Jun 2006 12:34:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:18017</guid><dc:creator>demian42</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/18017.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=18017</wfw:commentRss><description>I was trying to validate a drop down box entry versus a secondary connection that requires 2 filters, i.e. the selected cost code must be in the validation table FOR THE SELECTED PROJECT.  The reason for the validation is that the validation table may change prior to submitting the form.  The following expression ALWAYS indicates bad data ...&lt;br /&gt;&lt;br /&gt;not(current()/@CostCode = xdXDocument:GetDOM("CostCodeDropDown")/dfs:myFields/dfs:dataFields/d:row/@CostCode[../@Project = current()/@Project and . = current()/@CostCode])&lt;br /&gt;&lt;br /&gt;In trying to troubleshoot this, I came upon this unbelievable behavoir ... if I enter that expression into an "expression box" it behaves exactly as I would expect (i.e. correctly).  If I enter the EXACT same expression as the default value of a text box, it ALWAYS indicates true.&lt;br /&gt;&lt;br /&gt;Any thoughts??</description></item></channel></rss>