caml

Design to custom list in sharepoint

I have created a feature, a publishing site, in Visual Studio to MOSS - this feature contains a masterpage, some pages, some site columns (grouped to match each page) etc. I have also created a site collection, some sites and pages based on my template. My next step is to create some definitions to contain very specific page content - t...

SQL IN equivalent in CAML

Is there "nice" way to create a CAML query for SharePoint that does something like this? SELECT * FROM table WHERE Id IN (3, 12, ...) Or am I stuck with a nightmare of nested <Or> nodes? ...

Create list in existing site collection from a feature

I have created a feature, a publishing site, in Visual Studio to MOSS - this feature contains a masterpage, some page-templates, some site columns (grouped to match each page-template) and som custom list templates etc. I have also created a site collection, some sites and pages based on my feature. Now I have upgraded the code in my fe...

hedge funds / financial services: caml. why?

speaking to a number of quants / hedgies, i came to the conclusion that a large number of them seem to be using their a homebrew or caml (for the most part). what many of them couldnt answer was why. i can certainly understand why they wouldnt want to use c++ for the most part, but why is caml superior for these uses compared to other s...

GroupBy CAMl query is giving Render Failed error

Hello, I have custom list definition.I want to display rows as GroupBy with some column names. I added a query in Schema.xml like below. <Query> <GroupBy> <FieldRef Name="Title" visible="false" /> <FieldRef Name="Followed By" /> </GroupBy> </Query> If i use two filter group its working fine.No iss...

Stack overflow using recursive functions in OCaml

Hi, I have a little problem: I want to solve this problem with OCaml, so I tried this -> -> let rec somme x = if ( nor (bool_of_int (x mod 3)) (bool_of_int (x mod 5))) then x + (somme x-1) else (somme x-1) ;; val somme : int -> int = <fun> -> somme 1000 ;; Stack overflow during evaluation (looping recursion?). What have I done wron...

Sharepoint dynamic caml query problem?

Hi, I want to dynamic caml query based on query string.Let me explain it with example my query sting can be anything ?cat=ABC&cat=ABD&cat=ABE... ?Cat=ABC ?Cat=ABC&cat=ABL so no. can be anything now the problem begins I want to query my sharepoint list based on this query string if (HttpContext.Current.Request.QueryString["cat"] !=...

What could we put into Value element in CAML?

First sorry for my English. I'm very confuse about querying ListItem using CAML.Look like the Value element could contain many different content. For example,When we query a field that is type of DateTime, It can be <Value Type="DateTime"><Today Offset="20" /></Value>. Or a Lookup field, <FieldRef Name='Meeting_Set' LookupId='true'/><V...

Add SPFolder in List Instance xml

I've create a custom list and included the basic pieces (schema.xml, list template,..) to package it as a .wsp. I have a list instance defined, but I would like to add some folders to the xml. I know you can add SPListItems using ..., but I'm not sure how to add an SPFolder. Ultimately I want to add some SPFolders to the list instance b...

Retrieve all items from a SharePoint Field Choice Column with using ObjectModel

Hello, I know a similar question has already been asked, but that retrieves all the items for Choice field using Sharepoint Object Model. I dont have object model available to me. I want to do this using CAML or something. I couldnt figure out a CAML query to get all the items for a choice field. Any pointers in the right direction wil...

querying whole site collection sharepoint

I have a webpart which is 2-3 subsites down the top level site. I need to query the list which is in top site collection and one at the same level,I guess its possible through SPSiteDataquery...I have some confusion related to it can i write single query which can query both these list.... The scope of this query is sitecollection so th...

Why would a SharePoint lookup menu require a double-click to select an item?

I have a SharePoint feature which programatically creates 3 lookups in a custom list, one from each of 3 different lists via extremely similar CAML markup. The only differences in the CAML are the List, ID, Name, DisplayName and StaticName properties yet one of these lookups looks slightly different (has a slightly more "modern" drop-do...

SharePoint - provisioning url properties through CAML?

Is there a solution to the following that I am missing in SharePoint/CAML. Note that I'll give a specific example of using a URL on a Redirect Page (publishing feature content type), but the issue is broader in scope than provisioning a Redirect Page. It is really a question anywhere a "URL" field/property can be set (web parts, pages,...

Strange behaviour of CAML question - why?

Hi, I'm using caml query to retrieve data from sharepoint list. The issue is that the query returns one record when it shouldn't, and this takes place only when I'm using this query in my own code. When I'm using the same query, on the same list by U2U Caml Query Builder it works wright. My query is like this: <Query><Where><Eq><Field...

enabling in-line editing for a view in list definition

I'm currently creating some list definition for use in a SharePoint 2010 environment. In these definitions I need to to define a view which enables in-line editing. This is easily accomplished in the UI as well as from code by setting the InLine property of the SPView object to "TRUE", however I can't find any property of the CAML defini...

CAML return only 10 results

Is it possible using CAML to limit the amount of results returned. Say for example my query would pull back 25 results I would like the first 10 only. ...

Need help with CAML from JavaScript to retreive all items from a SharePoint Message Board

I am using JavaScript to invoke the GetListItems method of the SP webservice and handing in the following CAML: var CAML = "<Query>" + "<ViewAttributes Scope=\"Recursive\" />" + "<Where>" + "<Or>" + "<Eq>" + "<FieldRef Name=\"ID\"/>" + "<Value Type=\"Counter\">"...

SharePoint AddDiscussionBoardItem via CAML and JavaScript

I have a SharePoint Message Board named ConceptsGeneralInformation. It currently has two Disccusions in it, they are named GeneralDiscussion and SpecificDiscussion. While a user is viewing a Discussion I want to allow they to post a reply. To do so I am calling the AddDiscussionBoardItem method on WSS via CAML and JavaScript. AddDiscussi...

Unable to remove System Page fields from my content type with <RemoveFieldRef/>

Hi guys, I'm creating some content types in a feature for a publishing site in SP2010 RC using VS2010, and I am unable to remove the out-of-the-box Contact fields included in the Page content type with RemoveFieldRef. My definition looks like: <ContentType ID="0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF39...

Need assistance with values for calling AddDiscussionBoardItem on WSS for MOSS

I am writing UI for the SharePoint Message Board functionality using Silverlight and communicating via WSS with JavaScript/CAML. I have the retrieval of Discussions and Messages working fine; however, I am having difficulty posting a reply to a Discussion or Message. The AddDiscussionBoardItem method expects the List name and the Messa...