Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Using SPQuery...

  Asked By: Daryl    Date: May 19    Category: Sharepoint    Views: 1310

Is there any way to filter a document library (list) for a particular
list item by going after the document name by using a SPQuery object?

I have tried for a couple of hours now but I cannot seem to find the
right combination.

It looks like the field ref should be LinkFilename but when I try to
use this in the query, I get strange results when I try to look at the
SPListItemCollection count (messages such as invalid column 'c1' are
reported).

Can anyone assist?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Abhinivesh Suvarna     Answered On: May 19

The best way to check what the syntax would be is to use one
of the CAML Query Applications. I would recommend the one fromU2U. It can be
found here:

http://www.u2u.net/res/Tools/CamlQueryBuilder.aspx

 
Didn't find what you were looking for? Find more on Using SPQuery... Or get search suggestion and latest updates.




Tagged: