-
Actually..it dawned on me after I posted to make a calculated column that parse's the text and converts to a date..that worked. thanks anyway.
-
Sorry to bump an old thread, but is there any way to do this without any code-behind?
What I'm trying to do is promote this field as a Date to a SharePoint Library. And what I'm hoping to do is filter out forms where this field is greater than or equal to [Today]-2. (In other words, I only want to see forms that are 2 days past this end ...
-
Well Hillary to not be a Java Script girl you are doing wonderfully. That did it. I had tried similar combinations all around that but had not hit that combination I guess.
Works like a charm. Now lets try and add all the other fields and see what I get into!
I'll leave you alone for the rest of today unless I hit ...
-
Ok, so I followed this tutorial: http://www.bizsupportonline.net/infopath2007/programmatically-add-item-sharepoint-calendar-infopath.htm and I have a form that works well with Sharepoint, aside form the fact that other users besides myself cannot access it! I've been told this is due to the code that was added to the form not being ...
-
Your script is different from my sample. You are selecting the text of the node. If the node is null, you'll get an object required error when you try to select text.
So, what you have:
var field11 = newTestDetails.selectSingleNode("my:field11");
...
-
Attached file.... Removed the unnecessary stuff. Thanks.
Aaron
-
We have a SharePoint form library that contains instances of the same form template (e.g. each form submission saves to the form library), but it seems that some forms are having an error/issue that prevents us from editing the data in the fields. This was not part of the form design, but seems to be occuring in multiple forms but not in ...
-
Here's the current script. I added the Alert for the length of the node just for debuggin. It will show me the node size for the records just fine up until it hits that one where this none has not been filled in yet and I Object Required.
I had already tried to test for null just like mentioned:
var field = ...
-
Hey, could you also post the most recent copy of your script, in case there is something else going wrong? Because the field should be there, even if it doesn't have data...so it seems like something else might be the problem.
-
To test for whether a field is null, using the node variable declared in your while loop:
var field = node.selectSingleNode("Diameter");
if (null == field)
{
//do something
}
else
{
//do something else
}