<?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: Auto fill text box from secondary Sybase datasource</title><link>https://www.infopathdev.com:443/forums/thread/30011.aspx</link><pubDate>Tue, 01 Jul 2008 23:46:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30011</guid><dc:creator>exster</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30011.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=30011</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I had already setup ODBC with sybase and connected that way.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Your suggestion had worked!&amp;nbsp; The data I was searching for had some leading/trailing spaces.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I had to use the &amp;quot;Contains&amp;quot; which I presume works like a &amp;quot; LIKE &amp;#39;%string%&amp;#39; &amp;quot;.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Works like a charm now.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks for the insight. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Auto fill text box from secondary Sybase datasource</title><link>https://www.infopathdev.com:443/forums/thread/29995.aspx</link><pubDate>Tue, 01 Jul 2008 22:02:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29995</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29995.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=29995</wfw:commentRss><description>&lt;p&gt;InfoPath cannot connect to Sybase natively.&lt;/p&gt;
&lt;p&gt;You would need to use a web service from Sybase or use SQL or Access to connect to Sybase via ODBC and then have IP connect to the MS data.&lt;/p&gt;
&lt;p&gt;You must be using code.&lt;/p&gt;
&lt;p&gt;I would try dumping / displaying the data from your secondary connection and make sure there is not some spaces padded or something that is preventing your filter to find a match.&lt;/p&gt;</description></item><item><title>Auto fill text box from secondary Sybase datasource</title><link>https://www.infopathdev.com:443/forums/thread/29977.aspx</link><pubDate>Tue, 01 Jul 2008 16:14:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29977</guid><dc:creator>exster</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29977.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=29977</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve been trying to auto fill a text box.&lt;/p&gt;
&lt;p&gt;I have a form with the userid and email text boxes.&amp;nbsp; I want to be able to have the user enter in the userid text box and auto fill the email text box by querying into a secondary source (Sybase Database).&lt;/p&gt;
&lt;p&gt;I have been reading the forums and doing the following:&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp; Double click the email address text box and click on the formula button next to the Value box in &amp;quot;Default Value&amp;quot;&lt;/p&gt;
&lt;p&gt;2. Click on &amp;quot;Insert Field or Group&amp;quot; and select the Email field from my secondary source&lt;/p&gt;
&lt;p&gt;3. Click on &amp;quot;Filter Data ...&amp;quot; and click on &amp;quot;Select a Field or Group&amp;quot; and select the userid from my Main datasource (form)&lt;/p&gt;
&lt;p&gt;4.&amp;nbsp; The condition is &amp;quot;is equal to&amp;quot;&lt;/p&gt;
&lt;p&gt;5.&amp;nbsp; The 3rd value is the &amp;quot;UserId&amp;quot; in the Sybase secondary connection&lt;/p&gt;
&lt;p&gt;6.&amp;nbsp; Click on OK about 5 times.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to think of it via SQL but it&amp;#39;s not working.&amp;nbsp; Not sure if this can be done.&lt;/p&gt;
&lt;p&gt;update form.email from secondaryconnection.user_tbl where form.userId = secondaryconnection.userid&lt;/p&gt;
&lt;p&gt;The strange thing is that if I do not use a filter, it will auto fill the email text box with the first record.&lt;/p&gt;
&lt;p&gt;Can someone please help?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item></channel></rss>