<?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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Populating form based off two SP List Fields</title><link>https://www.infopathdev.com:443/forums/thread/58460.aspx</link><pubDate>Mon, 30 Aug 2010 14:39:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58460</guid><dc:creator>drake</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58460.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=58460</wfw:commentRss><description>&lt;p&gt;Whoo hoo!&amp;nbsp; I got the Site# to filter based on the Project ID!&amp;nbsp; For reference, they&amp;#39;re called &amp;quot;Cascading Dropdowns&amp;quot;.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks to Patrick&amp;#39;s information I searched for &amp;quot;infopath current()&amp;quot; and found these two articles:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://blogs.msdn.com/b/infopath/archive/2004/09/13/228881.aspx%20"&gt;http://blogs.msdn.com/b/infopath/archive/2004/09/13/228881.aspx&lt;/a&gt; &lt;br /&gt;&lt;a href="http://blogs.msdn.com/b/infopath/archive/2004/03/24/95529.aspx"&gt;http://blogs.msdn.com/b/infopath/archive/2004/03/24/95529.aspx &lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;However, the form runs much, much slower than it did before.&lt;/p&gt;&lt;p&gt;What I did was added a filter to the Site# selection drop down where the Project ID is equal to itself in the Main Data Source.&amp;nbsp; So the Project ID drop down is pulling data on its own and I just told my Site# drop down to look at the Main source for the Project ID since that field already did the work.&amp;nbsp; In other words &amp;quot;Dynamic option is equal to static option&amp;quot; or &amp;quot;Secondary Data source is equal to Static Selection in Main&amp;quot; as a filter.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Now for pulling the addressing I&amp;#39;m assuming I&amp;#39;d need to do something similar and say &amp;quot;Where [Main data source] Site # is equal to...&amp;quot;&amp;nbsp; It&amp;#39;d be nice if I could do that on an external connection (Where ProjectID= and Site#=) so I wouldn&amp;#39;t need to apply it to all fields.&lt;/p&gt;&lt;p&gt;Edit: I suppose I could simply use an Optional Section for the last part. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Populating form based off two SP List Fields</title><link>https://www.infopathdev.com:443/forums/thread/58457.aspx</link><pubDate>Mon, 30 Aug 2010 13:56:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58457</guid><dc:creator>drake</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58457.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=58457</wfw:commentRss><description>&lt;div&gt;&lt;i&gt;Filter your ShP list so you only pull down only the Project IDs 
that you want (pulling down everything could result in a delay when you 
open the form)&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;&lt;i&gt;Connect your Project ID dropdown to the secondary data source that is querying your ShP list and getting those filtered values&lt;/i&gt;.&lt;/div&gt;&lt;ul&gt;&lt;li&gt;The Project ID field populates just fine and I have my project ID list filtered by the field &amp;quot;Status is equal to &amp;quot;To Scheduling&amp;quot;.&amp;nbsp; Yay.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;i&gt;Filter your Site Number dropdown to display only those that match 
your Project ID (use filtering inside the form (both should use 
current() and preceding-sibling to select the correct items to filter 
on) - search this forum for posts on those. Greg has a good blog on 
&amp;quot;selecting the right XPath axes&amp;quot;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Setup a second query that queries your customer list based on Project ID&lt;/i&gt;.&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;This is where I&amp;#39;m stuck.&amp;nbsp; I&amp;#39;m trying to do this part, but when I select &amp;quot;Get Choices from fields within this form&amp;quot; to populate the Site# drop down, I keep getting an error saying I have to select a repeating group or table.&amp;nbsp; If I change my Project ID type to repeating it doesn&amp;#39;t like that either.&amp;nbsp; This is where I&amp;#39;m getting stuck.&amp;nbsp; I&amp;#39;m not sure how to tell the Site# drop down to *only look for results in the filtered Project ID drop down*.&amp;nbsp; I can think of how to do it in like VB (sort of), I&amp;#39;m looking for an If Then statement of some sort to add or some other way to use the variable displayed in the Project ID drop down.&amp;nbsp; I can&amp;#39;t figure that part out.&amp;nbsp; When saying to use filtering inside the form do you mean use code?&lt;br /&gt;&lt;/li&gt;&lt;li&gt;I tried searching the form for &amp;quot;selecting the right XPath axes&amp;quot;, but I didn&amp;#39;t find anything.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;</description></item><item><title>Re: Populating form based off two SP List Fields</title><link>https://www.infopathdev.com:443/forums/thread/58429.aspx</link><pubDate>Fri, 27 Aug 2010 23:33:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58429</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58429.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=58429</wfw:commentRss><description>&lt;p&gt;Hi Drake,&lt;/p&gt;
&lt;p&gt;Best practices:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Filter your ShP list so you only pull down only the Project IDs that you want (pulling down everything could result in a delay when you open the form)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Connect your Project ID dropdown to the secondary data source that is querying your ShP list and getting those filtered values&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Filter your Site Number dropdown to display only those that match your Project ID (use filtering inside the form (both should use current() and preceding-sibling to select the correct items to filter on) - search this forum for posts on those. Greg has a good blog on &amp;quot;selecting the right XPath axes&amp;quot;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Setup a second query that queries your customer list based on Project ID and Site Number - you&amp;#39;ll use those to filter down the list. &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Add a rule to your second dropdown (or to a button) to query those values&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Display the queried values and add a button to allow copying the item you want&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Button will have to use current() to select the correct item in the secondary data source&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Button will set values in main data source based on the item clicked (essentially copying the item over)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;To copy multiple entries in one full swoop, you can use qRules&amp;#39; Insert command with a count&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;The filtering is easy to do with qRules (free trial download available &lt;a title="qRules v2.3 beta" href="https://download.yousendit.com/T1VtSkhUSEIrV3cwTVE9PQ"&gt;here&lt;/a&gt;). You can also search the web for FilterOWSSVR and write code to do it yourself, but qRules is fast and cheap.&lt;/p&gt;
&lt;p&gt;Good luck!&lt;/p&gt;</description></item><item><title>Populating form based off two SP List Fields</title><link>https://www.infopathdev.com:443/forums/thread/58400.aspx</link><pubDate>Fri, 27 Aug 2010 13:31:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58400</guid><dc:creator>drake</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58400.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=58400</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m not entirely sure what I should be searching for, which is probably why this is becoming more and more frustrating!&amp;nbsp; &lt;/p&gt;&lt;p&gt;What I want to do is have my form look at a SharePoint list and populate customer information fields (address, city, etc.) based on &lt;b&gt;two &lt;/b&gt;pieces of criteria.&amp;nbsp; Since the list is so huge I want the user to narrow the customer information results based on Project ID and then select from a Site Number, which is a unique number to the customer info.&amp;nbsp; Then I want that unique site number to be the one that populates the customer information fields.&amp;nbsp; &lt;/p&gt;&lt;p&gt;The form will be used to send a project description email to a customer and all of the information is already on SharePoint list.&amp;nbsp; Instead of just manually typing out the email or copy/pasting from SharePoint I figured why not just have a user select the project and site number from a list and then only have to enter in the email address of the customer and off it goes.&amp;nbsp; Seems pointless to have to rewrite things we already have on SharePoint.&amp;nbsp; Plus we don&amp;#39;t want to be sending all fields on the SharePoint list anyways.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;What&amp;#39;s happening is two things.&amp;nbsp; I can only get the Project ID to appear in a dropdown box correctly, but the Site Number drop down box doesn&amp;#39;t seem to be populating based on my filtered list.&amp;nbsp; I&amp;#39;m not even entirely sure what it&amp;#39;s populating off of!&amp;nbsp; I think it&amp;#39;s using all projects and not the specific one.&amp;nbsp; And if that is the case how do I filter/sort that list based on what is selected in my Project ID drop down box?&amp;nbsp; &lt;/p&gt;&lt;p&gt;Any sort of guidance here would be greatly appreciated!!&amp;nbsp; Even if anyone can tell me what I should be searching for.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>