<?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: Populate a checkbox based off of a SharePoint List</title><link>https://www.infopathdev.com:443/forums/thread/93068.aspx</link><pubDate>Mon, 16 Sep 2013 14:17:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93068</guid><dc:creator>Justin Koshy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93068.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=93068</wfw:commentRss><description>Hi,
&lt;br /&gt; 
&lt;br /&gt;
I had a follow-up question. How can I set up picture controls to show a picture based on the condition that a secondary data source contains a certain value? The issue I have is that I need to filter/query the secondary data source first, so I can&amp;#39;t set the condition directly on the picture control rule.
&lt;br /&gt;
&lt;br /&gt;
The basic data structure again is that users submit a monthly report. On the form there should be twelve picture controls associated with the months of the year. These pictures will be displayed if the user has already submitted a report for that month (e.g. the January picture is displayed if the user has already submitted a January report). 
&lt;br /&gt;
&lt;br /&gt;
Currently, I have the filtered data coming into a multiple-selection list box. I tried using the &amp;quot;contains&amp;quot; function to see if the multiple-selection list box contains a certain month, but it does not appear to work. I tried using a nested eval function to concat the multiple-selection list box into a single text box so that I could the &amp;quot;contains&amp;quot; function, but the nested eval function that I am using only works if the multiple-selection list box entries are checked. And I could not find a way to set all the entries to be automatically checked. I feel like there is more direct way to approach this.
&lt;br /&gt;
&lt;br /&gt;
Again, any help would be greatly appreciated!</description></item><item><title>Re: Populate a checkbox based off of a SharePoint List</title><link>https://www.infopathdev.com:443/forums/thread/93010.aspx</link><pubDate>Fri, 13 Sep 2013 14:11:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93010</guid><dc:creator>Justin Koshy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93010.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=93010</wfw:commentRss><description>Thank you Hilary! I solved my issue with your help.</description></item><item><title>Re: Populate a checkbox based off of a SharePoint List</title><link>https://www.infopathdev.com:443/forums/thread/92962.aspx</link><pubDate>Wed, 11 Sep 2013 21:51:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92962</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92962.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=92962</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Here&amp;#39;s&amp;nbsp;a link that may help - &lt;a href="http://blogs.msdn.com/b/infopath/archive/2010/05/06/sharepoint-list-data-connections-in-infopath-2010.aspx"&gt;http://blogs.msdn.com/b/infopath/archive/2010/05/06/sharepoint-list-data-connections-in-infopath-2010.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I don&amp;#39;t see images showing on that page, sadly. Here&amp;#39;s another blog post that may help: &lt;a href="http://www.sharepoint911.com/blogs/laura/Lists/Posts/Post.aspx?ID=129"&gt;http://www.sharepoint911.com/blogs/laura/Lists/Posts/Post.aspx?ID=129&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Let me know if you need more info.&lt;/p&gt;</description></item><item><title>Re: Populate a checkbox based off of a SharePoint List</title><link>https://www.infopathdev.com:443/forums/thread/92960.aspx</link><pubDate>Wed, 11 Sep 2013 21:09:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92960</guid><dc:creator>Justin Koshy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92960.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=92960</wfw:commentRss><description>Hi Hilary,
&lt;br /&gt; 
&lt;br /&gt;
Thank you for the quick response!
&lt;br /&gt; 
&lt;br /&gt;
I set up the data connection to the library, but I do not know how to &amp;quot;set the Query field for the user name in the data connection you just created to the userName() function&amp;quot;. Could you elaborate on this?</description></item><item><title>Re: Populate a checkbox based off of a SharePoint List</title><link>https://www.infopathdev.com:443/forums/thread/92955.aspx</link><pubDate>Wed, 11 Sep 2013 19:10:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92955</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92955.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=92955</wfw:commentRss><description>&lt;p&gt;Hi - are you promoting the User&amp;#39;s Name, Month and Year fields to your SharePoint library you submit the form&amp;#39;s to? You&amp;#39;ll want to do that first.&lt;/p&gt;&lt;p&gt;Then, create a secondary data connection to that library. Be sure to include the User Name, Month and Year fields in the data connection. Toward the end of the data connection wizard, you&amp;#39;ll have the option to decide if you want the data returned when the form opens - deselect that checkbox.&lt;/p&gt;&lt;p&gt;Add a form open rule to set the Query field for the user name in the data connection you just created&amp;nbsp;to the userName() function, and add another action to query the data source. You could also set the query field for year&amp;nbsp;to the current year to get just this year&amp;#39;s. That can be done with substring-before(today(), &amp;quot;-&amp;quot;)&lt;/p&gt;&lt;p&gt;This should return a list of the items the user has submitted to the library.&lt;/p&gt;&lt;p&gt;From there, you can add rules to set the checkboxes or you can use default values for them that check to see if there is an item in the list with the correct Month name.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Populate a checkbox based off of a SharePoint List</title><link>https://www.infopathdev.com:443/forums/thread/92944.aspx</link><pubDate>Wed, 11 Sep 2013 14:31:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:92944</guid><dc:creator>Justin Koshy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/92944.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=92944</wfw:commentRss><description>Hello,

I am new to InfoPath (I&amp;#39;m using InfoPath 2010) and could really use some help. I am trying to populate a series of checkboxes on a form based on a SharePoint List. &lt;br /&gt; &lt;br /&gt;

Users submit a report form on a monthly basis. Fields included on the form are the user&amp;#39;s name, month, and year. The form is submitted to a SharePoint library that contains these monthly reports for all users.
&lt;br /&gt; &lt;br /&gt;
The checkboxes I wish to populate on the form are months in the year. The month checkbox should be checked if the user has submitted a form already for that month in the current year. So the month checkbox logic is the following:
&lt;br /&gt; &lt;br /&gt;
   1. Find out all the reports submitted for the user looking at the form &lt;br /&gt;
   2. If the user has submitted a report for a month matching the month&amp;#39;s checkbox, and the year matches the current year, check the month checkbox. 
&lt;br /&gt; &lt;br /&gt;
I am stuck on how to apply this logic to InfoPath. Mainly, I do not know how to query the SharePoint library to find all the lists reported by the user looking at the form. Any help would be greatly appreciated!</description></item></channel></rss>