Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a list with 2 different views one that shows all items and one that shows current items.

But if startdate is null the item wont show up on current view. startdate should be nullable. How can i fix this?

In the schema file it looks like this:

    <Query>
      <Where>
        <And>
            <Leq>
            <FieldRef Name="StartDate"/>
            <Value Type="DateTime" IncludeTimeValue="TRUE">
              <Today />
            </Value>
          </Leq>
          <Geq>
            <FieldRef Name="EndDate" />
            <Value Type="DateTime" IncludeTimeValue="TRUE">
              <Today />
            </Value>
          </Geq>
        </And>
      </Where>
    </Query>
share|improve this question

1 Answer 1

<Query>
  <Where>
    <Or>
      <And>...</And>
      <IsNull>
        <FieldRef Name="StartDate" />
      </IsNull>
    </Or>
  </Where>
</Query>
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.