<?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: Display Created Date in SharePoint and have a second field that adds 30 days and display that too.</title><link>https://www.infopathdev.com:443/forums/thread/76331.aspx</link><pubDate>Tue, 13 Mar 2012 15:35:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76331</guid><dc:creator>TxSteve</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76331.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=76331</wfw:commentRss><description>&lt;p&gt;That was it! Just needed a little push in the right direction. :)&lt;/p&gt;
&lt;p&gt;First I added a repeating section. Inside, I&amp;nbsp;added an expression box and linked it to the SharePoint form list, Created column. I then created a condition that says, Created is not present - Hide this control. Then I moved to the next field. I&amp;nbsp;added an expression box with the adddays function AddDays(@Created, 30) and&amp;nbsp;gave it a condition of &amp;nbsp;Created is not present - Hide this control. Appears to be working!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Oh, and the first created box I gave the following source;&amp;nbsp; concat(substring(@Created, 6, 2), &amp;quot;/&amp;quot;, substring(@Created, 9, 2), &amp;quot;/&amp;quot;, substring(@Created, 1, 4))&amp;nbsp; Doing this gave me a date of 03/04/1965. The second expression box I simply selected Date and the canned&amp;nbsp;format of 03/14/2001 so that they would match.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope this helps someone too!&lt;/p&gt;</description></item><item><title>Re: Display Created Date in SharePoint and have a second field that adds 30 days and display that too.</title><link>https://www.infopathdev.com:443/forums/thread/76330.aspx</link><pubDate>Tue, 13 Mar 2012 15:22:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76330</guid><dc:creator>TxSteve</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76330.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=76330</wfw:commentRss><description>&lt;p&gt;v.2007&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think I&amp;#39;m verifying if the date exists. (Conditional Formatting I presume) I will try to work on that, also definately not using a substring. I can try that too. Great tips!. &lt;/p&gt;</description></item><item><title>Re: Display Created Date in SharePoint and have a second field that adds 30 days and display that too.</title><link>https://www.infopathdev.com:443/forums/thread/76327.aspx</link><pubDate>Tue, 13 Mar 2012 15:05:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76327</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76327.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=76327</wfw:commentRss><description>&lt;p&gt;Well, let&amp;#39;s see. Created date is being returned from your SharePoint Library? Are you using IP 2010 / ShP 2010 or are you on 2007?&lt;/p&gt;
&lt;p&gt;If 2010, you can add a data connection to receive data from the library you are submitting the form to, and get data &amp;quot;for this item only&amp;quot;. If the form is new, their would be no data returned. So your logic in your form could be based on whether there is a created date returned in this data connection - you can hide stuff, whatever you need to do.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m wondering if your add days function is having issues because of the format of the date returned from ShP? Or if you are not verifying there is a created date before trying to add days? Set your form up so you can test your logic - show the fields you are using temporarily, see how ShP is returning the data - I&amp;#39;d imagine it is coming in as date time. You may need to use a substring before the &amp;quot;T&amp;quot; in that case - without experimenting, I&amp;#39;m just not sure.&lt;/p&gt;</description></item><item><title>Re: Display Created Date in SharePoint and have a second field that adds 30 days and display that too.</title><link>https://www.infopathdev.com:443/forums/thread/76326.aspx</link><pubDate>Tue, 13 Mar 2012 14:55:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76326</guid><dc:creator>TxSteve</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76326.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=76326</wfw:commentRss><description>&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;Anyone? Allow me to rephrase... Maybe I&amp;#39;ve confused everyone :) &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;I want to display the created date via a SharePoint form list and a second field that adds 30 days to the created date when a user is opening a form to edit fields. When I add these to the form and the user is trying to populate a form for the first time (new) the form fails to load with the following error; &amp;quot;The XSL transform for the View XSL failed. Function &amp;#39;AddDays&amp;#39; did not return a value, or it returned a value that cannot be converted to an XSL data type.&amp;quot; How can I display these when the user is in edit mode and not when completing the form for the first time? &lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Display Created Date in SharePoint and have a second field that adds 30 days and display that too.</title><link>https://www.infopathdev.com:443/forums/thread/76205.aspx</link><pubDate>Thu, 08 Mar 2012 17:22:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76205</guid><dc:creator>TxSteve</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76205.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=76205</wfw:commentRss><description>&lt;p&gt;Oh, and to expand upon what I&amp;#39;ve tried. I added two Expression boxes. One points to created column on my SharePoint list, the other points to the Expression box within the form. I know there is something about Expression boxes having limitations as they only display, not store data. Anyway, when I have the two boxes, I can open an existing form just fine and get the results I wanted. However, when I select NEW to create a NEW form it fails with the following error; The XSL transform for the View XSL failed. Function &amp;#39;AddDays&amp;#39; did not return a vaulue, or it returned a value that cannot be converted to an XSL data type. &amp;nbsp;&lt;/p&gt;</description></item><item><title>Display Created Date in SharePoint and have a second field that adds 30 days and display that too.</title><link>https://www.infopathdev.com:443/forums/thread/76197.aspx</link><pubDate>Thu, 08 Mar 2012 14:31:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:76197</guid><dc:creator>TxSteve</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/76197.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=76197</wfw:commentRss><description>&lt;p&gt;Either it&amp;#39;s lack of coffee or a simple matter of not seeing the forest for the trees...(hopefully a very simple request)&lt;/p&gt;
&lt;p&gt;Scenario:&lt;br /&gt;I want a user to go to a SharePoint site, select new, open a form. Line 1: Created Date: (Thinking this would be empty or hidden because the created date is not active from the form submission) The +30 days box would be hidden or empty too. User would complete the form, press submit. Later, a user would be looking at the list, click on the SharePoint link for the new form. The form opens, the Created Date and +30 days box would be displayed. &lt;/p&gt;
&lt;p&gt;How can this be accomplished? (If there is a sample on this board somewhere that would be awesome)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;</description></item></channel></rss>