-
Hilary, I think that you may be proud of me. I figured it out. Appatently, the myAppointment.Start is looking for yyyy-mm-ddThh:mm:ss am(or pm). My time data looks like this 12/30/1899 12:00:00 AM(or PM) with the date always being the same because it is missing from the user input. So, I added the T and then stripped ...
-
I have made a little progress. The data that comes from the date field looks correct - IP is leaving the time off of it so there is no 'T' so I just left that part of the code out. In the time field, the data looks like this 12/30/1899 3:30:00 PM so it doesn't have a T either. I am making the assumption that the ...
-
Hi -- I'm not familiar with the '255 limit' that you mention, and I've not seen the query too complex error before, but I do have a thought as to how to force the user to submit the smaller chunks of data. Use separate views for the blocks you want to have filled out and submitted, then add buttons that say 'Next' or some ...
-
Hello Hilary! Good to hear from you! Getting a couple of different errors now:
Error 1 The best overloaded method match for 'System.Convert.ToDateTime(object, System.IFormatProvider)' has some invalid arguments C:\Documents and Settings\dfisher\My Documents\InfoPath Projects\Customer Care ...
-
Hi:
I would create a Print View. Add all of the items on the regular view of the form in sections that are conditionally hidden if the checkbox is not selected. Does that make sense?
-
In your email connection, when the form is submitted via email, is it also included as an attachment? Check the email message and see if has an attachment. If it does, could you provide more specific information about the error you received when you tried to open the form?
-
The error probably is because one of the calculations that is providing the length argument of the substring is negative (i.e., less than zero). So, now the magic question is "Which one?" I see a plus sign where I think you might want a comma.
Convert.ToDateTime(StartDateSeed.Substring(0, StartDateSeed.IndexOf("T")), ...
-
There is a solution to this problem in a Microsoft HotFix for the Forms Server dated march 4, 2008. It solved it all for me!
see http://support.microsoft.com/default.aspx/kb/949752
i have not checked wether this hot fix has reached the service pack level though...
victor
-
Sorry to be such a pain, but I am afraid that I do not know much about writing code. I am now getting this error:
Length cannot be less than zero. Parameter name: length
This is how I have it:
// Set the start date
myAppointment.Start = Convert.ToDateTime(StartDateSeed.Substring(0, StartDateSeed.IndexOf("T")) + ...
-
Hi,
You can get the only date value from the date and time field using the following.
StartDateSeed.Substring(0, StartDateSeed.IndexOf("T"))
And the time from the date and time field using
StartTimeSeed.Substring(StartTimeSeed.IndexOf("T")+1, StartTimeSeed.Length- StartTimeSeed.Substring(0, ...