<?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: Submit button doesn't work when data is retrieved from database</title><link>https://www.infopathdev.com:443/forums/thread/19770.aspx</link><pubDate>Fri, 11 May 2007 09:44:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19770</guid><dc:creator>ahardin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19770.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19770</wfw:commentRss><description>&lt;p&gt;Troy&lt;/p&gt;&lt;p&gt;Sorry my misunderstanding.&amp;nbsp; Create a new field on the form and set that to equal the data from the database.&amp;nbsp; Then set your drop-down&amp;#39;s default value to equal the substring of the new field.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;That should work fine.&lt;/p&gt;&lt;p&gt;Adam&lt;/p&gt;</description></item><item><title>Re: Submit button doesn't work when data is retrieved from database</title><link>https://www.infopathdev.com:443/forums/thread/19756.aspx</link><pubDate>Thu, 10 May 2007 17:22:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19756</guid><dc:creator>troy0118</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19756.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19756</wfw:commentRss><description>&lt;p&gt;Thanks, Matt.&lt;/p&gt;&lt;p&gt;I solved this issue&amp;nbsp;on the date picker by using substring-before() function, but not the dorp-down. No matter what I did, the drop-down always has the &amp;quot;T&amp;quot; stuff.&lt;/p&gt;&lt;p&gt;Sicne the dorp-down carries&amp;nbsp;a secondary data source, if I want to get rid of the &amp;quot;T00:00:00,&amp;quot; I have to write code??&lt;/p&gt;</description></item><item><title>Re: Submit button doesn't work when data is retrieved from database</title><link>https://www.infopathdev.com:443/forums/thread/19745.aspx</link><pubDate>Thu, 10 May 2007 15:23:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19745</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19745.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19745</wfw:commentRss><description>&lt;p&gt;Hey troy,&lt;/p&gt;&lt;p&gt;You should be able to add code or rules on a button that will remove the T00:00:00.&amp;nbsp; You&amp;nbsp;will use the substring-before() function.&amp;nbsp; If all else fails, you could try creating a view in the database that has a column that gets the correct substring that you are trying to pull down.&lt;/p&gt;&lt;p&gt;Good luck!&lt;/p&gt;</description></item><item><title>Re: Submit button doesn't work when data is retrieved from database</title><link>https://www.infopathdev.com:443/forums/thread/19741.aspx</link><pubDate>Thu, 10 May 2007 14:07:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19741</guid><dc:creator>troy0118</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19741.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19741</wfw:commentRss><description>&lt;p&gt;Thanks, Adam.&lt;/p&gt;&lt;p&gt;I do not check off the checkbox &amp;quot;Update this value when the result of the formula is recalculated.&amp;quot; It will cause me a lot of problems.&lt;br /&gt;The issue is when the data come back from the DB, the format becomes &amp;quot;2007-05-02T00:00:00,&amp;quot; which doesn&amp;#39;t allow me to do any comparison.&lt;/p&gt;&lt;p&gt;I tried to format the date in DB before, but it didn&amp;#39;t work out. I just cannot get rid of the time from DB.&lt;/p&gt;</description></item><item><title>Re: Submit button doesn't work when data is retrieved from database</title><link>https://www.infopathdev.com:443/forums/thread/19732.aspx</link><pubDate>Thu, 10 May 2007 07:40:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19732</guid><dc:creator>ahardin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19732.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19732</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;I think this is relatively simply solved as i have made this mistake myself.&lt;/p&gt;&lt;p&gt;Your problem is only when you pull the record back from the database, immediately the form sets the&amp;nbsp;Case Date = Today() so the button is disabled.&amp;nbsp; When you reset the date it works fine, no surprise!&lt;/p&gt;&lt;p&gt;To sort, you need to untick the &amp;quot;Update this value when the result of the formula is recalculated&amp;quot;, this will then set the value once, but will not re-set it when recalling it from the database, if that does not work then instead of using the &amp;quot;Default Value&amp;quot; use a rule&amp;nbsp;firing from&amp;nbsp;another field or on form opening to set the&amp;nbsp;@Case_Date value ONLY where&amp;nbsp;@Case_Date is currently blank, that would definitely work.&lt;/p&gt;&lt;p&gt;I hope this helps&lt;/p&gt;&lt;p&gt;Adam&lt;/p&gt;</description></item><item><title>Re: Submit button doesn't work when data is retrieved from database</title><link>https://www.infopathdev.com:443/forums/thread/19700.aspx</link><pubDate>Wed, 09 May 2007 14:44:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19700</guid><dc:creator>troy0118</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19700.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19700</wfw:commentRss><description>&lt;p&gt;Hi Matt,&lt;/p&gt;&lt;p&gt;Thanks, it works. However, it doesn&amp;#39;t solve my problem.&lt;/p&gt;&lt;p&gt;I set the rule under a dorp down. First it shows &amp;quot;2007-05-02T00:00:00&amp;quot; And after I click on the value, the value changes to &amp;quot;2007-05-02&amp;quot;&lt;br /&gt;By definition, &amp;quot;Use rules to apply actions when users change the value in this control.&amp;quot;&lt;br /&gt;Indeed, there are two values in the drop down after the action is taken: &amp;quot;2007-05-02T00:00:00&amp;quot; and &amp;quot;2007-05-02&amp;quot;&lt;br /&gt;I suppose that it doesn&amp;#39;t really change the value, instead adding one into the drop down.&lt;br /&gt;This is OK if I can&amp;#39;t get it.&lt;/p&gt;&lt;p&gt;My real concern is the date picker. There is a condition to disable the submit button based on the comparison of two dates.&lt;br /&gt;Since one date will come back from the DB, the format will become &amp;quot;2007-05-02T00:00:00&amp;quot; which is not comparable.&lt;br /&gt;If I click on the date which come from DB again, then the conditon will apply because the format becomes &amp;quot;2007-05-02&amp;quot;&lt;br /&gt;This is similar to the method you advised, which requires a click&amp;nbsp;action.&lt;/p&gt;&lt;p&gt;Do you have other recommendations?&lt;/p&gt;</description></item><item><title>Re: Submit button doesn't work when data is retrieved from database</title><link>https://www.infopathdev.com:443/forums/thread/19599.aspx</link><pubDate>Sun, 06 May 2007 03:16:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19599</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19599.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19599</wfw:commentRss><description>Hi troy0118,
&lt;br /&gt;&lt;br /&gt;
Weird, I would have thought that that style of the date would work.  However, creating a rule to change the format should be easy.
&lt;br /&gt;&lt;br /&gt;
1. Double-click the field in the Data Source Task Pane
&lt;br /&gt;
2. Go to the rules tab and add a new rule. Set the condition to be IF fieldValue CONTAINS 'T', then SET FIELD VALUE to 'substring-before( fieldValue, 'T' )
&lt;br /&gt;&lt;br /&gt;
Hopefully that will do the trick! If not, let us know.</description></item><item><title>Re: Submit button doesn't work when data is retrieved from database</title><link>https://www.infopathdev.com:443/forums/thread/19532.aspx</link><pubDate>Wed, 02 May 2007 17:16:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19532</guid><dc:creator>troy0118</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19532.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19532</wfw:commentRss><description>&lt;p&gt;Thanks, Matt.&lt;/p&gt;&lt;p&gt;I got the data from a expression box, and it shows &amp;quot;2007-05-02T00:00:00&amp;quot;&lt;br /&gt;The way it will work out is to wirte code to get the date like &amp;quot;2007-05-02&amp;quot;&amp;nbsp; Is this what you recommend?&lt;br /&gt;The data set is from DB. How I can format it before it shows on the screen? Could you give me some references?&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;</description></item><item><title>Re: Submit button doesn't work when data is retrieved from database</title><link>https://www.infopathdev.com:443/forums/thread/19506.aspx</link><pubDate>Wed, 02 May 2007 15:17:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19506</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19506.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19506</wfw:commentRss><description>&lt;p&gt;Hi troy0118,&lt;/p&gt;&lt;p&gt;I think the problem here is that when the date comes back from the database, it is not in the right format.&amp;nbsp; Try looking at the date returned from the DB in a straight textbox without formatting to look at how the database is returning it.&amp;nbsp; You might have to write some code that alters the date formatting whenever you pull stuff down from the database.&amp;nbsp; The reason it works when you re-select the date is because InfoPath formats the date that you select correctly. &lt;/p&gt;&lt;p&gt;Hope this helps!&lt;/p&gt;</description></item><item><title>Submit button doesn't work when data is retrieved from database</title><link>https://www.infopathdev.com:443/forums/thread/19504.aspx</link><pubDate>Wed, 02 May 2007 15:13:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19504</guid><dc:creator>troy0118</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19504.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=19504</wfw:commentRss><description>&lt;p&gt;Condition: if Case Date &amp;gt; today(), then disable submit button.&lt;br /&gt;It works fine. However, when I call the data back from the database, the submit button is disabled.&lt;/p&gt;&lt;p&gt;If I pick the date again, it will become enabled. The disabled situation only occurs when Case date = today&lt;/p&gt;&lt;p&gt;I have no idea why this is happening. Also, anything compares to today(), and the date is today&amp;#39;s date.&lt;/p&gt;&lt;p&gt;Everything will become disabled. I don&amp;#39;t know why it is working when entering data, but not working when call the data back form the database if the date is today&amp;#39;s date.&lt;/p&gt;&lt;p&gt;Is the a issue of Infopath, or I missed something when setting the conditions.&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;</description></item></channel></rss>