<?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>Re: Xpath Expression for Infopath Developer</title><link>https://www.infopathdev.com:443/forums/thread/67513.aspx</link><pubDate>Sun, 19 Jun 2011 10:44:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67513</guid><dc:creator>Skarn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67513.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67513</wfw:commentRss><description>&lt;p&gt;You sound like you are already on the right track - what you are describing should be doable via the built in Infopath rules gui/interface - I doubt you would even need to manually write any xpath.&lt;/p&gt;&lt;p&gt;e.g. sharepoint table 1 with leave entitlements&lt;/p&gt;&lt;p&gt;ID   leaveEntitlement&lt;br /&gt;0     250 hrs&lt;br /&gt;1     102 hrs&lt;/p&gt;&lt;p&gt; sharepoint table 2 with user names&lt;/p&gt;&lt;p&gt;ID   name&lt;br /&gt;0     John Mowely&lt;br /&gt;1     Jane Lovely&lt;/p&gt;&lt;p&gt;Populate the name drop down box (lets call it my:selectName)&amp;nbsp;with a secondary data connection to table 2, but make the bound value the ID.&lt;/p&gt;&lt;p&gt;Then a rule on the name drop down should query another secondary data connection to table 1 which has a filter on it to only retrieve leaveEntitlement where ID = my:selectName.&lt;br /&gt;Then set your field where the entitlement should be put from the secondary data connection.&lt;/p&gt;</description></item><item><title>Xpath Expression for Infopath Developer</title><link>https://www.infopathdev.com:443/forums/thread/67086.aspx</link><pubDate>Fri, 03 Jun 2011 16:25:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67086</guid><dc:creator>AngieSSS</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67086.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67086</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am currently attempting to create an infopath form linked with Sharepoint list that needs minimal data entry requirements.&lt;/p&gt;
&lt;p&gt;Short version is:&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;need to automatically set a field value from a Sharepoint list column, based on the user&amp;#39;s selection from a drop down form control.&amp;nbsp; Is there an xpath expression for this?&lt;/p&gt;
&lt;p&gt;Long version is:&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;have created a annual leave request form in infopath with data connections from a Sharepoint employee list which we need to extract employee ID numbers and&amp;nbsp;Leave Entitlement Available&amp;nbsp;automatically when the user selects their name from the drop down box in the form control.&amp;nbsp; &amp;nbsp;At&amp;nbsp;this stage&amp;nbsp;I am&amp;nbsp;trying to solve this via a rule applied to the name drop down box which would set the value for the ID number and the leave entitlement available fields when the name field is&amp;nbsp;changed.&lt;/p&gt;
&lt;p&gt;If you need any further information please do feel free to ask any questions.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;would really appreciate any input for solutions to the rule or xpath expression or any other alternative that is any simpler.&lt;/p&gt;
&lt;p&gt;Many thanks&lt;/p&gt;
&lt;p&gt;Angie SSS&lt;/p&gt;</description></item></channel></rss>