<?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: Select and copy rows from repeating table to create an email</title><link>https://www.infopathdev.com:443/forums/thread/76707.aspx</link><pubDate>Wed, 21 Mar 2012 16:54:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76707</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76707.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=76707</wfw:commentRss><description>&lt;p&gt;Well, you wouldn&amp;#39;t have to write custom code to copy your repeating secondary data into your repeating main data source. You could use qRules commands for that - either Insert &amp;amp; SetValue if the schemas don&amp;#39;t match, or CopyTable if they do. Here&amp;#39;s a link to a &lt;a href="http://www.youtube.com/watch?v=luhn4nipvsk&amp;amp;list=PL612F3227B92A181B&amp;amp;index=1&amp;amp;feature=plpp_video"&gt;video&lt;/a&gt; I did on this - it will give you an idea on how the product works. Your form, if it is going to be a browser form, will have to be admin approved or sandboxed either way - qRules is code, so you&amp;#39;d need to admin approve / sandbox for browser - same as if you wrote the code itself. Custom code you write for your form is likely not going to be re-usable, and will cover just this form. qRules can be used in all your templates and has a large range of commands so you don&amp;#39;t have to write code to get great InfoPath functionality.&lt;/p&gt;</description></item><item><title>Re: Select and copy rows from repeating table to create an email</title><link>https://www.infopathdev.com:443/forums/thread/76703.aspx</link><pubDate>Wed, 21 Mar 2012 16:30:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76703</guid><dc:creator>oilerhead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76703.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=76703</wfw:commentRss><description>&lt;p&gt;Would using qrules make this a whole lot easier?&lt;/p&gt;</description></item><item><title>Re: Select and copy rows from repeating table to create an email</title><link>https://www.infopathdev.com:443/forums/thread/76699.aspx</link><pubDate>Wed, 21 Mar 2012 15:00:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76699</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76699.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=76699</wfw:commentRss><description>&lt;p&gt;Well, XPath filters make selecting the nodes with the boxes checked a pretty straight-forward exercise:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW[d:Checkboxfield = &amp;#39;true&amp;#39;]&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;For example - with, of course, d:Checkboxfield replaced with your actual field XPath. You&amp;#39;ve mentioned qRules is not an option for you, so you&amp;#39;ll need to write code - you can find samples online pretty easily that should get you started.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Select and copy rows from repeating table to create an email</title><link>https://www.infopathdev.com:443/forums/thread/76667.aspx</link><pubDate>Tue, 20 Mar 2012 23:12:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76667</guid><dc:creator>oilerhead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76667.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=76667</wfw:commentRss><description>&lt;p&gt;Thanks for the quick reply.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Yes, I want to copy multiple rows of data from the repeating secondary data into the main data source.&amp;nbsp; When the repeating table is populated, it may have rows of data pertaining to different suppliers.&amp;nbsp; The user would then select a subset of data for one supplier, roll that up in another table that does some extended cost calculations and fire that off in an email.&amp;nbsp; So if you look at the screenshot of the SP list, the repeating table would have 3 rows in it: 1 row for supplier3 and 2 rows for supplier2 (I am filtering the incoming data on whether the Item filter column is blank so Supplier 1 never shows up in the repeating table).&amp;nbsp; The user could select supplier 3 and send an email or, one or both rows for supplier2 and send an email.&lt;/p&gt;&lt;p&gt;The actual email and SP list in production would contain a PO number, unit cost, possible discount information amongst other stuff so I am not sure a delimited list would suffice unless I&amp;nbsp;re-queried the SP list to get all items for the matching ID&amp;nbsp;and then dumped it into the main data source.&lt;/p&gt;&lt;p&gt;I would probably need some condition around whether or not the box is checked such that if the box is checked, the query runs and if it is not checked, if the matching ID is in the main data source, delete that row.&amp;nbsp; Am I making this too complicated?&amp;nbsp; It seems so straightforward in my head (a problem to begin with)!&lt;/p&gt;</description></item><item><title>Re: Select and copy rows from repeating table to create an email</title><link>https://www.infopathdev.com:443/forums/thread/76665.aspx</link><pubDate>Tue, 20 Mar 2012 22:45:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76665</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76665.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=76665</wfw:commentRss><description>&lt;p&gt;Hi there - you were smart to repurpose a SharePoint field for your checkbox - in your repeating table, you need for the fields to all belong to the repeating node the table is bound to in order for them to work right.&lt;/p&gt;
&lt;p&gt;If you want to copy multiple instances of your repeating secondary data source into your main data source - that&amp;#39;s going to require code. But these items are all for the same supplier? So you&amp;#39;d want to send a single email from the form that covered the credits for all the items?&lt;/p&gt;
&lt;p&gt;I mean, you could use a double eval formula to get all the item names into a semi-colon delimited list, for example, and a sum formula to generate the total. That way your email would include the list of items and the sum of the credit - would that be adequate?&lt;/p&gt;</description></item><item><title>Select and copy rows from repeating table to create an email</title><link>https://www.infopathdev.com:443/forums/thread/76662.aspx</link><pubDate>Tue, 20 Mar 2012 22:23:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76662</guid><dc:creator>oilerhead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76662.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=76662</wfw:commentRss><description>&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;OK. I swear
I have looked through these forums, MSDN and the web endlessly but I cannot
find the relevant pieces to properly place these things together. I&amp;#39;ve even
asked the question on the MS forums but it went unanswered for days (since
deleted) so I am trying here. I know my way around SP but I not so much
Infopath and I am not a dev but I&amp;#39;ll go where the solution lies.&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;Scenario: User
has list in SP that tracks rejected materials. Every so often, the user needs
to create a credit memo to send to the supplier showing the rejected items and
calculates the cost of the order and totals up the complete credit. Today, its
a copy and pasted into an Excel form. The user would like to just select the
items to request credit for and hit a magic button to generate the email.&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;Solution: I
thought this would be easy to do in IP2010 but that is proving not the case and
perhaps this isn&amp;#39;t even the right solution. My plan was (is?) to use an IP2010
form that would suck in the list data and filter for the items that haven&amp;#39;t
been credited. I have done this using a secondary data connection, and dragging
that connection onto the form as a repeating table. I have the flter set to
only show the rows where a credit number doesn&amp;#39;t exist.&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;I have also
managed to create a check box in the repeating table and binding that to a
empty text column in the SP list. This was the only way that I could get a
checkbox to work independently.&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p&gt;&lt;span style="font-size:10pt;"&gt;Where I am
stuck is what to do now. Can I select the rows from the repeating table and
have an uber button that generates and email? Should make the uber button
submit the form to a form library and then have a workflow gereate the email?
Can I even go from the form to an email (I can&amp;#39;t attach the InfoPath form as I
can&amp;#39;t assume the external recipients have IP2010).&lt;/span&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;My secondary data source is: /dfs:myFields/dfs:dataFields/d:SharePointListItem_RW.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="mso-no-proof:yes;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;
 
 
  
  
  
  
  
  
  
  
  
  
  
  
 
 
 
&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;My target table in the main data source is: /my:myFields/my:group1/my:copyGroup_rTbl&lt;/font&gt;&lt;/font&gt;&lt;font size="3" face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;I am not looking for the
completed solution (that would be great) but really some direction.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Am I going about this right?&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;My weeklong search has me going down the path
of a code solution which is fine.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;If it
were code, I think that it would be a button that would collect all the selected
rows (where the control column=yes) and then generate an email.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Is there a non-code way to do this?&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Also, not to be rude, but I can’t base it on
qrules right now.&lt;/font&gt;&lt;/font&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0in 0in 10pt;page-break-after:avoid;" class="MsoNormal"&gt;&lt;font size="3" face="Times New Roman"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;&lt;p style="margin:0in 0in 10pt;page-break-after:avoid;" class="MsoNormal"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Please advise….I have attached a file with screenshots of the SP list and the current form I am using for a POC.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Times New Roman"&gt;

&lt;/font&gt;</description></item></channel></rss>