<?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: Two data sources, repeating table in repeating section, trying to do conditional formatting</title><link>https://www.infopathdev.com:443/forums/thread/70158.aspx</link><pubDate>Thu, 08 Sep 2011 17:35:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70158</guid><dc:creator>Rae</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70158.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=70158</wfw:commentRss><description>I only added a photo and a display name today, so I understand the confusion :)
&lt;p&gt;
Those approaches sound...frustrating.  Haha.  Part of the issue is I need to keep this as simple as possible, because I&amp;#39;m supposed to be passing the how-to-make-forms-work information on to a non-programmer, and while this is getting less and less plausible, I&amp;#39;m still trying to hang onto that if I can.
&lt;p&gt;
I did just come up with one solution for my particular situation.  I was taking a fairly convoluted approach to dealing with this form.  This form has a button that opens up another form, in which a repeating table resides, which can be filled and submitted to a SQL database.  Then it closes, and the user can (theoretically) query the database to refresh that list, so it&amp;#39;s visible on the main form (in case the user wants to print all the data together).  For reasons I cannot currently remember, this seemed to be the only way to deal with the data.  I got stuck in actually making the proper data visible in the table, because it is also in a repeating section and that just throws everything off.
&lt;p&gt;
What I&amp;#39;ve found is that simply defining two tables in the database and using a one-to-many relationship works beautifully.  I made a new form based on the data connection, and so far it formats and submits perfectly fine, effectively throwing all my other problems away.  I should have tried this sooner.
&lt;p&gt;
Thank you so much for your time!</description></item><item><title>Re: Two data sources, repeating table in repeating section, trying to do conditional formatting</title><link>https://www.infopathdev.com:443/forums/thread/70157.aspx</link><pubDate>Thu, 08 Sep 2011 17:15:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70157</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70157.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=70157</wfw:commentRss><description>&lt;p&gt;You&amp;#39;ll have to pardon me.&amp;nbsp; First for not realizing that other thread was also you, and second for assuming you could filter a table bound to a secondary data source.&lt;/p&gt;
&lt;p&gt;Unfortunately, I don&amp;#39;t believe conditional formatting is going to work here, because in conditional formatting on a repeating table, current() refers to each individual row of the table itself (i.e. the rows of the inner table), and there is no way to get at the values of the containing section.&lt;/p&gt;
&lt;p&gt;Alas, I can only think of two possible approaches to this problem.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Copy the data from this secondary data source into your main data source, and use the technique described in my link.&amp;nbsp; This can be achieved fairly easily using qRules, but might be an issue if the amount of data in your secondary source is large, or if you don&amp;#39;t want to have this secondary data in your main data source, which would be a valid concern.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Use a Preserve Code Block.&amp;nbsp;This is an advanced technique that involves manually modifying the XSL for your view, and has a few drawbacks in that you can&amp;#39;t use the InfoPath designer to modify (or even see) the affected portion of the form (the inner repeating table).&amp;nbsp; Nonetheless, I&amp;#39;d be happy to show you how to do this if you&amp;#39;d provide me with a copy of your form.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;</description></item><item><title>Re: Two data sources, repeating table in repeating section, trying to do conditional formatting</title><link>https://www.infopathdev.com:443/forums/thread/70153.aspx</link><pubDate>Thu, 08 Sep 2011 15:30:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70153</guid><dc:creator>Rae</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70153.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=70153</wfw:commentRss><description>I actually asked a &lt;a href="http://www.infopathdev.com/forums/p/20201/70091.aspx#70091"&gt;similar question&lt;/a&gt; (why it said &amp;quot;data cannot repeat here&amp;quot; when I put the table in the section) and you responded with that link, but I don&amp;#39;t see filtering in the properties box anywhere.  I didn&amp;#39;t think it was possible to filter repeating data from a secondary data source?  So I&amp;#39;ve been trying conditional formatting, and I&amp;#39;m fairly certain I tried the use of current() that&amp;#39;s shown in that link - along with just about everything else I could imagine.
&lt;p&gt;
(I made a new thread because I figured my first question had been answered and I was on to something separate.)</description></item><item><title>Re: Two data sources, repeating table in repeating section, trying to do conditional formatting</title><link>https://www.infopathdev.com:443/forums/thread/70148.aspx</link><pubDate>Thu, 08 Sep 2011 14:52:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70148</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70148.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=70148</wfw:commentRss><description>&lt;p&gt;This seems to be a popular question lately:&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:12pt;mso-fareast-font-family:&amp;#39;Times New Roman&amp;#39;;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-ansi-language:EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:AR-SA;"&gt;&lt;a href="http://www.infopathdev.com/forums/p/20050/69516.aspx#69516"&gt;&lt;strong&gt;&lt;span style="FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;COLOR:blue;"&gt;Linking Two Repeating groups....&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:12pt;mso-fareast-font-family:&amp;#39;Times New Roman&amp;#39;;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-ansi-language:EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:AR-SA;"&gt;&lt;font size="2" face="Arial"&gt;You need to use the filtering in the repeating table&amp;#39;s property dialog, and not conditional formatting.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Two data sources, repeating table in repeating section, trying to do conditional formatting</title><link>https://www.infopathdev.com:443/forums/thread/70127.aspx</link><pubDate>Thu, 08 Sep 2011 12:50:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70127</guid><dc:creator>Rae</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70127.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=70127</wfw:commentRss><description>So, I have a repeating table in a repeating section.  The repeating section has some stuff from the main data source in it.  The repeating table receives data from a SQL database.
&lt;p&gt;
I&amp;#39;m trying to use conditional formatting on the table to hide rows based on a value in the main data source.  Every instance of the repeating section should have a unique repeating table in it (unless, of course, the same reference value is entered in more than one instance of the section).
&lt;p&gt;
Right now, I&amp;#39;ve tried &amp;quot;if valueB does not equal valueA, hide this control.&amp;quot;  The problem is if I insert an item to the repeating section, both versions of the reference value have to be the same for it to count it as equal, AND it copies the same repeating table into the other instance of the section.
&lt;p&gt;
However, every attempt I&amp;#39;ve made so far at using &amp;quot;current()&amp;quot; has only made it so that ALL results from the SQL database show up in the table in all instances of the repeating section, no matter what.  I think I&amp;#39;ve tried all the usual stuff, but I could be totally off.  I tried using &amp;quot;parent::&amp;quot; once or twice, but I just confused myself further.
&lt;p&gt;
The main data source looks like this:&lt;p&gt;
myFields&lt;br /&gt;
-group1&lt;br /&gt;
--group2 (repeating section)&lt;br /&gt;
---&lt;strong&gt;valueA&lt;/strong&gt; (reference value)&lt;br /&gt;
---valueX&lt;br /&gt;
---valueY&lt;br /&gt;
---valueZ&lt;br /&gt;
&lt;p&gt;
The secondary (SQL) source looks like this:&lt;p&gt;
myFields&lt;br /&gt;
-dataFields&lt;br /&gt;
--d:testMatrix (repeating table)&lt;br /&gt;
---&lt;strong&gt;valueB&lt;/strong&gt; (value being compared to ref value)&lt;br /&gt;
---valueQ&lt;br /&gt;
---valueR&lt;br /&gt;
---valueS&lt;br /&gt;
&lt;p&gt;
Let me know if I need to provide any additional information.
&lt;p&gt;
Thanks!
&lt;p&gt;
P.S. This is IP 2003.</description></item></channel></rss>