Are there any examples of the caml config line in the webpart

Mar 14, 2013 at 4:21 AM
Edited Mar 14, 2013 at 3:09 PM
Love the web part and it works for me great. The only piece so far that I'm struggling to work with is the CAMLQuery line to display specific items in the list based on 1 column. Do I call the caml query as a .txt or .csv file from a document library or place the caml query as a single line of text in the web part of the config?

Here's the site list columns - Title, Address, Division, Lat, Long, Details, LocationType

Here's the caml query to the list - <Query><Where><Eq><FieldRef Name="LocationType" /><Value Type="Choice">Store</Value></Eq></Where></Query>

What am I missing? Any examples online how to do the CAMLQuery config?

btw - I have the wsp deployed as a normal solution in my farm. Not doing sandbox at present.
Mar 14, 2013 at 3:11 PM
And if you wanted to do a join.me or skype session feel free to look for me on skype as leegaupp
Coordinator
Mar 14, 2013 at 8:06 PM
Hi leegaupp,

thank you that you use my webpart.

Problem of your query is that the query contains <Query> element. Try to remove it and it should work. In your case just <Where><Eq><FieldRef Name="LocationType" /><Value Type="Choice">Store</Value></Eq></Where>

If your problem still remains let me know.