<?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: Repeating Section, The current() Function, and a Button</title><link>https://www.infopathdev.com:443/forums/thread/35560.aspx</link><pubDate>Tue, 09 Dec 2008 19:51:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35560</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35560.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=35560</wfw:commentRss><description>&lt;p&gt;Oh, I like that. Very nice, especially if you have a data source you can&amp;#39;t modify for some reason.&lt;/p&gt;</description></item><item><title>Re: Repeating Section, The current() Function, and a Button</title><link>https://www.infopathdev.com:443/forums/thread/35412.aspx</link><pubDate>Sat, 06 Dec 2008 19:57:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35412</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35412.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=35412</wfw:commentRss><description>&lt;p&gt;Cool trick Hilary!&lt;/p&gt;
&lt;p&gt;I wanted to take my own stab at this problem, and I think there is a sneaky&amp;nbsp;way to do just what you(BuildPro Guru)&amp;nbsp;describe without using triggers, though it involves cracking open the .XSN.&amp;nbsp; Please see another post of mine:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/p/9316/33499.aspx#33499"&gt;http://www.infopathdev.com/forums/p/9316/33499.aspx#33499&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;and the contents of the attached XSN.&amp;nbsp; Unlike in my other post, in this case you would only need one rule and in the brackets[] instead of an index number you would have a condition.&amp;nbsp; I believe&amp;nbsp;in this case it would be something like:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;dfs:dataFields/d:Buyers/d:WorkOrders/d:WorkOrderConcern/@date[../@IncludeInWorkorder = &amp;#39;yes&amp;#39;]&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;But I&amp;#39;m only guessing about where exactly the date node is located and what it&amp;#39;s called.&lt;br /&gt;Anyway, feel free to give it a try.&lt;/p&gt;</description></item><item><title>Re: Repeating Section, The current() Function, and a Button</title><link>https://www.infopathdev.com:443/forums/thread/35385.aspx</link><pubDate>Fri, 05 Dec 2008 17:30:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35385</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35385.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=35385</wfw:commentRss><description>&lt;p&gt;Fantastic! Love it when a plan comes together....&lt;/p&gt;</description></item><item><title>Re: Repeating Section, The current() Function, and a Button</title><link>https://www.infopathdev.com:443/forums/thread/35381.aspx</link><pubDate>Fri, 05 Dec 2008 16:46:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35381</guid><dc:creator>BuildPro Guru</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35381.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=35381</wfw:commentRss><description>&lt;p&gt;Just for GP......&lt;/p&gt;
&lt;p&gt;I had to add a rule to the trigger field to set itself back to false or the operation only worked the first time.&amp;nbsp; All is just swell now!&lt;/p&gt;</description></item><item><title>Re: Repeating Section, The current() Function, and a Button</title><link>https://www.infopathdev.com:443/forums/thread/35377.aspx</link><pubDate>Fri, 05 Dec 2008 16:01:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35377</guid><dc:creator>BuildPro Guru</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35377.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=35377</wfw:commentRss><description>&lt;p&gt;WOW!&amp;nbsp; Was I ever trying to do that the hard way!&amp;nbsp; I tried to use triggers and couldnt work out the logic, but with your example, I finally got it!&amp;nbsp; Thanks again Hilary!&lt;/p&gt;</description></item><item><title>Re: Repeating Section, The current() Function, and a Button</title><link>https://www.infopathdev.com:443/forums/thread/35335.aspx</link><pubDate>Fri, 05 Dec 2008 02:14:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35335</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35335.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=35335</wfw:commentRss><description>&lt;p&gt;Wow, I&amp;#39;m not sure on that.&lt;/p&gt;
&lt;p&gt;However, if you can add another field to your data source, we can do this with rules.... in the attached sample, add some rows to the table, type &amp;#39;yes&amp;#39; in some of them in field one, and click the button, field three gets the date....The rule on the button sets the value of another field that isn&amp;#39;t displayed on the form but is part of the repeating group, and &lt;strong&gt;that&lt;/strong&gt; field then populates the dates....Your form is data base bound, it looks like from your XPath, so you should be able to add a field to the WorkOrderConcern group...&lt;/p&gt;</description></item><item><title>Re: Repeating Section, The current() Function, and a Button</title><link>https://www.infopathdev.com:443/forums/thread/35332.aspx</link><pubDate>Fri, 05 Dec 2008 00:44:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35332</guid><dc:creator>BuildPro Guru</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35332.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=35332</wfw:commentRss><description>&lt;p&gt;I was fooling around with that a bit but I wasn&amp;#39;t able to get it to work.&amp;nbsp; Is it possible to use the &amp;#39;expression&amp;#39; option when setting the condition for the rule?&amp;nbsp; I was making afeeble attempt at that earlier but no dice.&amp;nbsp; Here is one of my concoctions:&lt;/p&gt;
&lt;p&gt;dfs:dataFields/d:Buyers/d:WorkOrders/d:WorkOrderConcern/@IncludeInWorkorder[../@ConcernID = current()/WorkOrderConcern]&lt;/p&gt;
&lt;p&gt;Workorders is a repeating group containing workorderconcern containing the ddl includeinworkorder.&amp;nbsp; ConcernID is a unique number generated by the db when the form&amp;nbsp;submitted.&amp;nbsp; Each repeatiing section gets one so I was trying to grab that to identify the row to set the field in.&amp;nbsp; The condition also required that includeinworkorder = &amp;#39;yes&amp;#39;.&amp;nbsp; Am I on the right track here?&lt;/p&gt;</description></item><item><title>Re: Repeating Section, The current() Function, and a Button</title><link>https://www.infopathdev.com:443/forums/thread/35331.aspx</link><pubDate>Fri, 05 Dec 2008 00:34:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35331</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35331.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=35331</wfw:commentRss><description>&lt;p&gt;I see, I see. Well, I can&amp;#39;t think of a way to do this with a rule. You know, the Action to &amp;#39;Set a field&amp;#39;s value&amp;#39; -- what we really want is be able to put an XPath in there to select only the nodes where the Include in view field is equal to &amp;#39;yes&amp;#39;....and we can&amp;#39;t, now can we! That&amp;#39;s why all of your fields get set with the date. You may have to add some code for this -- XPath to select a node list of all the nodes where the include in view field equals &amp;#39;yes&amp;#39; and then loop through and set that date field.....&lt;/p&gt;</description></item><item><title>Re: Repeating Section, The current() Function, and a Button</title><link>https://www.infopathdev.com:443/forums/thread/35330.aspx</link><pubDate>Fri, 05 Dec 2008 00:21:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35330</guid><dc:creator>BuildPro Guru</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35330.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=35330</wfw:commentRss><description>&lt;p&gt;Hello Hilary!&amp;nbsp; So good to hear from you again!&amp;nbsp; IP 2007 aaaaannnnnnnddddddddd C#.&amp;nbsp; That would solve the problem, but I would like for the button to do the job.&amp;nbsp; The button (in view &amp;#39;c&amp;#39;) actually creates an email with that veiw embedded in the form and the date that the email was sent is what I am trying to grab.&amp;nbsp; Theoretically, one could switch the drop down and not send the email.&amp;nbsp; You know how that goes.&amp;nbsp; I would not make a big deal out of it, but that date ends up on a report and, well, we all know how management is about their reports!&lt;/p&gt;</description></item><item><title>Re: Repeating Section, The current() Function, and a Button</title><link>https://www.infopathdev.com:443/forums/thread/35328.aspx</link><pubDate>Fri, 05 Dec 2008 00:19:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35328</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35328.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=35328</wfw:commentRss><description>&lt;p&gt;Here is a quick sample... Righ click the link, save as, open in design mode.... Type yes in the first field of the table and the third field gets today().&lt;/p&gt;</description></item><item><title>Re: Repeating Section, The current() Function, and a Button</title><link>https://www.infopathdev.com:443/forums/thread/35327.aspx</link><pubDate>Fri, 05 Dec 2008 00:11:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35327</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35327.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=35327</wfw:commentRss><description>&lt;p&gt;Hi there!&lt;/p&gt;
&lt;p&gt;Now, I may be about to grossly oversimplify the issue, so forgive me if I do....&lt;/p&gt;
&lt;p&gt;Can&amp;#39;t you just add a rule to the field bound to the dropdown in the &amp;#39;Include in view c&amp;#39; (and I can&amp;#39;t talk about cleverness, I name everything &amp;#39;test&amp;#39;...) that then sets the date field for that row if the value is &amp;#39;yes&amp;#39;?&lt;/p&gt;
&lt;p&gt;Are you using InfoPath 2003? I forget.... &lt;/p&gt;</description></item><item><title>Repeating Section, The current() Function, and a Button</title><link>https://www.infopathdev.com:443/forums/thread/35325.aspx</link><pubDate>Thu, 04 Dec 2008 23:41:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35325</guid><dc:creator>BuildPro Guru</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35325.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=35325</wfw:commentRss><description>&lt;p&gt;Hello Everyone.&amp;nbsp; Its me again.&lt;/p&gt;
&lt;p&gt;I have a repeating section with a date field that I need to populate with today&amp;#39;s date when a button is clicked.&amp;nbsp; The repeating section first appears in view &amp;quot;b&amp;quot; where everything is filled out with the exception of a few fields including the date field in question.&amp;nbsp; I switch to view &amp;quot;c&amp;quot;.&amp;nbsp; The information displayed in view &amp;quot;c&amp;quot; is controlled by a dropdown in view &amp;quot;b&amp;quot; labeled &amp;#39;Include in view &amp;quot;c&amp;quot;&amp;#39; (clever, I know).&amp;nbsp; The form may contain many iterations of the repeating section, but I need to only populate the date field in the sections that have the &amp;#39;include in view c&amp;#39; dropdown set to yes (and thereby displayed in view c).&lt;/p&gt;
&lt;p&gt;I can get it to populate every instance of the date filed, but not just the ones that I want.&amp;nbsp; I am sure that I am close, but I am just getting the syntax wrong or something.&amp;nbsp; Should I use a rule on the button to set the date and put a condition on it using the &amp;#39;expression&amp;#39; option?&amp;nbsp; That is the most explored method and I have come up empty.&lt;/p&gt;
&lt;p&gt;Any suggestions would be&amp;nbsp;greatly appreciated.&lt;/p&gt;</description></item></channel></rss>