Stump the Panel: SharePoint Q&A

Immediate solutions for common SharePoint questions
It is currently Tue May 21, 2013 1:10 pm

All times are UTC - 5 hours [ DST ]


Forum rules


What you are viewing is an archive of Stump the Panel. It remains for reference purposes. Please post all new questions on NothingButSharePoint.com
https://www.nothingbutsharepoint.com/sites/eusp/Forum



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Complex CAML query for DVWP
PostPosted: Wed Apr 20, 2011 9:57 am 
Offline

Joined: Tue Apr 19, 2011 12:59 pm
Posts: 1
Trying to create a report in SPD from a SharePoint list where I want a row to be included in my nodeset IF field 'a' is null/blank AND a date field 'b' is less than a 'from' date entered by the user OR date field 'b' is between the 'from' date and a 'to' date entered by the user (as field 'a' could be non-null, but still want it included because of date being within from/to selection).

Does that make sense?

One of the problems is that the data is 157,000 rows in size and so far customer has not indicated that a look back can be limited by date, i.e., only look back so many months for selections to be included.

New to SharePoint/Designer - but reading about CAML, can a complex CAML query be constructed that could accomplish this?


Top
 Profile  
 
 Post subject: Re: Complex CAML query for DVWP
PostPosted: Wed Apr 20, 2011 7:30 pm 
Offline
User avatar

Joined: Sat Jan 02, 2010 6:02 pm
Posts: 1035
Location: Silver Spring, MD
That seems doable... With that many list items, you'll definitely want to stick with CAML. Think of CAML as your Select statement. The row iteration is what you are doing with the data from the server, so filtering within XSLT doesn't perform well on large lists.

If I'm not mistaken <DateRangeGroup> should be the CAML node to look at. Feel free to correct me on that.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group