<?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: How to display a value from one table based upon a value in another table</title><link>https://www.infopathdev.com:443/forums/thread/50764.aspx</link><pubDate>Tue, 19 Jan 2010 22:51:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50764</guid><dc:creator>altamiranm</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50764.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=50764</wfw:commentRss><description>&lt;p&gt;Hilary,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for the prompt response!&amp;nbsp; I decided to go ahead and test the theory I had and determined that it was the GenderID which I had as an &amp;quot;AutoNumber&amp;quot; in my database list table.&amp;nbsp; Once I set this field on the list table from &amp;quot;AutoNumber&amp;quot; to &amp;quot;text&amp;quot; and relinked the table as a secondary source to my infopath 2003 form, I was able to write the argument as you suggested and it now works.&amp;nbsp; I suppose&amp;nbsp;what this means is that I cannot use the &amp;quot;AutoNumber&amp;quot; for my list&amp;#39;s IDs.&amp;nbsp; Unfortunately, I have about 20 list tables set-up this way all linked as secondary sources in my form.&amp;nbsp; I hope by changing them from &amp;quot;AutoNumber&amp;quot; to &amp;quot;text&amp;quot; that I will not run into some other issue down the road while writing queries and such.&amp;nbsp; Thank you so much for your help again!&lt;/p&gt;</description></item><item><title>Re: How to display a value from one table based upon a value in another table</title><link>https://www.infopathdev.com:443/forums/thread/50762.aspx</link><pubDate>Tue, 19 Jan 2010 22:33:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50762</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50762.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=50762</wfw:commentRss><description>&lt;p&gt;Mind posting your template? Under the Options tab there is a place you can attach a file. Also, are you using IP 2003 or 2007?&lt;/p&gt;</description></item><item><title>Re: How to display a value from one table based upon a value in another table</title><link>https://www.infopathdev.com:443/forums/thread/50761.aspx</link><pubDate>Tue, 19 Jan 2010 22:31:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50761</guid><dc:creator>altamiranm</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50761.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=50761</wfw:commentRss><description>&lt;p&gt;Hilary,&lt;/p&gt;
&lt;p&gt;Thank you very,&amp;nbsp;very much!&amp;nbsp;Your example is simple and straight forward, however, it is not working for me.&amp;nbsp; When I write my string to match yours, I am only getting the first entry on my list table as a result for every line.&amp;nbsp; It does not matter what I choose, it is always the same.&amp;nbsp; The best I can determine when I compare my project to your example is that a number of the fields I am using, like the GenderID and the GenderType are hardcoded as integers in my database as opposed to simply being strings.&amp;nbsp; Could this be causing me issues?&amp;nbsp; I am never given an option to write text for &amp;quot;current()/Gender&amp;quot; I have to enter that as another expression I am guessing because it is not text?&amp;nbsp; I don&amp;#39;t know and I hate to go back and alter the fields in my database to be text strings if that is not the issue.&amp;nbsp;Thank you again!&lt;/p&gt;</description></item><item><title>Re: How to display a value from one table based upon a value in another table</title><link>https://www.infopathdev.com:443/forums/thread/50674.aspx</link><pubDate>Sun, 17 Jan 2010 23:18:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50674</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50674.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=50674</wfw:commentRss><description>&lt;p&gt;Ah, for repeating, you&amp;#39;ll need to use the current() function in your XPath. Please see the modified attached sample....&lt;/p&gt;</description></item><item><title>Re: How to display a value from one table based upon a value in another table</title><link>https://www.infopathdev.com:443/forums/thread/50670.aspx</link><pubDate>Sat, 16 Jan 2010 21:36:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50670</guid><dc:creator>altamiranm</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50670.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=50670</wfw:commentRss><description>&lt;p&gt;&lt;font size="3" face="Times New Roman"&gt;Hi Hilary!&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;Thank you so much for your response.&amp;nbsp; I had tried that before posting and while it does work, I found that it does not work when the data is in a repeating table.&amp;nbsp; Each expression box only shows the first entry.&amp;nbsp; Is there a way to get around this issue?&amp;nbsp; Thanks!&lt;/p&gt;</description></item><item><title>Re: How to display a value from one table based upon a value in another table</title><link>https://www.infopathdev.com:443/forums/thread/50667.aspx</link><pubDate>Sat, 16 Jan 2010 14:18:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50667</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50667.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=50667</wfw:commentRss><description>&lt;p&gt;Hi --&lt;/p&gt;
&lt;p&gt;Add an expression box. For the value, use the secondary data source that provides the values to your Gender drop down list. Add a filter, so that Gender ID in your secondary drop down list is equal to the field in your main data source that is bound to the drop down fed by your secondary data source.&lt;/p&gt;
&lt;p&gt;Samples speak louder than words, so see attached (right click link in header, select Save Target As to save locally. Right click file and select Design to open in design mode).&lt;/p&gt;</description></item><item><title>How to display a value from one table based upon a value in another table</title><link>https://www.infopathdev.com:443/forums/thread/50663.aspx</link><pubDate>Fri, 15 Jan 2010 22:03:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50663</guid><dc:creator>altamiranm</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50663.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=50663</wfw:commentRss><description>&lt;pre style="WORD-WRAP:break-word;" class="WNPost"&gt;I am creating an Infopath 2003 form using a Microsoft Access 2003 database 
(will be converted to SQL 2005 when completed.)&amp;nbsp; I am currently using some 
list tables in this database as secondary data sources that allow for simple numeric values to be 
stored (submitted) back to the main data tables, but allow long display names in the form.&amp;nbsp; 
For example:

List table lstGender
GenderID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Gender
1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Male
2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Female

A selection of &amp;quot;Male&amp;quot; allows &amp;quot;Male&amp;quot; to be displayed on the form, but a 1 is 
stored back in the databases data table.&amp;nbsp; The problem I am experiencing is that I need that 
field to appear on a second view as read only.&amp;nbsp; With a text box linked to the 
dataset, it is displaying the GenderID &amp;quot;1&amp;quot; instead of the Gender &amp;quot;Male&amp;quot;.&amp;nbsp; Is 
there a way, either via XPath or some other code that will allow me to change 
the numeric value back to the text value on the form for display purposes 
only?&amp;nbsp; I want to keep the data numeric, but to allow it to display in other places in the 
form as read-only text.&amp;nbsp; I know I can do it by using another drop down box containing 
duplicate data, however, all other instances need to be read-only.&amp;nbsp; Thank you 
in advance!&lt;/pre&gt;</description></item></channel></rss>