<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Query Logic Question - Change entered data, then query with that as a parameter</title><link>https://www.infopathdev.com:443/forums/thread/88883.aspx</link><pubDate>Thu, 11 Apr 2013 18:50:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88883</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88883.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=88883</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;You probably could have done this with rules - one option is matches pattern / doesn&amp;#39;t match patter and you can a regex to see if the field matches a certain pattern as a condition for rules.&lt;/p&gt;</description></item><item><title>Re: Query Logic Question - Change entered data, then query with that as a parameter</title><link>https://www.infopathdev.com:443/forums/thread/88877.aspx</link><pubDate>Thu, 11 Apr 2013 18:14:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88877</guid><dc:creator>RobSil1976</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88877.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=88877</wfw:commentRss><description>Not sure if it is the best solution or not, but what I ended up doing is having a ChangedEvent then moving all the logic out to the CodeBehind and dealing with it there.&amp;nbsp; I query the node for it&amp;#39;s value, validate the input and query various DB connections based upon the value then set extra fields.</description></item><item><title>Query Logic Question - Change entered data, then query with that as a parameter</title><link>https://www.infopathdev.com:443/forums/thread/88833.aspx</link><pubDate>Wed, 10 Apr 2013 18:27:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88833</guid><dc:creator>RobSil1976</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88833.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=88833</wfw:commentRss><description>&lt;p&gt;Hi there,&lt;/p&gt;&lt;p&gt;I have users entering a &amp;quot;code&amp;quot; into a field.&amp;nbsp; If the code is of the format:&lt;br /&gt;###.#### (3 numbers, period, 4 numbers), then do nothing.&lt;/p&gt;&lt;p&gt;If it is 4 numbers, add &amp;quot;09&amp;quot; to end then execute my query.&lt;/p&gt;&lt;p&gt;If it is 6 numbers, immediately execute my query.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;All other values entered into the field should be invalid entries.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Anyone able to help me with this logic?&amp;nbsp; Not sure on if I use a rule on changedevent to do all of this, or?&amp;nbsp; Still wrapping my head around Infopath and not sure what best approach is.&lt;/p&gt;&lt;p&gt;Thx,&lt;/p&gt;&lt;p&gt;Robin&lt;/p&gt;</description></item></channel></rss>