<?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: lookup in infopath 2010 form</title><link>https://www.infopathdev.com:443/forums/thread/81159.aspx</link><pubDate>Tue, 31 Jul 2012 13:14:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81159</guid><dc:creator>strangeloop</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81159.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=81159</wfw:commentRss><description>thank you mel,
I&amp;#39;ll give this a try.</description></item><item><title>Re: lookup in infopath 2010 form</title><link>https://www.infopathdev.com:443/forums/thread/81134.aspx</link><pubDate>Mon, 30 Jul 2012 18:49:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81134</guid><dc:creator>Mel Clemente</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81134.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=81134</wfw:commentRss><description>&lt;p&gt;Should the fruit_ref field&amp;#39;s value come from the SharePoint list&amp;#39;s fruit_ref column? I think filtering should work just fine. So set a default value for your fruit_ref field, that is - the value of the SharePoint list data source&amp;#39;s fruit reference filtered such that fruit = your main data source&amp;#39;s fruit (combo box) field.&lt;/p&gt;&lt;p&gt;It may look something like:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;ShP_Fruit_Ref[ShP_Fruit =&amp;nbsp;Form_Fruit]&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;or using XPath:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;xdXDocument:GetDOM(&amp;quot;Fruits&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:ShP_Fruit_Ref[../d:ShP_Fruit = xdXDocument:get-DOM()/my:myFields/my:Form_Fruit]&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Does that make sense?&lt;/p&gt;</description></item><item><title>lookup in infopath 2010 form</title><link>https://www.infopathdev.com:443/forums/thread/81116.aspx</link><pubDate>Mon, 30 Jul 2012 09:20:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81116</guid><dc:creator>strangeloop</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81116.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=81116</wfw:commentRss><description>Hi there,
Any assistance on how to achieve the following would be much appreciated.

I have a sharepoint &amp;quot;fruit&amp;quot; list containing two columns:


fruit and fruit_ref.







.   On my infopath 2010 form I have two fields -   fruit field(combobox)  and fruit_ref field. 
The fruit field combo box uses a data connection to lookup the sharepoint fruit list.  This works and I can select a fruit.

What I&amp;#39;m trying to achieve is when a user selects a fruit from the fruit combobox the corresponding fruit reference is filled into the fruit_ref field.  

e.g  user selects banana, the fruit_ref field populates with ba.

Any ideas on how to achieve this?

Thank you.
edit:  just noticed the formatting is completely gone in this post</description></item></channel></rss>