<?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: Trouble Shooting: Mystery Records</title><link>https://www.infopathdev.com:443/forums/thread/41554.aspx</link><pubDate>Mon, 11 May 2009 22:20:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41554</guid><dc:creator>richardlpalmer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41554.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=41554</wfw:commentRss><description>&lt;p&gt;Hadn&amp;#39;t thought of that. In the past I&amp;#39;ve created Expression Boxes and once created haven&amp;#39;t been able to change them to any other control. Never tried doing the reverse of starting with a Text Box and changing it to an Expression Box.&lt;/p&gt;
&lt;p&gt;This worked like a charm. And while it was a nuisance to have to do the conversion 21 times and then&amp;nbsp;modify the Expression&amp;nbsp;Boxes 21 times with the&amp;nbsp;&amp;#39;stubstring-before&amp;#39; function&amp;nbsp;(wish I could apply it to the table/section the controls are in) it still worked fine and was plenty simple.&lt;/p&gt;
&lt;p&gt;Thank you all for the assistance. :)&lt;/p&gt;</description></item><item><title>Re: Trouble Shooting: Mystery Records</title><link>https://www.infopathdev.com:443/forums/thread/41552.aspx</link><pubDate>Mon, 11 May 2009 22:00:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41552</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41552.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=41552</wfw:commentRss><description>&lt;p&gt;If you use an expression box, you can use a formula (including functions like &amp;#39;substring-before&amp;#39;).&lt;/p&gt;</description></item><item><title>Re: Trouble Shooting: Mystery Records</title><link>https://www.infopathdev.com:443/forums/thread/41551.aspx</link><pubDate>Mon, 11 May 2009 21:30:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41551</guid><dc:creator>richardlpalmer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41551.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=41551</wfw:commentRss><description>&lt;p&gt;I have a feeling you&amp;#39;re on the right track but not sure.&lt;/p&gt;
&lt;p&gt;I was modifying an existing form. There is a Repeating Section that is filtered (basically like your sample). I needed to add some data, a list of 21 newly added columns to the SharePoint list this data was coming from. I ended up using a Text Box with the concat function, a bit of XML for line break between each item and then a filter for each. Here&amp;#39;s what it looks like formula-wise:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;concat(substring-before(@RelDateA[@ID = QueryOID], &amp;quot; &amp;quot;), newLine, substring-before(@RelDateB[@ID = QueryOID], &amp;quot; &amp;quot;), newLine, substring-before(@RelDateC[@ID = QueryOID], &amp;quot; &amp;quot;), newLine, substring-before(@RelDateD[@ID = QueryOID], &amp;quot; &amp;quot;), newLine, substring-before(@RelDateE[@ID = QueryOID], &amp;quot; &amp;quot;), newLine, substring-before(@RelDateF[@ID = QueryOID], &amp;quot; &amp;quot;), newLine, substring-before(@RelDateG[@ID = QueryOID], &amp;quot; &amp;quot;), newLine, substring-before(@RelDateH[@ID = QueryOID], &amp;quot; &amp;quot;), newLine, substring-before(@RelDateI[@ID = QueryOID], &amp;quot; &amp;quot;), newLine, substring-before(@RelDateJ[@ID = QueryOID], &amp;quot; &amp;quot;), newLine, substring-before(@RelDateK[@ID = QueryOID], &amp;quot; &amp;quot;), newLine, substring-before(@RelDateL[@ID = QueryOID], &amp;quot; &amp;quot;), newLine, substring-before(@RelDateM[@ID = QueryOID], &amp;quot; &amp;quot;), newLine, substring-before(@RelDateN[@ID = QueryOID], &amp;quot; &amp;quot;), newLine, substring-before(@RelDateO[@ID = QueryOID], &amp;quot; &amp;quot;), newLine, substring-before(@RelDateP[@ID = QueryOID], &amp;quot; &amp;quot;), newLine, substring-before(@RelDateQ[@ID = QueryOID], &amp;quot; &amp;quot;), newLine, substring-before(@RelDateR[@ID = QueryOID], &amp;quot; &amp;quot;), newLine, substring-before(@RelDateS[@ID = QueryOID], &amp;quot; &amp;quot;), newLine, substring-before(@RelDateT[@ID = QueryOID], &amp;quot; &amp;quot;), newLine, substring-before(@RelDateU[@ID = QueryOID], &amp;quot; &amp;quot;))&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I just now tried simply dragging/dropping each of these items from the Secondary Data Source in to the Repeating Section and it&amp;#39;s displaying just fine, with no need for additional filtering. I don&amp;#39;t know why I didn&amp;#39;t think of this before, it seems too obvious... &lt;/p&gt;
&lt;p&gt;&amp;nbsp;But now that I think of it, I don&amp;#39;t know how to apply the substring-before funtion to a Secondary Data Source, so it doesn&amp;#39;t look quite like I need it to. Hmmm...&lt;/p&gt;
&lt;p&gt;It&amp;#39;s things like this that make me discouraged.&lt;/p&gt;</description></item><item><title>Re: Trouble Shooting: Mystery Records</title><link>https://www.infopathdev.com:443/forums/thread/41549.aspx</link><pubDate>Mon, 11 May 2009 20:52:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41549</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41549.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=41549</wfw:commentRss><description>&lt;p&gt;I think (but I may have misinterpreted what you are doing) that since there isn&amp;#39;t a built in way in InfoPath to filter your SharePoint data, you may have been stuck with your &amp;#39;21-filter&amp;#39; solution.... If you were displaying a control bound to the secondary data source on the form, then you would have been able to (for example) add a repeating table or section bound to the repeating group in your secondary data source and filter &lt;strong&gt;*that*&lt;/strong&gt; to only disply if Id = Id (whatever the condition is).....Or, are you just needing to display this data? You aren&amp;#39;t using the concat formula in a rule or something to copy it into your main data source? &lt;/p&gt;
&lt;p&gt;If you just need to display it, you could have used an expression box in a filtered repeating section... I&amp;#39;ve attached a sample. Right click on the link in the message header, select &amp;#39;Save as&amp;#39;, and save locally. Open in design mode and preview. &lt;/p&gt;</description></item><item><title>Re: Trouble Shooting: Mystery Records</title><link>https://www.infopathdev.com:443/forums/thread/41548.aspx</link><pubDate>Mon, 11 May 2009 20:19:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41548</guid><dc:creator>richardlpalmer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41548.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=41548</wfw:commentRss><description>&lt;p&gt;Well, got it sorted out. It probably wasn&amp;#39;t the most expedient way to go about things but it&amp;#39;s definitely efficient. I did a filter on each colum, matching the IDs so only one result was returned.&lt;/p&gt;
&lt;p&gt;The thing I&amp;#39;d like to get feedback on with this is my methodology. I had to do this filter 21 seperate times. I&amp;#39;m wondering now if I could&amp;nbsp;have done it by making a section for the control to live in and then applied the filter to the control? What do you think?&lt;/p&gt;</description></item><item><title>Re: Trouble Shooting: Mystery Records</title><link>https://www.infopathdev.com:443/forums/thread/41526.aspx</link><pubDate>Mon, 11 May 2009 08:19:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41526</guid><dc:creator>richardlpalmer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41526.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=41526</wfw:commentRss><description>&lt;p&gt;Okay, I think I see the problem. The form is working the way I told it to, I just didn&amp;#39;t tell it exactly&amp;nbsp;what I wanted. :)&lt;/p&gt;
&lt;p&gt;What I see is it&amp;#39;s looking at the entire RelDateA, RelDateB, etc. column and pulling any value it sees. So there are a ton of list items below the one I&amp;#39;m talking about above. Some of them have RelDateA, RelDateB and/or RelDateC selected. What I need to tell the form to do is just show records for THIS one item.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;(At least that&amp;#39;s what I THINK is happening...)&lt;/p&gt;
&lt;p&gt;I expanded my screen shot to show 4 list items. RelDateA, RelDateB and RelDateC are populated within some of these list items -- my test item (first&amp;nbsp;list item)&amp;nbsp;only has RelDateJ. But as it&amp;#39;s displaying RelDateA, RelDateB, RelDateC and RelDateJ above I&amp;#39;m making the assumption this is what&amp;#39;s happening.&lt;/p&gt;
&lt;p&gt;&lt;img style="WIDTH:609px;HEIGHT:298px;" src="http://i169.photobucket.com/albums/u227/richardlpalmer/Screen%20Shots/028.jpg" width="609" height="298" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I guess the question now is how do I get it to just display the one item&amp;#39;s worth of data?&lt;/p&gt;</description></item><item><title>Re: Trouble Shooting: Mystery Records</title><link>https://www.infopathdev.com:443/forums/thread/41525.aspx</link><pubDate>Mon, 11 May 2009 08:01:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41525</guid><dc:creator>richardlpalmer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41525.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=41525</wfw:commentRss><description>&lt;p&gt;Okay, to further illustrate the problem, I edited the list item via the form. The list item now shows the first 5 items with entries.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i169.photobucket.com/albums/u227/richardlpalmer/Screen%20Shots/021.jpg" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The form shows these 5 records.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i169.photobucket.com/albums/u227/richardlpalmer/Screen%20Shots/022.jpg" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now, when I edit the list item it shows all of these fields blank and only the 7th one with a record (RelDateG). Great!&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i169.photobucket.com/albums/u227/richardlpalmer/Screen%20Shots/023.jpg" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, when I open the form here&amp;#39;s what I see.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i169.photobucket.com/albums/u227/richardlpalmer/Screen%20Shots/024.jpg" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So basically, it&amp;#39;s keeping these first 3 items in place, regardless. The items don&amp;#39;t exist in the list but they&amp;#39;re appearing in the form. I thought maybe I was pulling those items from the list of dates they&amp;#39;re derived from but that&amp;#39;s not the case. The secondary data source is the correct one... &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Trouble Shooting: Mystery Records</title><link>https://www.infopathdev.com:443/forums/thread/41519.aspx</link><pubDate>Mon, 11 May 2009 07:04:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41519</guid><dc:creator>richardlpalmer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41519.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=41519</wfw:commentRss><description>&lt;p&gt;I wish I had a better way to describe what I&amp;#39;m encountering but here&amp;#39;s the details of what I have.&lt;/p&gt;
&lt;p&gt;One section of my form has a text box with a formula displaying contents (if any) of 21 columns. This is detailed in a different thread, over &lt;a href="http://www.infopathdev.com/forums/p/2013/41351.aspx#41351"&gt;here&lt;/a&gt;. It was working well until I added another control to a different part of the form -- completely disrelated. I added a section that holds various check boxes and one check box that makes that section hidden/appear.&lt;/p&gt;
&lt;p&gt;What I&amp;#39;m finding now is that when I open a form it displays content that isn&amp;#39;t in my SharePoint list. Maybe a picture would help make this easier to grasp.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s my list item. As you can see, there is no record in RelDateA, RelDateB or RelDateC. There is a value in RelDateE &amp;amp; RelDateF. &lt;/p&gt;
&lt;p&gt;&lt;img src="http://i169.photobucket.com/albums/u227/richardlpalmer/Screen%20Shots/016.jpg" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I open my form it is displaying the values of RelDateA, RelDateB, RelDateC (although none exist per the above image), RelDateE &amp;amp; RelDateF&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i169.photobucket.com/albums/u227/richardlpalmer/Screen%20Shots/018.jpg" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve checked and re-checked but can&amp;#39;t figure out how the above is happening. &lt;/p&gt;</description></item></channel></rss>