<?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: Verification Condition for Querying Database</title><link>https://www.infopathdev.com:443/forums/thread/106255.aspx</link><pubDate>Tue, 19 Apr 2016 18:48:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106255</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106255.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=106255</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;This post has a code sample that shows how to execute a web service query:&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/t/10879.aspx"&gt;http://www.infopathdev.com/forums/t/10879.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;So - you can execute your query&amp;nbsp;and catch any exceptions. If&amp;nbsp;there is an exception, you&amp;nbsp;can set the query field to the user name with the other domain and try again.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Verification Condition for Querying Database</title><link>https://www.infopathdev.com:443/forums/thread/106254.aspx</link><pubDate>Tue, 19 Apr 2016 18:34:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106254</guid><dc:creator>AaronGHP</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106254.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=106254</wfw:commentRss><description>&lt;p&gt;Does anyone have ideas about code that will query with one domain, if the user is not found, then try another? &lt;/p&gt;&lt;p&gt;I was thinking a try-catch block would work but I am still waiting for VB access on my network. I have tried searching around and I can&amp;#39;t find anything similar to what I am asking.&lt;/p&gt;</description></item><item><title>Re: Verification Condition for Querying Database</title><link>https://www.infopathdev.com:443/forums/thread/106209.aspx</link><pubDate>Mon, 18 Apr 2016 12:32:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106209</guid><dc:creator>AaronGHP</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106209.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=106209</wfw:commentRss><description>&lt;p&gt;Thank you Hilary!&lt;/p&gt;&lt;p&gt;Could someone point me in the direction of&amp;nbsp; what kind of code I would need to use? Basically what I need is a way to query the database, check for an error (invalid user because of domain), if error is produced, then query with other domain. After determination of which domain is valid for the users, the rest of my rules execute.&lt;br /&gt;&lt;/p&gt;&lt;p&gt; I will request access on my network to be able to use code in InfoPath which shouldn&amp;#39;t be a problem, just may take a few days. I have experience coding in Java, but not C or VBasic. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Aaron &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Verification Condition for Querying Database</title><link>https://www.infopathdev.com:443/forums/thread/106196.aspx</link><pubDate>Fri, 15 Apr 2016 22:16:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106196</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106196.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=106196</wfw:commentRss><description>No, sorry if I was unclear. Out of the box in InfoPath, the error will display. You can add code (or use qRules) to execute the query and handle for errors that way.</description></item><item><title>Re: Verification Condition for Querying Database</title><link>https://www.infopathdev.com:443/forums/thread/106193.aspx</link><pubDate>Fri, 15 Apr 2016 21:17:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106193</guid><dc:creator>AaronGHP</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106193.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=106193</wfw:commentRss><description>Yeah, I meant the SOAP Web service. Unfortunately I only have read only access. Would there be a way to automatically close or disable the error message? I have already tried querying with the substring-after formula to just pull the user and it errors out on the ones that have a different domain. I just want to slap the people who set up AD users for not being consistent.</description></item><item><title>Re: Verification Condition for Querying Database</title><link>https://www.infopathdev.com:443/forums/thread/106191.aspx</link><pubDate>Fri, 15 Apr 2016 21:05:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106191</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106191.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=106191</wfw:commentRss><description>I don&amp;#39;t have good news - out of the box, if the query fails, InfoPath is going to return an error message to the user. Did you develop the SOAP web service (I&amp;#39;m assuming that is what you mean by SOAP database)? Maybe the web service could be modified to just take user name and not include domain? Then you could use a substring-after formula to set the web service query field to just the user name.</description></item><item><title>Verification Condition for Querying Database</title><link>https://www.infopathdev.com:443/forums/thread/106190.aspx</link><pubDate>Fri, 15 Apr 2016 20:10:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106190</guid><dc:creator>AaronGHP</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106190.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=106190</wfw:commentRss><description>&lt;p&gt;Not sure if this is possible, I do not have the option to modify code in InfoPath, but I am able to query SOAP database to get user information, which is working beautifully but for certain users it does not work. The problem that I have run into, is that some of the members of active directory have a different domain than what the people picker chooses before the query is run. &lt;/p&gt;&lt;p&gt;For example: John Smith&lt;/p&gt;&lt;p&gt;&amp;nbsp;I select John Smith on people picker and set the account name of data query field to NT-DOMAIN/jsmith (from account ID tab).&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;An error message pops up stating that the user does not exist.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I look up the user John Smith on AD and his domain is actually DOMAIN/jsmith.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Is there a way to first query with NT_DOMAIN, check to see if there would be an error, and if so, then query with DOMAIN instead? Like an If-else query with: If query data for NT_DOMAIN/jsmith does not exist, else query data for DOMAIN_jsmith. Then proceed with the rest of the rules.&lt;/p&gt;&lt;p&gt;I have tried playing around with the settings but it seems there is no way to change the action of query for data. Maybe I have been looking at it with tired eyes and there is actually a simple solution. Ideally, I do not want the user to get a pop-up if the user does not exist, instead the form is smart enough to re-query with&amp;nbsp; other domain and then continue filling out the form.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Looks like 80% of the users on AD are configured with the correct domain, but there are those few that have the other domain name.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;&lt;p&gt;Aaron &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>