<?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>Auto-populate problem when using lookup values</title><link>https://www.infopathdev.com:443/forums/thread/95310.aspx</link><pubDate>Sat, 18 Jan 2014 18:25:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95310</guid><dc:creator>york31</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95310.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=95310</wfw:commentRss><description>&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;span style="font-size:12pt;"&gt;Here is a simplified scenario to
demonstrate this problem.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;span style="font-size:12pt;"&gt;I created Sharepoint list
&amp;quot;Suppliers&amp;quot; with 2 text line fields - &lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;span style="font-size:12pt;"&gt;&amp;quot;Supplier Name&amp;quot; &lt;/span&gt;&lt;/li&gt;&lt;font size="3" face="Times New Roman"&gt;&lt;/font&gt;&lt;li style="margin:0cm 0cm 10pt;line-height:normal;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l3 level1 lfo1;tab-stops:list 36.0pt;" class="MsoNormal"&gt;&lt;span style="font-size:12pt;"&gt;&amp;quot;Contact&amp;quot;&lt;/span&gt;&lt;/li&gt;&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;&lt;/ul&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;span style="font-size:12pt;"&gt;I populated it with two records:
{&amp;quot;Supp1&amp;quot;, &amp;quot;John Doe&amp;quot;}, {Supp2&amp;quot;, &amp;quot;Jack
Ripper&amp;quot;)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;span style="font-size:12pt;"&gt;I created Sharepoint list
&amp;quot;Transactions&amp;quot; with 2 the following fields &lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;span style="font-size:12pt;"&gt;&amp;quot;Transaction&amp;quot; - text line &lt;/span&gt;&lt;/li&gt;&lt;font size="3" face="Times New Roman"&gt;&lt;/font&gt;&lt;li style="margin:0cm 0cm 10pt;line-height:normal;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo2;tab-stops:list 36.0pt;" class="MsoNormal"&gt;&lt;span style="font-size:12pt;"&gt;&amp;quot;Supplier_lu&amp;quot; - lookup based on &amp;quot;Supplier Name&amp;quot; field in the &amp;quot;Suppliers&amp;quot; list&lt;/span&gt;&lt;/li&gt;&lt;li style="margin:0cm 0cm 10pt;line-height:normal;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo2;tab-stops:list 36.0pt;" class="MsoNormal"&gt;&lt;span style="font-size:12pt;"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:12pt;"&gt;Contact_lu&amp;quot; - lookup based on &amp;quot;Contact&amp;quot; field
     in the &amp;quot;Suppliers&amp;quot; list&lt;/span&gt;&lt;/li&gt;&lt;font size="3" face="Times New Roman"&gt;
&lt;/font&gt;&lt;/ul&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;span style="font-size:12pt;"&gt;In Infopath I create a form for “Transactions”:
&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;span style="font-size:12pt;"&gt;I set the rules to auto-populate “Contact_lu” when I enter a supplier in &amp;quot;Supplier_lu”.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:12pt;"&gt;The &amp;quot;Supplier_lu&amp;quot; dropbox had &amp;quot;ID&amp;quot; as “Value” and &amp;quot;Supplier Name&amp;quot; as &amp;quot;Display Name&amp;quot;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:Symbol;font-size:12pt;mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol;"&gt;&lt;span style="mso-list:Ignore;"&gt;&lt;span style="font-size-adjust:none;font-stretch:normal;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span style="font-size:12pt;"&gt;The &amp;quot;Contact_lu&amp;quot; dropbox had &amp;quot;ID&amp;quot; as value and &amp;quot;Contact&amp;quot; as &amp;quot;Display Name&amp;quot;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="font-size:12pt;"&gt;Here is what happens:&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;span style="font-size:12pt;"&gt;When I choose “Supp1” in &amp;quot;Supplier_lu&amp;quot;, &lt;u&gt;nothing happens&lt;/u&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:Symbol;font-size:12pt;mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol;"&gt;&lt;span style="mso-list:Ignore;"&gt;&lt;span style="font-size-adjust:none;font-stretch:normal;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span style="font-size:12pt;"&gt;I now change in the &amp;quot;Supplier_lu&amp;quot; dropbox the Value to “Supplier Name” as well&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:12pt;"&gt;Now, when I choose “Supp1” in &amp;quot;Supplier_lu&amp;quot;, I can see the right value (“John Doe”) in “Contact_lu”, but both fields are framed in red for “Only positive integers allowed” error&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="font-size:12pt;"&gt;What am I doing wrong?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>