SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
<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.